|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.authz.common.model.Result
public final class Result
Result of an authorization request.
Field Summary | |
---|---|
static int |
DECISION_DENY
Decision Deny value, 0 . |
static int |
DECISION_INDETERMINATE
Decision Indeterminate value, 2 . |
static int |
DECISION_NOT_APPLICABLE
Decision NotApplicable value, 3 . |
static int |
DECISION_PERMIT
Decision Permit value, 1 . |
Constructor Summary | |
---|---|
Result()
Constructor. |
Method Summary | |
---|---|
static java.lang.String |
decisionToString(int decisionValue)
Helper method for converting the numeric decision code to its equivalent XACML string. |
boolean |
equals(java.lang.Object obj)
|
int |
getDecision()
Gets the decision of the authorization request. |
java.lang.String |
getDecisionString()
Helper method for converting the numeric decision code to its equivalent XACML string. |
java.util.List<Obligation> |
getObligations()
Gets the obligations associated with this result. |
java.lang.String |
getResourceId()
Gets the ID of the resource to which the result applies. |
Status |
getStatus()
Gets the status message associated with the result. |
int |
hashCode()
|
void |
setDecision(int newDecision)
Sets the decision of the authorization request. |
void |
setResourceId(java.lang.String id)
Sets the ID of the resource to which the result applies. |
void |
setStatus(Status newStatus)
Sets the status message associated with the result. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DECISION_DENY
public static final int DECISION_PERMIT
public static final int DECISION_INDETERMINATE
public static final int DECISION_NOT_APPLICABLE
Constructor Detail |
---|
public Result()
Method Detail |
---|
public int getDecision()
public java.lang.String getDecisionString()
public static java.lang.String decisionToString(int decisionValue)
public void setDecision(int newDecision)
newDecision
- decision of the authorization requestpublic java.lang.String getResourceId()
public void setResourceId(java.lang.String id)
id
- ID of the resource to which the result appliespublic Status getStatus()
public void setStatus(Status newStatus)
newStatus
- status message associated with the resultpublic java.util.List<Obligation> getObligations()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |