Package com.sun.identity.entitlement
Class LogicalSubject
- java.lang.Object
-
- com.sun.identity.entitlement.LogicalSubject
-
- All Implemented Interfaces:
EntitlementSubject
- Direct Known Subclasses:
AndSubject,NotSubject,OrSubject
public abstract class LogicalSubject extends Object implements EntitlementSubject
Base class forOrSubejctandAndSubejct.
-
-
Constructor Summary
Constructors Constructor Description LogicalSubject()Constructor.LogicalSubject(Set<EntitlementSubject> eSubjects)Constructor.LogicalSubject(Set<EntitlementSubject> eSubjects, String pSubjectName)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Returnstrueif the passed in object is equal to this objectSet<EntitlementSubject>getESubjects()Returns the nested EntitlementSubject(s)StringgetPSubjectName()Returns OpenAM policy Subject nameSet<String>getRequiredAttributeNames()Returns the required attribute names.Map<String,Set<String>>getSearchIndexAttributes()Returns the search index attributes.StringgetState()Returns state of the objectinthashCode()Returns hash code of the objectbooleanisIdentity()Returnstrueis this subject is an identity object.voidsetESubjects(Set<EntitlementSubject> eSubjects)Sets the nested EntitlementSubject(s)voidsetPSubjectName(String pSubjectName)Sets OpenAM policy Subject namevoidsetState(String state)Sets state of the objectorg.json.JSONObjecttoJSONObject()Returns JSONObject mapping of the objectStringtoString()Returns string representation of the object-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.identity.entitlement.EntitlementSubject
evaluate
-
-
-
-
Constructor Detail
-
LogicalSubject
public LogicalSubject()
Constructor.
-
LogicalSubject
public LogicalSubject(Set<EntitlementSubject> eSubjects)
Constructor.- Parameters:
eSubjects- wrapped EntitlementSubject(s)
-
LogicalSubject
public LogicalSubject(Set<EntitlementSubject> eSubjects, String pSubjectName)
Constructor.- 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
-
setState
public void setState(String state)
Sets state of the object- Specified by:
setStatein interfaceEntitlementSubject- Parameters:
state- State of the object encoded as string
-
getState
public String getState()
Returns state of the object- Specified by:
getStatein interfaceEntitlementSubject- Returns:
- state of the object encoded as string
-
setESubjects
public void setESubjects(Set<EntitlementSubject> eSubjects)
Sets the nested EntitlementSubject(s)- Parameters:
eSubjects- the nested EntitlementSubject(s)
-
getESubjects
public Set<EntitlementSubject> getESubjects()
Returns the nested EntitlementSubject(s)- Returns:
- the nested EntitlementSubject(s)
-
setPSubjectName
public void setPSubjectName(String pSubjectName)
Sets OpenAM policy Subject name- Parameters:
pSubjectName- subject name as used in OpenAM policy, this is relevant only when UserESubject was created from OpenAM policy Subject
-
getPSubjectName
public String getPSubjectName()
Returns OpenAM policy Subject name- Returns:
- subject name as used in OpenAM policy, this is relevant only when UserESubject was created from OpenAM policy Subject
-
toJSONObject
public org.json.JSONObject toJSONObject() throws org.json.JSONExceptionReturns JSONObject mapping of the object- Returns:
- JSONObject mapping of the object
- Throws:
org.json.JSONException- if can not map to JSONObject
-
toString
public String toString()
Returns string representation of the object
-
equals
public boolean equals(Object obj)
Returnstrueif the passed in object is equal to this object
-
hashCode
public int hashCode()
Returns hash code of the object
-
getSearchIndexAttributes
public Map<String,Set<String>> getSearchIndexAttributes()
Returns the search index attributes.- Specified by:
getSearchIndexAttributesin interfaceEntitlementSubject- Returns:
- the search index attributes.
-
getRequiredAttributeNames
public Set<String> getRequiredAttributeNames()
Returns the required attribute names.- Specified by:
getRequiredAttributeNamesin interfaceEntitlementSubject- Returns:
- the required attribute names.
-
isIdentity
public boolean isIdentity()
Returnstrueis this subject is an identity object.- Specified by:
isIdentityin interfaceEntitlementSubject- Returns:
trueis this subject is an identity object.
-
-