|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.itim.dataservices.model.DirectoryObjectEntity
com.ibm.itim.dataservices.model.domain.RoleEntity
public class RoleEntity
Represents a Role in the data model.
| Field Summary | |
|---|---|
static java.lang.String |
ORGANIZATION
Constant (String) for the organization relationship name. |
static java.lang.String |
OWNER
Constant (String ) for the owner relationship name |
| Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity |
|---|
PARENT |
| Fields inherited from interface com.ibm.itim.util.Sortable |
|---|
ATTR_NAME |
| Constructor Summary | |
|---|---|
RoleEntity(DirectoryObject role)
Constructs a Role with a DirectoryObject. |
|
RoleEntity(Role role)
Constructs a Role with a value object. |
|
| Method Summary | |
|---|---|
void |
addMemberRole(RoleEntity memberRoleEntity)
Adds a member role to this role. |
java.util.Collection<RoleEntity> |
getMemberRoles()
Returns all immediate member roles of the role. |
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. |
java.util.Collection<PersonEntity> |
getOwner()
Returns the owner(s) of the role, if any. |
java.util.Collection<DirectoryObjectEntity> |
getOwnerObjects()
Returns the owner objects of the role, if any. |
java.util.Collection<RoleEntity> |
getParentRoles()
Returns all immediate parent roles of the role. |
void |
update()
Overwrites base implement to validate object class and include "eraccessitem" class and then Updates the attributes of the entity in the data store. |
void |
update(DirectoryObject updObject)
Deprecated. please use update() |
| Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity |
|---|
equals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getObjectCategory, getParent, getParentDN, getProfile, getRelationship, getSortValue, getSupportedRelationships, hashCode, initialize, initialize, isSupportedRelationship, remove, remove, setLifecycle, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ORGANIZATION
public static final java.lang.String OWNER
| Constructor Detail |
|---|
public RoleEntity(Role role)
role - Role object holding the attributes of the role.public RoleEntity(DirectoryObject role)
role - DirectoryObject holding the attributes of the role.| Method Detail |
|---|
public void addMemberRole(RoleEntity memberRoleEntity)
throws ModelCommunicationException,
ModelIntegrityException
memberRoleEntity - The member role to add
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.
public java.util.Collection getMembers()
throws ModelCommunicationException,
ModelIntegrityException
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.
public java.util.Collection getMembers(java.util.Collection returnAttributes)
throws ModelCommunicationException,
ModelIntegrityException
returnAttributes - Collection of attributes contained in the
PersonEntity objects returned by this method.
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.
public java.util.Collection<RoleEntity> getMemberRoles()
throws ModelCommunicationException,
ModelIntegrityException
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.
public java.util.Collection<RoleEntity> getParentRoles()
throws ModelCommunicationException,
ModelIntegrityException
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.
public OrganizationEntity getOrganization()
throws ModelCommunicationException,
ModelIntegrityException
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.
public void update(DirectoryObject updObject)
throws ModelCommunicationException,
ObjectNotFoundException
update in class DirectoryObjectEntityupdObject - DirectoryObject that holds the changes.
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ObjectNotFoundException - Thrown if unable to locate the
entity in the data store. This may be due to a data integrity
problem, or the entity may have been removed by another
client.
public void update()
throws ModelCommunicationException,
ObjectNotFoundException
update in class DirectoryObjectEntityModelCommunicationException - Thrown if unable to communicate
with the data store.
ObjectNotFoundException - Thrown if unable to locate the
entity in the data store. This may be due to a data integrity
problem, or the entity may have been removed by another
client.
public java.util.Collection<PersonEntity> getOwner()
throws ModelCommunicationException,
ModelIntegrityException
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ModelIntegrityException - Thrown if a problem exists with
the consistency of the data model, which prevents the
evaluation of the relationship.
public java.util.Collection<DirectoryObjectEntity> getOwnerObjects()
throws ModelCommunicationException,
ModelIntegrityException
ModelCommunicationException - Thrown if unable to communicate
with the data store.
ModelIntegrityException - Thrown if a problem exists with
the consistency of the data model, which prevents the
evaluation of the relationship.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||