public class ConditionDecision extends Object
EntitlementCondition
evaluation match result and - if applicable - its advice.Constructor and Description |
---|
ConditionDecision(boolean satisfied,
Map<String,Set<String>> advices)
Deprecated.
|
ConditionDecision(boolean satisfied,
Map<String,Set<String>> advices,
long ttl)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addAdvices(ConditionDecision decision)
Deprecated.
|
void |
clearAdvices()
Deprecated.
|
Map<String,Set<String>> |
getAdvice()
Advices associated with this
ConditionDecision . |
Map<String,Set<String>> |
getResponseAttributes()
Retrieves the response attributes.
|
long |
getTimeToLive()
Returns the time to live (TTL) of this
ConditionDecision . |
boolean |
isSatisfied()
Whether this
ConditionDecision is satisfied. |
static ConditionDecision.Builder |
newBuilder(boolean satisfied)
New decision builder.
|
static ConditionDecision.Builder |
newFailureBuilder()
New builder representing a failure.
|
static ConditionDecision.Builder |
newSuccessBuilder()
New builder representing a satisfied.
|
@Deprecated public ConditionDecision(boolean satisfied, Map<String,Set<String>> advices)
ConditionDecision
.
satisfied
- result of this ConditionDecision
.advices
- Advice map of this ConditionDecision
.@Deprecated public ConditionDecision(boolean satisfied, Map<String,Set<String>> 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 Map<String,Set<String>> getAdvice()
ConditionDecision
.ConditionDecision
.public Map<String,Set<String>> getResponseAttributes()
public long getTimeToLive()
ConditionDecision
.@Deprecated public void clearAdvices()
ConditionDecision
.
@Deprecated public void addAdvices(ConditionDecision decision)
ConditionDecision
) to this ConditionDecision
.
decision
- The ConditionDecision
whose advice should be added to this
ConditionDecision
.public static ConditionDecision.Builder newBuilder(boolean satisfied)
satisfied
- whether the decision represents a successful evaluation or notpublic static ConditionDecision.Builder newSuccessBuilder()
public static ConditionDecision.Builder newFailureBuilder()
Copyright © 2010-2018, ForgeRock All Rights Reserved.