Package com.sun.identity.entitlement
Class OrCondition
- java.lang.Object
-
- com.sun.identity.entitlement.EntitlementConditionAdaptor
-
- com.sun.identity.entitlement.LogicalCondition
-
- com.sun.identity.entitlement.OrCondition
-
- All Implemented Interfaces:
EntitlementCondition
public class OrCondition extends LogicalCondition
EntitlementConditionwrapper on a set ofEntitlementConditions to provide boolean OR logic. Membership ofOrConditionis satisfied if the user is a member of any of the wrappedEntitlementCondition.
-
-
Constructor Summary
Constructors Constructor Description OrCondition()Constructor.OrCondition(Set<EntitlementCondition> eConditions)Constructor for providingEntitlementConditions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionDecisionevaluate(String realm, Subject subject, String resourceName, Map<String,Set<String>> environment)Evaluates thisConditionDecision'sEntitlementConditions to determine the correct decision to return - if any of theEntitlementConditions are true, the returned decision is satisfied and has no advices.-
Methods inherited from class com.sun.identity.entitlement.LogicalCondition
equals, getEConditions, getPConditionName, getState, hashCode, setEConditions, setPConditionName, setState, toJSONObject, toString, validate
-
Methods inherited from class com.sun.identity.entitlement.EntitlementConditionAdaptor
getDisplayType, init, setDisplayType, setState, toJSONObject
-
-
-
-
Constructor Detail
-
OrCondition
public OrCondition()
Constructor.
-
OrCondition
public OrCondition(Set<EntitlementCondition> eConditions)
Constructor for providingEntitlementConditions.- Parameters:
eConditions- WrappedEntitlementCondition(s).
-
-
Method Detail
-
evaluate
public ConditionDecision evaluate(String realm, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
Evaluates thisConditionDecision'sEntitlementConditions to determine the correct decision to return - if any of theEntitlementConditions are true, the returned decision is satisfied and has no advices.- Specified by:
evaluatein interfaceEntitlementCondition- Specified by:
evaluatein classLogicalCondition- Parameters:
realm- Realm name.subject- EntitlementCondition under evaluation.resourceName- Resource name.environment- Environment parameters.- Returns:
- the
ConditionDecisionhaving performed theEntitlementCondition(s) evaluation. - Throws:
EntitlementException- if error occurs.
-
-