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 identityId
and amap
of attribute name-value pairs.Constructs a Role object with amap
of attribute name-value pairs. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares 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 Description
attribute.Get the base value ofRole Display Name
attribute.Returns id of the Role.getName()
Get the value ofRole Name
attribute.Get the value ofRole Namespace
attribute.Get the value ofRole Unique Name
attribute.void
setAttribute
(String attr, Object val) Sets the attributeattr
and it's valueval
.void
setDescription
(String description) Set theRole Description
attribute with a valuedescription
.void
setDisplayName
(String displayName) Set theRole Display Name
attribute with a valuedisplayName
in the MLS map as base value.void
Set theRole Name
attribute 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 amap
of attribute name-value pairs.- Parameters:
attrs
- Themap
of attribute name-value pairs.
-
Role
Constructs a Role object with identityId
and amap
of attribute name-value pairs.- Parameters:
entityId
- The id of the Role.attrs
- Themap
of attribute name-value pairs.
-
-
Method Details
-
setAttribute
Sets the attributeattr
and it's valueval
.- Specified by:
setAttribute
in 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:
getAttribute
in 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:
getEntityId
in interfaceIdentity
- Returns:
- id of the Role.
-
setName
Set theRole Name
attribute with a valueroleName
.- Parameters:
roleName
- TheRole Name
value to be set.
-
getName
Get the value ofRole Name
attribute.- Returns:
- The value of
Role Name
attribute
-
setDescription
Set theRole Description
attribute with a valuedescription
.- Parameters:
description
- TheRole Description
value to be set.
-
getDescription
Get the value ofRole Description
attribute.- Returns:
- The value of
Role Description
attribute.
-
setDisplayName
Set theRole Display Name
attribute with a valuedisplayName
in the MLS map as base value.- Parameters:
displayName
- The baseRole Display Name
value to be set.
-
getDisplayName
Get the base value ofRole Display Name
attribute.- Returns:
- The base value of
Role Display Name
attribute.
-
getUniqueName
Get the value ofRole Unique Name
attribute.- Returns:
- The value of
Role Unique Name
attribute.
-
getNamespace
Get the value ofRole Namespace
attribute.- Returns:
- The value of
Role Namespace
attribute.
-
getAttributes
Returns a map of all attribute-value pairs for this Role.- Specified by:
getAttributes
in interfaceIdentity
- Returns:
- A
map
of all attribute-value pairs for this Role.
-
getAttributeNames
Returns a Set of all attribute names for this Role.- Specified by:
getAttributeNames
in interfaceIdentity
- Returns:
- A
Set
of 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.
-