Package com.sun.identity.entitlement
Class AndSubject
- java.lang.Object
-
- com.sun.identity.entitlement.LogicalSubject
-
- com.sun.identity.entitlement.AndSubject
-
- All Implemented Interfaces:
EntitlementSubject
public class AndSubject extends LogicalSubject
EntitlementSubject wrapper on a set of EntitlementSubject(s) to provide boolean And logic Membership is of AndSubject is satisfied if the user is a member of any of the wrappedEntitlementSubject
-
-
Constructor Summary
Constructors Constructor Description AndSubject()Constructs OrSubjectAndSubject(Set<EntitlementSubject> eSubjects)Constructs OrSubjectAndSubject(Set<EntitlementSubject> eSubjects, String pSubjectName)Constructs OrSubject
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubjectDecisionevaluate(String realm, SubjectAttributesManager mgr, Subject subject, String resourceName, Map<String,Set<String>> environment)ReturnsSubjectDecisionofEntitlementSubjectevaluation-
Methods inherited from class com.sun.identity.entitlement.LogicalSubject
equals, getESubjects, getPSubjectName, getRequiredAttributeNames, getSearchIndexAttributes, getState, hashCode, isIdentity, setESubjects, setPSubjectName, setState, toJSONObject, toString
-
-
-
-
Constructor Detail
-
AndSubject
public AndSubject()
Constructs OrSubject
-
AndSubject
public AndSubject(Set<EntitlementSubject> eSubjects)
Constructs OrSubject- Parameters:
eSubjects- wrapped EntitlementSubject(s)
-
AndSubject
public AndSubject(Set<EntitlementSubject> eSubjects, String pSubjectName)
Constructs OrSubject- Parameters:
eSubjects- wrapped EntitlementSubject(s)pSubjectName- subject name as used in OpenAM policy, this is relevant only when UserESubject was created from OpenAM policy Subject
-
-
Method Detail
-
evaluate
public SubjectDecision evaluate(String realm, SubjectAttributesManager mgr, Subject subject, String resourceName, Map<String,Set<String>> environment) throws EntitlementException
ReturnsSubjectDecisionofEntitlementSubjectevaluation- Parameters:
realm- Realm name.subject- EntitlementSubject who is under evaluation.resourceName- Resource name.environment- Environment parameters.- Returns:
SubjectDecisionofEntitlementSubjectevaluation- Throws:
EntitlementException- if any errors occur.
-
-