|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.PERMISResponse
public class PERMISResponse
This class implements the Response interface, providing a way to create objects that provide the Response interface. 3 different constructors and one manipulation function are provided to manipulate/create the objects.
Constructor Summary | |
---|---|
PERMISResponse()
Creates a new default instance of PERMISResponse. |
|
PERMISResponse(boolean decision)
Create a new instance of PERMISResponse. |
|
PERMISResponse(boolean decision,
Obligations obligations)
Create a new instance of PERMISResponse according the parameters |
Method Summary | |
---|---|
Obligations |
getObligations()
Retrieve the OBLIGATIONS object that is contained in the instance. |
boolean |
isAuthorised()
Retrieve the authorisation decision value. |
void |
setDecision(boolean bDecision)
Set the authorisation decision to the specified value. |
void |
setObligations(Obligations obligations)
Set the associated OBLIGATION object to the specified object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PERMISResponse()
public PERMISResponse(boolean decision)
public PERMISResponse(boolean decision, Obligations obligations)
decision
- specifies what authorisation decision
is in the response; true refers to a positive authorisation decision.
otherwise a negative authorisation decision.obligations
- is the associated set of Obligations that must be
enforced along with the decision; can be null, if no Obligations
should be enforced.Method Detail |
---|
public boolean isAuthorised()
isAuthorised
in interface Response
public void setDecision(boolean bDecision)
bDecision
- is the value that the authorisation decision to be set to. A true value
refers to a positive authorisation decision. otherwise a negative authorisation decision.public Obligations getObligations()
getObligations
in interface Response
public void setObligations(Obligations obligations)
obligations
- This is the object that is to be associated with the authorisation decision, which
contains the information about the obligations to be fulfilled with the enforcement of the authorisation decision.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |