com.ibm.itim.dataservices.model.domain
Class RoleEntity

java.lang.Object
  |
  +--com.ibm.itim.dataservices.model.DirectoryObjectEntity
        |
        +--com.ibm.itim.dataservices.model.domain.RoleEntity
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DynamicRoleEntity

public class RoleEntity
extends DirectoryObjectEntity

Represents a Role in the data model.

See Also:
Serialized Form

Field Summary
static java.lang.String ORGANIZATION
          Constant (String) for the organization relationship name.
 
Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity
PARENT
 
Constructor Summary
RoleEntity(Role role)
          Constructs a Role with a value object.
 
Method Summary
 java.util.Collection getMembers()
          Returns all members of the role.
 java.util.Collection getMembers(java.util.Collection returnAttributes)
          Returns all members of the role.
 OrganizationEntity getOrganization()
          Returns the organization of the current object.
 
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity
equals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getParent, getParentDN, getProfile, getRelationship, getSupportedRelationships, hashCode, isSupportedRelationship, remove, remove, setLifecycle, toString, update, update
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ORGANIZATION

public static final java.lang.String ORGANIZATION
Constant (String) for the organization relationship name.

See Also:
Constant Field Values
Constructor Detail

RoleEntity

public RoleEntity(Role role)
Constructs a Role with a value object.

Parameters:
role - Role object holding the attributes of the role.
Method Detail

getMembers

public java.util.Collection getMembers()
                                throws ModelCommunicationException,
                                       ModelIntegrityException
Returns all members of the role.

Returns:
Collection of PersonEntities that are members of the role.
Throws:
ModelCommunicationException - Thrown if unable to communicate with the data store.
ModelIntegrityException - Thrown if a problem exists with the consistency of the data model preventing the evaluation of the relationship.

getMembers

public java.util.Collection getMembers(java.util.Collection returnAttributes)
                                throws ModelCommunicationException,
                                       ModelIntegrityException
Returns all members of the role.

Parameters:
returnAttributes - Collection of attributes contained in the PersonEntity objects returned by this method.
Returns:
Collection of PersonEntities that are members of the role.
Throws:
ModelCommunicationException - Thrown if unable to communicate with the data store.
ModelIntegrityException - Thrown if a problem exists with the consistency of the data model preventing the evaluation of the relationship.

getOrganization

public OrganizationEntity getOrganization()
                                   throws ModelCommunicationException,
                                          ModelIntegrityException
Returns the organization of the current object.

Returns:
OrganizationEntity representing the object's organization.
Throws:
ModelCommunicationException - Thrown if unable to communicate with the data store.
ModelIntegrityException - Thrown if a problem exists with the consistency of the data model preventing the evaluation of the relationship.


IBM Tivoli Identity Manager 4.6
© Copyright International Business Machines Corporation 2005. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.