public class ConditionDecision extends Object
EntitlementCondition
evaluation match result and - if applicable - its advices.Constructor and Description |
---|
ConditionDecision(boolean satisfied,
Map<Set> advices)
Constructs an instance of
ConditionDecision . |
ConditionDecision(boolean satisfied,
Map<Set> advices,
long ttl)
Constructs an instance of
ConditionDecision . |
Modifier and Type | Method and Description |
---|---|
void |
addAdvices(ConditionDecision decision)
Adds an advice (from another
ConditionDecision ) to this ConditionDecision . |
void |
clearAdvices()
Clears the current advices associated with this
ConditionDecision . |
Map<Set> |
getAdvices()
Advices associated with this
ConditionDecision . |
long |
getTimeToLive()
Returns the time to live (TTL) of this
ConditionDecision . |
boolean |
isSatisfied()
Whether this
ConditionDecision is satisfied. |
void |
setSatisfied(boolean satisfied)
Sets satisfied state.
|
public ConditionDecision(boolean satisfied, Map<Set> advices)
ConditionDecision
.satisfied
- result of this ConditionDecision
.advices
- Advice map of this ConditionDecision
.public ConditionDecision(boolean satisfied, Map<Set> advices, long ttl)
ConditionDecision
.satisfied
- Result of this ConditionDecision
.advices
- Advice map of this ConditionDecision
.ttl
- The TTL of this ConditionDecision
.public boolean isSatisfied()
ConditionDecision
is satisfied.true
if ConditionDecision
is fulfilled.public void setSatisfied(boolean satisfied)
satisfied
- New satisfied state.public Map<Set> getAdvices()
ConditionDecision
.ConditionDecision
.public void clearAdvices()
ConditionDecision
.public void addAdvices(ConditionDecision decision)
ConditionDecision
) to this ConditionDecision
.decision
- The ConditionDecision
whose advices should be added to this
ConditionDecision
.public long getTimeToLive()
ConditionDecision
.Copyright © 2010-2014, ForgeRock All Rights Reserved.