Package com.sun.identity.entitlement
Class AndCondition
- java.lang.Object
-
- com.sun.identity.entitlement.EntitlementConditionAdaptor
-
- com.sun.identity.entitlement.LogicalCondition
-
- com.sun.identity.entitlement.AndCondition
-
- All Implemented Interfaces:
EntitlementCondition
public class AndCondition extends LogicalCondition
EntitlementConditionwrapper on a set ofEntitlementCondition(s) to provide boolean OR logic Membership is ofAndConditionis satisfied if the user is a member of any of the wrappedEntitlementCondition.
-
-
Constructor Summary
Constructors Constructor Description AndCondition()ConstructsAndConditionAndCondition(Set<EntitlementCondition> eConditions)Constructs AndCondition
-
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)ReturnsConditionDecisionofEntitlementConditionevaluation-
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
-
AndCondition
public AndCondition()
ConstructsAndCondition
-
AndCondition
public AndCondition(Set<EntitlementCondition> eConditions)
Constructs AndCondition- Parameters:
eConditions- wrappedEntitlementCondition(s)
-
-
Method Detail
-
evaluate
public ConditionDecision evaluate(String realm, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
ReturnsConditionDecisionofEntitlementConditionevaluation- Specified by:
evaluatein interfaceEntitlementCondition- Specified by:
evaluatein classLogicalCondition- Parameters:
realm- Realm name.subject- EntitlementCondition who is under evaluation.resourceName- Resource name.environment- Environment parameters.- Returns:
ConditionDecisionofEntitlementConditionevaluation- Throws:
EntitlementException- if error occurs.
-
-