|
|||||||||||
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. |
void |
deleteMemberRole(RoleEntity memberRoleEntity)
Deletes a member role from parent role. |
AccessInfo |
getAccessInfo()
|
java.util.Set<RoleAssignmentAttribute> |
getAllAssignmentAttributes()
Get all assignment attributes from the current role and all the parent roles. |
java.util.Set<RoleAssignmentAttribute> |
getAssignmentAttributes()
Gets the assignment attribute. |
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. |
boolean |
isAssignmentAttributeInUse(java.lang.String attributeName)
Checks to see if any person has the assignment attribute values for the specified assignment. |
void |
remove()
Removes the role from the data store. |
void |
setAssignmentAttributes(java.util.Set<RoleAssignmentAttribute> assignmentAttributes)
Sets the assignment attributes to 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, 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 DirectoryObjectEntity
updObject
- 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 DirectoryObjectEntity
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 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.public java.util.Set<RoleAssignmentAttribute> getAssignmentAttributes() throws ModelCommunicationException, ModelIntegrityException
ModelCommunicationException
- Thrown if unable to communicate with the data store.
ModelIntegrityException
- Thrown if a problem with the consistency of the
data model prevents the evaluation of the relationship.public void setAssignmentAttributes(java.util.Set<RoleAssignmentAttribute> assignmentAttributes) throws ModelCommunicationException, ModelIntegrityException
assignmentAttributes
- Set of RoleAssignmentAttribute objects that represents role
assignment attributes. Only the name of the
RoleAssignmentAttribute is used for this method. The role DN
and role name are ignored. If the empty set is passed, then
existing assignment attributes are deleted.
ModelCommunicationException
- Thrown if unable to communicate with the data store.
ModelIntegrityException
- Thrown if a problem with the consistency of the
data model prevents the evaluation of the relationship.public boolean isAssignmentAttributeInUse(java.lang.String attributeName) throws ModelCommunicationException, ModelIntegrityException
attributeName
- The name of assignment attribute.
ModelCommunicationException
- Thrown if unable to communicate with the data store.
ModelIntegrityException
- Thrown if a problem with the consistency of the data
model prevents the evaluation of the relationship.public java.util.Set<RoleAssignmentAttribute> getAllAssignmentAttributes() throws ModelCommunicationException, ModelIntegrityException
ModelCommunicationException
- Thrown if unable to communicate with the data store.
ModelIntegrityException
- Thrown if a problem with the consistency of the data model
prevents getting the assignment attributes.public void remove() throws ModelCommunicationException, ObjectNotFoundException, ModelRemoveException
remove
in class DirectoryObjectEntity
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 already been removed by
another client.
ModelRemoveException
- Thrown if unable to remove an object
of the data store.public void deleteMemberRole(RoleEntity memberRoleEntity) throws ModelCommunicationException, ModelIntegrityException
memberRoleEntity
- The member role to be deleted
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 AccessInfo getAccessInfo() throws ModelCommunicationException, ObjectNotFoundException
ModelCommunicationException
ObjectNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |