@Deprecated public class PolicyDecision extends Object
PolicyDecision
class represents the result of a policy
evaluation.Constructor and Description |
---|
PolicyDecision()
Deprecated.
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionDecision(ActionDecision actionDecision)
Deprecated.
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. |
void |
addActionDecision(ActionDecision newActionDecision,
String trueValue,
String falseValue)
Deprecated.
Add an
ActionDecision to the PolicyDecision
using the provided trueValue and falseValue
These are the rules followed to add action decision:
Boolean false value overrides boolean true value. |
Object |
clone()
Deprecated.
Makes a copy of this object
|
Map |
getActionDecisions()
Deprecated.
Gets the
Map of action decisions associated
with this policy decision. |
Map |
getResponseAttributes()
Deprecated.
Gets response attributes associated with this policy decision.
|
Map |
getResponseDecisions()
Deprecated.
Gets response decisions associated with this policy decision
|
long |
getTimeToLive()
Deprecated.
Gets the GMT time in milliseconds since epoch when this object is to
be treated as expired.
|
boolean |
hasAdvices()
Deprecated.
Checks wether advices are set in this object
|
static PolicyDecision |
parsePolicyDecision(Node policyDecisionNode)
Deprecated.
Gets a PolicyDecision given corresponding XML node
|
void |
setResponseAttributes(Map responseAttributes)
Deprecated.
Sets response attributes associated with this policy decision
|
void |
setResponseDecisions(Map responseDecisions)
Deprecated.
Sets response decisions associated with this policy decision
|
String |
toString()
Deprecated.
Gets a String representation of this
PolicyDecision |
String |
toXML()
Deprecated.
Gets an XML representation of this object
|
public Map getActionDecisions()
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
.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
.public void addActionDecision(ActionDecision newActionDecision, String trueValue, String falseValue)
ActionDecision
to the PolicyDecision
using the provided trueValue
and falseValue
These are the rules followed to add action decision:
Boolean false value overrides boolean true value. The time to live
of boolean false value overrides the time to live of boolean true value.
Otherwise, action values are simply aggregated. Time to live
is set to the minimum of time to live(s) of all values of the
action.newActionDecision
- an ActionDecision
to be added.trueValue
- String
representing the true
value in the action schema.falseValue
- String
representing the
false value in the action schema.public void addActionDecision(ActionDecision actionDecision)
actionDecision
, merges
the values of the new decision with the existing one,
changing the time to live for the decision appropriately.actionDecision
- action decision to be addedpublic String toString()
PolicyDecision
public String toXML()
public static PolicyDecision parsePolicyDecision(Node policyDecisionNode) throws PolicyException
policyDecisionNode
- XML node for the policy decisionPolicyException
public Map getResponseDecisions()
Map
representing the response decisions associated
with this policy decisionpublic void setResponseDecisions(Map responseDecisions)
responseDecisions
- A Map
representing response
decisions associated with this policy decisionpublic Map getResponseAttributes()
Map
(s) of the ResponseProvider
objects
associated with the policy obtained via the getResponseDecision() call.Map
of response attributes associated with
this policy decision.public void setResponseAttributes(Map responseAttributes)
responseAttributes
- Map
of attribute value pairs
associated with this policy decision.public Object clone()
public long getTimeToLive()
SimpleTimeCondition
s
specified in the Policy
definition.public boolean hasAdvices()
true
, if advices are set, else false
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.