|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.iam.identity.rolemgmt.vo.Role
public class Role
The Role
class is a value object class to hold the id, attribute name-value pairs of a Role.
Constructor Summary | |
---|---|
Role(java.util.HashMap attrs) Constructs a Role object with a map of attribute name-value pairs. |
|
Role(java.lang.String entityId) Constructs a Role object with id entityId . |
|
Role(java.lang.String entityId, java.util.HashMap attrs) Constructs a Role object with id entityId and a map of attribute name-value pairs. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other) Compares if passed object is an instance of Role and has the same id as the passed object. |
java.lang.Object |
getAttribute(java.lang.String attr) Get the value of the specified Role attribute attr . |
java.util.Set |
getAttributeNames() Returns a Set of all attribute names for this Role. |
java.util.HashMap |
getAttributes() Returns a map of all attribute-value pairs for this Role. |
java.lang.String |
getDescription() Get the value of Role Description attribute. |
java.lang.String |
getDisplayName() Get the value of Role Display Name attribute. |
java.lang.String |
getEntityId() Returns id of the Role. |
java.lang.String |
getName() Get the value of Role Name attribute. |
java.lang.String |
getNamespace() Get the value of Role Namespace attribute. |
java.lang.String |
getUniqueName() Get the value of Role Unique Name attribute. |
void |
setAttribute(java.lang.String attr, java.lang.Object val) Sets the attribute attr and it's value val . |
void |
setDescription(java.lang.String description) Set the Role Description attribute with a value description . |
void |
setDisplayName(java.lang.String displayName) Set the Role Display Name attribute with a value displayName . |
void |
setName(java.lang.String roleName) Set the Role Name attribute with a value roleName . |
java.lang.String |
toString() Returns the string representation of this Role. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Role(java.lang.String entityId)
entityId
.
entityId
- The id of the Role.public Role(java.util.HashMap attrs)
map
of attribute name-value pairs.
attrs
- The map
of attribute name-value pairs.public Role(java.lang.String entityId, java.util.HashMap attrs)
entityId
and a map
of attribute name-value pairs.
entityId
- The id of the Role.attrs
- The map
of attribute name-value pairs.Method Detail |
---|
public void setAttribute(java.lang.String attr, java.lang.Object val)
attr
and it's value val
.setAttribute
in interface Identity
attr
- The attribute that needs to be set.val
- The value of the attribute.public java.lang.Object getAttribute(java.lang.String attr)
attr
.getAttribute
in interface Identity
attr
- The attribute whose value is to be returned.public java.lang.String getEntityId()
getEntityId
in interface Identity
public void setName(java.lang.String roleName)
Role Name
attribute with a value roleName
.roleName
- The Role Name
value to be set.public java.lang.String getName()
Role Name
attribute.Role Name
attributepublic void setDescription(java.lang.String description)
Role Description
attribute with a value description
.description
- The Role Description
value to be set.public java.lang.String getDescription()
Role Description
attribute.Role Description
attribute.public void setDisplayName(java.lang.String displayName)
Role Display Name
attribute with a value displayName
.displayName
- The Role Display Name
value to be set.public java.lang.String getDisplayName()
Role Display Name
attribute.Role Display Name
attribute.public java.lang.String getUniqueName()
Role Unique Name
attribute.Role Unique Name
attribute.public java.lang.String getNamespace()
Role Namespace
attribute.Role Namespace
attribute.public java.util.HashMap getAttributes()
getAttributes
in interface Identity
map
of all attribute-value pairs for this Role.public java.util.Set getAttributeNames()
getAttributeNames
in interface Identity
Set
of all attribute names for this Role.public java.lang.String toString()
toString
in interface Identity
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- The object whose value is to be compared.other
is an instance of Role and has the same id, false otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |