com.sun.identity.policy
Class ConditionDecision

java.lang.Object
  |
  +--com.sun.identity.policy.ConditionDecision

public class ConditionDecision
extends java.lang.Object

The ConditionDecision class represents the result of the evaluation of a condition.


Constructor Summary
ConditionDecision()
          No argument constructor
ConditionDecision(boolean allowed)
          Constructs ConditionDecision given the boolean result of a condition evaluation
ConditionDecision(boolean allowed, long timeToLive)
          Constructs ConditionDecision given the boolean result of a condition evaluation and time to live
ConditionDecision(boolean allowed, long timeToLive, java.util.Map advices)
          Constructs ConditionDecision given the boolean result of a condition evaluation, time to live and advices
ConditionDecision(boolean allowed, java.util.Map advices)
          Constructs ConditionDecision given the boolean result of a condition evaluation and advices
 
Method Summary
 java.util.Map getAdvices()
          Gets advices associated with this object
 long getTimeToLive()
          Sets advices associated with this object
 boolean isAllowed()
          Gets boolean result of condition evaluation
 void setAdvices(java.util.Map advices)
          Sets advices associated with this object
 void setAllowed(boolean allowed)
          Sets boolean result of condition evaluation
 void setTimeToLive(long timeToLive)
          Sets advices associated with this object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionDecision

public ConditionDecision()
No argument constructor

ConditionDecision

public ConditionDecision(boolean allowed)
Constructs ConditionDecision given the boolean result of a condition evaluation
Parameters:
allowed - boolean result of a condition evaluation

ConditionDecision

public ConditionDecision(boolean allowed,
                         java.util.Map advices)
Constructs ConditionDecision given the boolean result of a condition evaluation and advices
Parameters:
allowed - boolean result of a condition evaluation
advices - advices associated with this action decision. The advice name is the key to the Map. The value is a set of advice message Strings corresponding to the advice name.

ConditionDecision

public ConditionDecision(boolean allowed,
                         long timeToLive)
Constructs ConditionDecision given the boolean result of a condition evaluation and time to live
Parameters:
allowed - boolean result of a condition evaluation
timeToLive - GMT time in milliseconds since epoch when this object is tobe treated as expired.

ConditionDecision

public ConditionDecision(boolean allowed,
                         long timeToLive,
                         java.util.Map advices)
Constructs ConditionDecision given the boolean result of a condition evaluation, time to live and advices
Parameters:
allowed - boolean result of a condition evaluation
timeToLive - GMT time in milliseconds since epoch when this object is tobe treated as expired.
advices - advices associated with this action decision. The advice name is the key to the Map. The value is a set of advice message Strings corresponding to the advice name.
Method Detail

setAllowed

public void setAllowed(boolean allowed)
Sets boolean result of condition evaluation
Parameters:
allowed - boolean result of condition evaluation

isAllowed

public boolean isAllowed()
Gets boolean result of condition evaluation
Returns:
result of condition evaluation

setAdvices

public void setAdvices(java.util.Map advices)
Sets advices associated with this object
Parameters:
advices - advices associated with this object. The advice name is the key to the Map. The value is a set of advice message Strings corresponding to the advice name.

getAdvices

public java.util.Map getAdvices()
Gets advices associated with this object
Returns:
advices associated with this object. The advice name is the key to the Map. The value is a set of advice message Strings corresponding to the advice name.

setTimeToLive

public void setTimeToLive(long timeToLive)
Sets advices associated with this object
Parameters:
timeToLive - GMT time in milliseconds since epoch when this object is tobe treated as expired.

getTimeToLive

public long getTimeToLive()
Sets advices associated with this object
Returns:
GMT time in milliseconds since epoch when this object is to be treated as expired.


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.