org.glite.authz.common.model
Class Obligation

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

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

Description of an obligation that must be performed by the PEP.

See Also:
Serialized Form

Constructor Summary
Obligation()
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 java.util.List<AttributeAssignment> getAttributeAssignments()
          Gets the attribute assignments associated with this obligation.
 int getFulfillOn()
          Gets the authorization decision which activates this obligation.
 java.lang.String getId()
          Gets the ID of the obligation.
 int hashCode()
          
 void setFulfillOn(int newFulfillOn)
          Sets the authorization decision which activates this obligation.
 void setId(java.lang.String newId)
          Sets the ID of the obligation.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Obligation

public Obligation()
Constructor.

Method Detail

getId

public java.lang.String getId()
Gets the ID of the obligation.

Returns:
ID of the obligation

setId

public void setId(java.lang.String newId)
Sets the ID of the obligation.

Parameters:
newId - ID of the obligation

getFulfillOn

public int getFulfillOn()
Gets the authorization decision which activates this obligation.

Returns:
authorization decision which activates this obligation

setFulfillOn

public void setFulfillOn(int newFulfillOn)
Sets the authorization decision which activates this obligation. Permissible values are Result.DECISION_DENY and Result.DECISION_PERMIT.

Parameters:
newFulfillOn - authorization decision which activates this obligation

getAttributeAssignments

public java.util.List<AttributeAssignment> getAttributeAssignments()
Gets the attribute assignments associated with this obligation.

Returns:
attribute assignments associated with this obligation

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.