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. |
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, getParent, getParentDN, getProfile, getRelationship, getSupportedRelationships, hashCode, isSupportedRelationship, remove, remove, toString, update, update |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ORGANIZATION
public static final java.lang.String ORGANIZATION
- Constant (String) for the organization relationship name.
RoleEntity
public RoleEntity(Role role)
- Constructs a Role with a value object.
- Parameters:
role
- Role object holding the attributes of the role.
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.