public abstract class LogicalSubject extends Object implements EntitlementSubject
OrSubejct
and AndSubejct
.Constructor and Description |
---|
LogicalSubject()
Constructor.
|
LogicalSubject(Set<EntitlementSubject> eSubjects)
Constructor.
|
LogicalSubject(Set<EntitlementSubject> eSubjects,
String pSubjectName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns
true if the passed in object is equal to this object |
Set<EntitlementSubject> |
getESubjects()
Returns the nested EntitlementSubject(s)
|
String |
getPSubjectName()
Returns OpenAM policy Subject name
|
Set<String> |
getRequiredAttributeNames()
Returns the required attribute names.
|
Map<String,Set<String>> |
getSearchIndexAttributes()
Returns the search index attributes.
|
String |
getState()
Returns state of the object
|
int |
hashCode()
Returns hash code of the object
|
boolean |
isIdentity()
Returns
true is this subject is an identity object. |
void |
setESubjects(Set<EntitlementSubject> eSubjects)
Sets the nested EntitlementSubject(s)
|
void |
setPSubjectName(String pSubjectName)
Sets OpenAM policy Subject name
|
void |
setState(String state)
Sets state of the object
|
org.json.JSONObject |
toJSONObject()
Returns JSONObject mapping of the object
|
String |
toString()
Returns string representation of the object
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
evaluate
public LogicalSubject()
public LogicalSubject(Set<EntitlementSubject> eSubjects)
eSubjects
- wrapped EntitlementSubject(s)public LogicalSubject(Set<EntitlementSubject> eSubjects, String pSubjectName)
eSubjects
- wrapped EntitlementSubject(s)pSubjectName
- subject name as used in OpenAM policy,
this is relevant only when UserESubject was created from
OpenAM policy Subjectpublic void setState(String state)
setState
in interface EntitlementSubject
state
- State of the object encoded as stringpublic String getState()
getState
in interface EntitlementSubject
public void setESubjects(Set<EntitlementSubject> eSubjects)
eSubjects
- the nested EntitlementSubject(s)public Set<EntitlementSubject> getESubjects()
public void setPSubjectName(String pSubjectName)
pSubjectName
- subject name as used in OpenAM policy,
this is relevant only when UserESubject was created from
OpenAM policy Subjectpublic String getPSubjectName()
public org.json.JSONObject toJSONObject() throws org.json.JSONException
org.json.JSONException
- if can not map to JSONObjectpublic String toString()
public boolean equals(Object obj)
true
if the passed in object is equal to this objectpublic int hashCode()
public Map<String,Set<String>> getSearchIndexAttributes()
getSearchIndexAttributes
in interface EntitlementSubject
public Set<String> getRequiredAttributeNames()
getRequiredAttributeNames
in interface EntitlementSubject
public boolean isIdentity()
true
is this subject is an identity object.isIdentity
in interface EntitlementSubject
true
is this subject is an identity object.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.