public class SeparationOfDutyRule extends DirectoryObject implements java.lang.Comparable
SeparationOfDutyPolicy,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROFILE_NAME
The profile name for SeparationOfDutyPolicy
|
ATTR_ACCESS_RIGHT, ATTR_LIFECYCLE_ENABLE, ATTR_URI, DESCRIPTION, NAME| Constructor and Description |
|---|
SeparationOfDutyRule()
Default empty constructor
|
SeparationOfDutyRule(java.lang.String name,
int cardinality,
java.util.Collection<java.lang.String> roles)
Constructor which allos setting all values for the separation of duty rule
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object object) |
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getActualRolesMap()
Gets a map containing the roles that are associated with this Separation of Duty Rule as
the keys to the map.
|
int |
getCardinality()
Gets the cardinality value for this separation of duty rule
|
java.lang.String |
getName()
Gets the name of the separation of duty rule.
|
java.lang.String |
getProfileName()
Returns the name of the profile associated to the object
|
java.util.Collection<java.lang.String> |
getRoles()
Gets the list of roles that are associated with this Separation of Duty Rule
|
int |
hashCode() |
void |
setCardinality(int cardinality)
Sets the cardinality value for this spearation of duty rule
|
void |
setName(java.lang.String name)
Sets the name of the separation of duty rule.
|
void |
setRoles(java.util.Collection<java.lang.String> roles)
A set of roles this rule should apply.
|
addAttribute, addAttributeValues, getAccessRights, getAttribute, getAttributes, getAuthorizationOwners, getMapAttributeNames, getMappedAttributes, getNameAttribute, getOldMappedAttributes, getRawAttributes, getSortValue, getTenantDN, isLifecycleDefined, removeAttribute, removeAttribute, setAccessRights, setAttribute, setAttributes, setAuthorizationOwners, setProfileName, setTenantDN, toStringclearChange, clearChanges, getChanges, getDistinguishedName, getLastModified, getObjectClasses, getOldAttributes, setDistinguishedNamepublic static final java.lang.String PROFILE_NAME
public SeparationOfDutyRule()
public SeparationOfDutyRule(java.lang.String name,
int cardinality,
java.util.Collection<java.lang.String> roles)
name - name of the separation of duty rulecardinality - the cardinality of the separation of duty rule (should be less than the number of roles)roles - Collection of DistinguishedName representing the organizational roles that are in this rulepublic java.lang.String getProfileName()
DirectoryObjectgetProfileName in class DirectoryObjectpublic void setName(java.lang.String name)
name - public java.lang.String getName()
getName in class DirectoryObjectpublic int getCardinality()
public void setCardinality(int cardinality)
cardinality - the cardinality to set for this rule (should be less than the number of roles in the rule)public java.util.Collection<java.lang.String> getRoles()
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getActualRolesMap()
public void setRoles(java.util.Collection<java.lang.String> roles)
roles cannot be null.roles - public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable