Package oracle.iam.identity.rolemgmt.vo
Class Role
java.lang.Object
oracle.iam.identity.rolemgmt.vo.Role
- All Implemented Interfaces:
Serializable,Identity
The
In addition to the setters/getters, you can use the following constants from
ROLE_UNIQUE_NAME
ROLE_NAME
ROLE_NAMESPACE
ROLE_DISPLAY_NAME
ROLE_EMAIL
ROLE_DESCRIPTION
ROLE_OWNER_KEY
ROLE_PARENTS
ROLE_MEMBERSHIPS
ACCESS_POLICIES
ORGANIZATIONS_PUBLISHED_TO
CATALOG_ATTRIBUTES
ROLE_USER_MEMBERSHIP_RULE
ROLE_USER_MEMBERSHIP_RULE_SQL
ROLE_PARENT_KEY
ROLE_PARENT_KEY_OPERATION
ROLE_LDAP_GUID
ROLE_LDAP_DN
ROLE_CREATE_DATE
ROLE_UPDATE_DATE
ROLE_UPDATED_BY
ROLE_TID
ROLE_TNAME
ROLE_MTID
Role class is a value object class to hold the
id, attribute name-value pairs of a Role.
In addition to the setters/getters, you can use the following constants from
RoleManagerConstants in setAttribute/getAttribute to pass values:
{@link #RoleManagerConstants.ROLE_KEY ROLE_KEY}ROLE_UNIQUE_NAME
ROLE_NAME
ROLE_NAMESPACE
ROLE_DISPLAY_NAME
ROLE_EMAIL
ROLE_DESCRIPTION
ROLE_OWNER_KEY
ROLE_PARENTS
ROLE_MEMBERSHIPS
ACCESS_POLICIES
ORGANIZATIONS_PUBLISHED_TO
CATALOG_ATTRIBUTES
ROLE_USER_MEMBERSHIP_RULE
ROLE_USER_MEMBERSHIP_RULE_SQL
ROLE_PARENT_KEY
ROLE_PARENT_KEY_OPERATION
ROLE_LDAP_GUID
ROLE_LDAP_DN
ROLE_CREATE_DATE
ROLE_UPDATE_DATE
ROLE_UPDATED_BY
ROLE_TID
ROLE_TNAME
ROLE_MTID
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a Role object with identityId.Constructs a Role object with identityIdand amapof attribute name-value pairs.Constructs a Role object with amapof attribute name-value pairs. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares if passed object is an instance of Role and has the same id as the passed object.getAttribute(String attr) Get the value of the specified Role attributeattr.Returns a Set of all attribute names for this Role.Returns a map of all attribute-value pairs for this Role.Get the value ofRole Descriptionattribute.Get the base value ofRole Display Nameattribute.Returns id of the Role.getName()Get the value ofRole Nameattribute.Get the value ofRole Namespaceattribute.Get the value ofRole Unique Nameattribute.voidsetAttribute(String attr, Object val) Sets the attributeattrand it's valueval.voidsetDescription(String description) Set theRole Descriptionattribute with a valuedescription.voidsetDisplayName(String displayName) Set theRole Display Nameattribute with a valuedisplayNamein the MLS map as base value.voidSet theRole Nameattribute with a valueroleName.toString()Returns the string representation of this Role.
-
Constructor Details
-
Role
Constructs a Role object with identityId.- Parameters:
entityId- The id of the Role.
-
Role
Constructs a Role object with amapof attribute name-value pairs.- Parameters:
attrs- Themapof attribute name-value pairs.
-
Role
Constructs a Role object with identityIdand amapof attribute name-value pairs.- Parameters:
entityId- The id of the Role.attrs- Themapof attribute name-value pairs.
-
-
Method Details
-
setAttribute
Sets the attributeattrand it's valueval.- Specified by:
setAttributein interfaceIdentity- Parameters:
attr- The attribute that needs to be set.val- The value of the attribute.
-
getAttribute
Get the value of the specified Role attributeattr.- Specified by:
getAttributein interfaceIdentity- Parameters:
attr- The attribute whose value is to be returned.- Returns:
- The value of the attribute.
-
getEntityId
Returns id of the Role.- Specified by:
getEntityIdin interfaceIdentity- Returns:
- id of the Role.
-
setName
Set theRole Nameattribute with a valueroleName.- Parameters:
roleName- TheRole Namevalue to be set.
-
getName
Get the value ofRole Nameattribute.- Returns:
- The value of
Role Nameattribute
-
setDescription
Set theRole Descriptionattribute with a valuedescription.- Parameters:
description- TheRole Descriptionvalue to be set.
-
getDescription
Get the value ofRole Descriptionattribute.- Returns:
- The value of
Role Descriptionattribute.
-
setDisplayName
Set theRole Display Nameattribute with a valuedisplayNamein the MLS map as base value.- Parameters:
displayName- The baseRole Display Namevalue to be set.
-
getDisplayName
Get the base value ofRole Display Nameattribute.- Returns:
- The base value of
Role Display Nameattribute.
-
getUniqueName
Get the value ofRole Unique Nameattribute.- Returns:
- The value of
Role Unique Nameattribute.
-
getNamespace
Get the value ofRole Namespaceattribute.- Returns:
- The value of
Role Namespaceattribute.
-
getAttributes
Returns a map of all attribute-value pairs for this Role.- Specified by:
getAttributesin interfaceIdentity- Returns:
- A
mapof all attribute-value pairs for this Role.
-
getAttributeNames
Returns a Set of all attribute names for this Role.- Specified by:
getAttributeNamesin interfaceIdentity- Returns:
- A
Setof all attribute names for this Role.
-
toString
Returns the string representation of this Role. -
equals
Compares if passed object is an instance of Role and has the same id as the passed object.
-