@Deprecated public class SubjectTypeManager extends Object
SubjectTypeManager
provides
methods to get a list of configured Subject
objects, and to obtain a factory object for it.Modifier | Constructor and Description |
---|---|
protected |
SubjectTypeManager()
Deprecated.
Constructs a
SubjectTypeManager object |
protected |
SubjectTypeManager(PolicyManager pm)
Deprecated.
Constructs a
SubjectTypeManager object |
Modifier and Type | Method and Description |
---|---|
void |
addSubject(String subjectName,
Subject subject)
Deprecated.
Adds a policy subject at realm.
|
String |
getDisplayName(String subjectType)
Deprecated.
Returns the display name for the subject type
|
String |
getI18NKey(String subjectType)
Deprecated.
Returns the I18N key to be used to localize the
display name for the subject type name.
|
protected String |
getI18NPropertiesFileName(String subjectType)
Deprecated.
Returns the I18N properties file name that should be
used to localize display names for the given
subject type.
|
Set |
getSelectedSubjectTypeNames()
Deprecated.
Returns a set of valid subject type names configured for the
organization.
|
Subject |
getSubject(String subjectType)
Deprecated.
Returns an instance of the
Subject given the subject type
name. |
Subject |
getSubjectByName(String subjectName)
Deprecated.
Returns the Subject object identified by subjectName defined at
the realm
|
Set |
getSubjectNames()
Deprecated.
Get the set of names of Subject(s) defined at the realm
|
String |
getSubjectTypeName(Subject subject)
Deprecated.
Returns the type of the
Subject implementation. |
Set |
getSubjectTypeNames()
Deprecated.
Returns a set of all valid subject type names defined by the policy
service.
|
String |
getViewBeanURL(Subject subject)
Deprecated.
Returns the view bean URL given the Subject
|
Subject |
removeSubject(String subjectName)
Deprecated.
Removes the subject with the given name from the realm.
|
Subject |
removeSubject(String subjectName,
boolean forcedRemove)
Deprecated.
Removes the subject with the given name from the realm.
|
void |
replaceSubject(String subjectName,
Subject subject)
Deprecated.
Replaces an existing subject with the same name by the
current one at the realm.
|
protected SubjectTypeManager() throws SSOException
SubjectTypeManager
objectSSOException
protected SubjectTypeManager(PolicyManager pm)
SubjectTypeManager
objectpm
- PolicyManager
to initialize
SubjectTypeManager
withpublic Set getSubjectTypeNames() throws SSOException, PolicyException
LDAPRole
, LDAPGroup
, etc.SSOException
- if the SSOToken
used to create
the PolicyManager
has become invalidPolicyException
- for any other abnormal conditionpublic Set getSelectedSubjectTypeNames() throws SSOException, PolicyException
LDAPRole
, LDAPGroup
, etc.SSOException
- if the SSOToken
used to create
the PolicyManager
has become invalidPolicyException
- for any other abnormal conditionpublic String getSubjectTypeName(Subject subject)
Subject
implementation.
For example LDAPRoles
, LDAPGroups
etc.subject
- Subject
for which this method will
return its associated typeSubject
, e.g., LDAPRoles
,
LDAPGroups
, etc. Returns null
if
not present.protected String getI18NPropertiesFileName(String subjectType)
subjectType
- subject type namepublic String getI18NKey(String subjectType)
subjectType
- subject type namepublic String getDisplayName(String subjectType)
subjectType
- subject typepublic Subject getSubject(String subjectType) throws NameNotFoundException, PolicyException
Subject
given the subject type
name.subjectType
- subject type.Subject
given the subject type
name.NameNotFoundException
- if the Subject
for the
subjectType
name is not foundPolicyException
- for any other abnormal conditionpublic void addSubject(String subjectName, Subject subject) throws NameAlreadyExistsException, InvalidNameException, PolicyException, SSOException
subjectName
- name of the Subject instancesubject
- Subject object to be addedNameAlreadyExistsException
- if a Subject with the given name
already exists at the realmInvalidNameException
- if the subject name is invalidPolicyException
- if can not add the SubjectSSOException
public Subject removeSubject(String subjectName) throws ObjectInUseException, PolicyException, SSOException
subjectName
- name of the Subjectnull
if Subject with
the given subjectName is not presentPolicyException
- if can not remove the SubjectObjectInUseException
SSOException
public Subject removeSubject(String subjectName, boolean forcedRemove) throws ObjectInUseException, PolicyException, SSOException
forcedRemove
argument is set to true
.
If the forcedRemove
argument is set to
true
policies that are using the subject would
be modified to remove the references to the subjectsubjectName
- name of the SubjectforcedRemove
- if set to true
, policies that
use the subject would be modifed to remove the references
to the subject. Otherwise, ObjectInUseException
would be thrown if there is any policy using the subjectnull
if Subject with
the given subjectName is not presentPolicyException
- if can not remove the SubjectObjectInUseException
SSOException
public void replaceSubject(String subjectName, Subject subject) throws NameNotFoundException, PolicyException, SSOException
subjectName
- name of the Subject instancesubject
- Subject that will replace an existing Subject
with the same nameNameNotFoundException
- if a Subject instance
with the given name is not presentPolicyException
- if can not replace the SubjectSSOException
public Set getSubjectNames() throws PolicyException, SSOException
PolicyException
SSOException
public Subject getSubjectByName(String subjectName) throws NameNotFoundException, PolicyException
subjectName
- name of subject.NameNotFoundException
- if a Subject with the given name
does not existPolicyException
- if can not get the SubjectCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.