public class Role extends DirectoryObject
RoleEntity,
DynamicRole,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HELPDESK_ROLE |
static java.lang.String |
isMultiValue |
static java.lang.String |
isSingleValue |
static java.lang.String |
OWNER
The attribute for storing the owners of the role
|
static java.lang.String |
PROFILE_NAME
The profile name for Role
|
static java.lang.String |
ROLE_ATTR_ASSIGNMENT_KEY
The name of the attribute for storing the role assignment attribute keys
|
static java.lang.String |
ROLE_ATTR_CLASSIFICATION
The name of the attribute for storing the role classification
|
static java.lang.String |
ROLE_ATTR_DESCRIPTION
String constant for the description attribute name.
|
static java.lang.String |
ROLE_ATTR_NAME
String constant for the naming attribute name.
|
static java.lang.String |
ROLE_ATTR_POLICY_TARGET
String constant for the policy target attribute (Separation of Duty policies which reference this role)
|
static java.lang.String |
ROLE_ATTR_SUBROLES
String constant for the member role attribute.
|
static java.lang.String |
ROLE_CLASSIFICATION_NONE
A no-value options of the attribute for role classification
|
static java.lang.String |
SERVICEOWNER_ROLE |
static java.lang.String |
SUPERVISOR_ROLE |
static java.lang.String |
SYSTEMADMIN_ROLE |
ATTR_ACCESS_RIGHT, ATTR_LIFECYCLE_ENABLE, ATTR_URI, DESCRIPTION, NAME| Constructor and Description |
|---|
Role()
Default empty constructor
|
Role(AttributeValues attrs)
Constructs object with attribute information.
|
Role(DirectoryObject dirObj)
Copy constructor for directory object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getClassification()
Returns the role classification or an empty string if it is null.
|
java.lang.String |
getDescription()
Returns the description of the role.
|
java.util.Collection<DistinguishedName> |
getOwnerDNs()
Returns the collection of DistinguishedName that are defined as the owner(s) for this role
|
java.util.Collection<java.lang.String> |
getPolicyTarget()
Returns the collection of DNs(String) of policies (SoD) which reference this role.
|
int |
hashCode() |
void |
removeOwnerDNs()
Removes the owner(s) of the role.
|
void |
setClassification(java.lang.String classification)
Sets the role classification.
|
void |
setDescription(java.lang.String description)
Changes the description of the role.
|
void |
setOwnerDNs(java.util.Collection<DistinguishedName> owners)
Sets the value of the owner attribute.
|
void |
setPolicyTarget(java.util.Collection<java.lang.String> targets)
Sets the collection of DNs(String) of policies (SoD) which reference this role.
|
addAttribute, addAttributeValues, getAccessRights, getAttribute, getAttributes, getAuthorizationOwners, getMapAttributeNames, getMappedAttributes, getName, getNameAttribute, getOldMappedAttributes, getProfileName, getRawAttributes, getSortValue, getTenantDN, isLifecycleDefined, removeAttribute, removeAttribute, setAccessRights, setAttribute, setAttributes, setAuthorizationOwners, setProfileName, setTenantDN, toStringclearChange, clearChanges, getChanges, getDistinguishedName, getLastModified, getObjectClasses, getOldAttributes, setDistinguishedNamepublic static java.lang.String ROLE_ATTR_NAME
public static java.lang.String ROLE_ATTR_DESCRIPTION
public static java.lang.String ROLE_ATTR_SUBROLES
public static java.lang.String ROLE_ATTR_POLICY_TARGET
public static final java.lang.String OWNER
public static final java.lang.String ROLE_ATTR_CLASSIFICATION
public static final java.lang.String ROLE_CLASSIFICATION_NONE
public static final java.lang.String ROLE_ATTR_ASSIGNMENT_KEY
public static final java.lang.String SYSTEMADMIN_ROLE
public static final java.lang.String SUPERVISOR_ROLE
public static final java.lang.String HELPDESK_ROLE
public static final java.lang.String SERVICEOWNER_ROLE
public static final java.lang.String isSingleValue
public static final java.lang.String isMultiValue
public static java.lang.String PROFILE_NAME
public Role()
public Role(AttributeValues attrs)
attrs - AttributeValues holding the attributes of the role.public Role(DirectoryObject dirObj)
public java.lang.String getDescription()
public java.util.Collection<DistinguishedName> getOwnerDNs()
public void setOwnerDNs(java.util.Collection<DistinguishedName> owners)
rules - The collection of DistinguishedNames to set as the owners for this role.public void removeOwnerDNs()
public void setDescription(java.lang.String description)
description - New String description of the role.public java.util.Collection<java.lang.String> getPolicyTarget()
public void setPolicyTarget(java.util.Collection<java.lang.String> targets)
targets - Collection of DNs (String) of polices which reference this role.public java.lang.String getClassification()
public void setClassification(java.lang.String classification)
roleClassification - the role classificationpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object