org.glite.authz.common.model
Class Result

java.lang.Object
  extended by org.glite.authz.common.model.Result
All Implemented Interfaces:
java.io.Serializable

public final class Result
extends java.lang.Object
implements java.io.Serializable

Result of an authorization request.

See Also:
Serialized Form

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

DECISION_DENY

public static final int DECISION_DENY
Decision Deny value, 0 .

See Also:
Constant Field Values

DECISION_PERMIT

public static final int DECISION_PERMIT
Decision Permit value, 1 .

See Also:
Constant Field Values

DECISION_INDETERMINATE

public static final int DECISION_INDETERMINATE
Decision Indeterminate value, 2 .

See Also:
Constant Field Values

DECISION_NOT_APPLICABLE

public static final int DECISION_NOT_APPLICABLE
Decision NotApplicable value, 3 .

See Also:
Constant Field Values
Constructor Detail

Result

public Result()
Constructor.

Method Detail

getDecision

public int getDecision()
Gets the decision of the authorization request.

Returns:
decision of the authorization request

getDecisionString

public java.lang.String getDecisionString()
Helper method for converting the numeric decision code to its equivalent XACML string.

Returns:
numeric decision code's equivalent XACML string

decisionToString

public static java.lang.String decisionToString(int decisionValue)
Helper method for converting the numeric decision code to its equivalent XACML string.

Returns:
numeric decision code's equivalent XACML string

setDecision

public void setDecision(int newDecision)
Sets the decision of the authorization request.

Parameters:
newDecision - decision of the authorization request

getResourceId

public java.lang.String getResourceId()
Gets the ID of the resource to which the result applies.

Returns:
ID of the resource to which the result applies

setResourceId

public void setResourceId(java.lang.String id)
Sets the ID of the resource to which the result applies.

Parameters:
id - ID of the resource to which the result applies

getStatus

public Status getStatus()
Gets the status message associated with the result.

Returns:
status message associated with the result

setStatus

public void setStatus(Status newStatus)
Sets the status message associated with the result.

Parameters:
newStatus - status message associated with the result

getObligations

public java.util.List<Obligation> getObligations()
Gets the obligations associated with this result.

Returns:
obligations associated with this result

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object


Copyright © 2008-2012 EMI - European Middleware Initiative. All Rights Reserved.