Skip navigation links


oracle.iam.identity.rolemgmt.vo
Class Role

java.lang.Object
  extended by oracle.iam.identity.rolemgmt.vo.Role

All Implemented Interfaces:
java.io.Serializable, Identity

public class Role
extends java.lang.Object
implements Identity

The Role class is a value object class to hold the GUID, attribute name-value pairs of a Role.

See Also:
Serialized Form

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 GUID entityId.
Role(java.lang.String entityId, java.util.HashMap attrs)
          Constructs a Role object with GUID 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 GUID 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 GUID 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

Role

public Role(java.lang.String entityId)
Constructs a Role object with GUID entityId.
Parameters:
entityId - The GUID of the Role.

Role

public Role(java.util.HashMap attrs)
Constructs a Role object with a map of attribute name-value pairs.
Parameters:
attrs - The map of attribute name-value pairs.

Role

public Role(java.lang.String entityId,
            java.util.HashMap attrs)
Constructs a Role object with GUID entityId and a map of attribute name-value pairs.
Parameters:
entityId - The GUID of the Role.
attrs - The map of attribute name-value pairs.

Method Detail

setAttribute

public void setAttribute(java.lang.String attr,
                         java.lang.Object val)
Sets the attribute attr and it's value val.
Specified by:
setAttribute in interface Identity
Parameters:
attr - The attribute that needs to be set.
val - The value of the attribute.

getAttribute

public java.lang.Object getAttribute(java.lang.String attr)
Get the value of the specified Role attribute attr.
Specified by:
getAttribute in interface Identity
Parameters:
attr - The attribute whose value is to be returned.
Returns:
The value of the attribute.

getEntityId

public java.lang.String getEntityId()
Returns GUID of the Role.
Specified by:
getEntityId in interface Identity
Returns:
GUID of the Role.

setName

public void setName(java.lang.String roleName)
Set the Role Name attribute with a value roleName.
Parameters:
roleName - The Role Name value to be set.

getName

public java.lang.String getName()
Get the value of Role Name attribute.
Returns:
The value of Role Name attribute

setDescription

public void setDescription(java.lang.String description)
Set the Role Description attribute with a value description.
Parameters:
description - The Role Description value to be set.

getDescription

public java.lang.String getDescription()
Get the value of Role Description attribute.
Returns:
The value of Role Description attribute.

setDisplayName

public void setDisplayName(java.lang.String displayName)
Set the Role Display Name attribute with a value displayName.
Parameters:
displayName - The Role Display Name value to be set.

getDisplayName

public java.lang.String getDisplayName()
Get the value of Role Display Name attribute.
Returns:
The value of Role Display Name attribute.

getUniqueName

public java.lang.String getUniqueName()
Get the value of Role Unique Name attribute.
Returns:
The value of Role Unique Name attribute.

getNamespace

public java.lang.String getNamespace()
Get the value of Role Namespace attribute.
Returns:
The value of Role Namespace attribute.

getAttributes

public java.util.HashMap getAttributes()
Returns a map of all attribute-value pairs for this Role.
Specified by:
getAttributes in interface Identity
Returns:
A map of all attribute-value pairs for this Role.

getAttributeNames

public java.util.Set getAttributeNames()
Returns a Set of all attribute names for this Role.
Specified by:
getAttributeNames in interface Identity
Returns:
A Set of all attribute names for this Role.

toString

public java.lang.String toString()
Returns the string representation of this Role.
Specified by:
toString in interface Identity
Overrides:
toString in class java.lang.Object
Returns:
The string representation of this Role.

equals

public boolean equals(java.lang.Object other)
Compares if passed object is an instance of Role and has the same GUID as the passed object.
Overrides:
equals in class java.lang.Object
Parameters:
other - The object whose value is to be compared.
Returns:
True if other is an instance of Role and has the same GUID, false otherwise.

Skip navigation links


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.