public class RoleTarget extends java.lang.Object implements IPolicyTarget
RoleTarget class allows for an ITIM policy
to target individual roles or all roles in the system.| Constructor and Description |
|---|
RoleTarget()
Creates a
RoleTarget, targeting all static roles
in the organization. |
RoleTarget(java.lang.String roleId)
Creates a
RoleTarget, targeting a specific role in
the system, which is specified with the String distinguished
name. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertToLDAPString()
Converts this RoleTarget instance into its
String
representation for storage in LDAP. |
boolean |
equals(java.lang.Object o)
Compares the given object with this RoleTarget object for equality.
|
boolean |
getIncludeAllStatic()
Returns a flag, indicating whether or not this target includes
all static roles in the organization.
|
java.lang.String |
getRoleId()
Returns the
String distinguished name for an individual
specified role. |
int |
hashCode()
Returns the hash code value for this RoleTarget.
|
boolean |
isExistInTargetList(java.util.Collection<IPolicyTarget> targetList)
Checks to see if this target exists in the specified collection of
IPolicyTarget
instances. |
static boolean |
isRoleTarget(java.lang.String str)
Checks the
IPolicyTarget String representation
to see if it is a RoleTarget |
static RoleTarget |
loadFromLDAPString(java.lang.String str)
Builds a new RoleTarget instance from its
String
representation. |
java.lang.String |
toString()
Returns a string representation of this RoleTarget.
|
public RoleTarget()
RoleTarget, targeting all static roles
in the organization.public RoleTarget(java.lang.String roleId)
RoleTarget, targeting a specific role in
the system, which is specified with the String distinguished
name.roleId - the distinguished name of the role as a String.public boolean isExistInTargetList(java.util.Collection<IPolicyTarget> targetList)
IPolicyTargetIPolicyTarget
instances.isExistInTargetList in interface IPolicyTargettargetList - a collection of IPolicyTarget objectspublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to be compared for equality with this RoleTarget.Object.equals(java.lang.Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String convertToLDAPString()
String
representation for storage in LDAP.convertToLDAPString in interface IPolicyTargetString encoding of this targetpublic static boolean isRoleTarget(java.lang.String str)
IPolicyTarget String representation
to see if it is a RoleTargetstr - the String encoding of a targetpublic static RoleTarget loadFromLDAPString(java.lang.String str)
String
representation.str - the String encoding of this targetpublic boolean getIncludeAllStatic()
boolean flagpublic java.lang.String getRoleId()
String distinguished name for an individual
specified role. If this target includes multiple roles (wildcard),
then this method can return null.String id for the targeted role