public class OrCondition extends LogicalCondition
EntitlementCondition
wrapper on a set of
EntitlementCondition
s to provide boolean OR logic.
Membership of OrCondition
is satisfied if the user is a member of any
of the wrapped EntitlementCondition
.Constructor and Description |
---|
OrCondition()
Constructor.
|
OrCondition(Set<EntitlementCondition> eConditions)
Constructor for providing
EntitlementCondition s. |
Modifier and Type | Method and Description |
---|---|
ConditionDecision |
evaluate(String realm,
Subject subject,
String resourceName,
Map<String,Set<String>> environment)
Evaluates this
ConditionDecision 's EntitlementCondition s to determine the correct
decision to return - if any of the EntitlementCondition s are true, the returned decision is
satisfied and has no advices. |
equals, getEConditions, getPConditionName, getState, hashCode, setEConditions, setPConditionName, setState, toJSONObject, toString, validate
getDisplayType, init, setDisplayType, setState, toJSONObject
public OrCondition()
public OrCondition(Set<EntitlementCondition> eConditions)
EntitlementCondition
s.eConditions
- Wrapped EntitlementCondition
(s).public ConditionDecision evaluate(String realm, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
ConditionDecision
's EntitlementCondition
s to determine the correct
decision to return - if any of the EntitlementCondition
s are true, the returned decision is
satisfied and has no advices.evaluate
in interface EntitlementCondition
evaluate
in class LogicalCondition
realm
- Realm name.subject
- EntitlementCondition under evaluation.resourceName
- Resource name.environment
- Environment parameters.ConditionDecision
having performed the EntitlementCondition
(s) evaluation.{@link
- EntitlementException} in case of any error.EntitlementException
- if error occurs.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.