public class RoleEntity extends DirectoryObjectEntity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ORGANIZATION
Constant (String) for the organization relationship name.
|
static java.lang.String |
OWNER
Constant (String ) for the owner relationship name
|
PARENT| Constructor and Description |
|---|
RoleEntity(DirectoryObject role)
Constructs a Role with a DirectoryObject.
|
RoleEntity(ObjectProfile profile,
Role role)
Constructs a Role with a object profile and value object.
|
RoleEntity(Role role)
Constructs a Role with a value object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMemberRole(RoleEntity memberRoleEntity) |
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 |
moveOrgRole(java.lang.String newParentOrg) |
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()
|
equals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getObjectCategory, getParent, getParentDN, getProfile, getRelationship, getSortValue, getSupportedRelationships, hashCode, initialize, initialize, isSupportedRelationship, remove, setLifecycle, toStringpublic static final java.lang.String ORGANIZATION
public static final java.lang.String OWNER
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.public RoleEntity(ObjectProfile profile, Role role)
profile - ObjectProfile of the role.role - Role object holding the attributes of the role.public void addMemberRole(RoleEntity memberRoleEntity) throws ModelCommunicationException, ModelIntegrityException
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 moveOrgRole(java.lang.String newParentOrg)
throws ModelCommunicationException,
ObjectNotFoundException
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.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 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 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 deletedModelCommunicationException - 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