com.sun.identity.policy
Class PolicyDecision

java.lang.Object
  extended by com.sun.identity.policy.PolicyDecision

public class PolicyDecision
extends Object

The PolicyDecision class represents the result of a policy evaluation.


Constructor Summary
PolicyDecision()
          Default constructor.
 
Method Summary
 void addActionDecision(ActionDecision actionDecision)
          Adds an action decision to this object if there is already an existing actionDecision associated with the action name in the param actionDecision, merges the values of the new decision with the existing one, changing the time to live for the decision appropriately.
 Map getActionDecisions()
          Gets the Map of action decisions associated with this policy decision.
 String toString()
          Gets a String representation of this PolicyDecision
 String toXML()
          Gets an XML representation of this object
 

Constructor Detail

PolicyDecision

public PolicyDecision()
Default constructor.

Method Detail

getActionDecisions

public Map getActionDecisions()
Gets the Map of action decisions associated with this policy decision. The action name is the key to the Map. The value for each key is an ActionDecision.

Returns:
the Map of action decisions associated with this policy decision. The action name is the key to the Map. The value for each key is an ActionDecision.

addActionDecision

public void addActionDecision(ActionDecision actionDecision)
Adds an action decision to this object if there is already an existing actionDecision associated with the action name in the param actionDecision, merges the values of the new decision with the existing one, changing the time to live for the decision appropriately.

Parameters:
actionDecision - action decision to be added

toString

public String toString()
Gets a String representation of this PolicyDecision

Overrides:
toString in class Object
Returns:
a String representation of this PolicyDecision

toXML

public String toXML()
Gets an XML representation of this object

Returns:
an XML representation of this object