|
|||||||||||
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.PersonEntity
public class PersonEntity
Represents a person (identity) in the data model. This class provides business methods that operate on a person such as change role, suspend, restore, and transfer (move) from one business unit to another. Although the class name indicates human representation, this class could be used to represent any type of identity, even a computing system, which can be provisioned accounts.
Field Summary | |
---|---|
static java.lang.String |
ORGANIZATION
Constant (String) for organization relationship name. |
static java.lang.String |
PARENT
Constant (String) for parent relationship name. |
static java.lang.String |
ROLE
Constant (String) for role relationship name. |
static java.lang.String |
ROLE_ASSIGNMENT_DATA_DELIMETER
String constant for the attribute name of the role assignment data delimeter as data to be stored in the form of" |
static java.lang.String |
ROLE_ASSIGNMENT_KEY_DELIMETER
String constant for the attribute name of the role assignment data delimeter as data to be stored in the form of " |
static java.lang.String |
ROLE_ASSIGNMENT_VALUE_DELIMETER
String constant for the attribute name of the role assignment value delimeter as data to be stored in the form of" |
static java.lang.String |
SUPERVISOR
Constant (String) for supervisor relationship name. |
Fields inherited from interface com.ibm.itim.util.Sortable |
---|
ATTR_NAME |
Constructor Summary | |
---|---|
PersonEntity(DirectoryObject person)
Constructs a PersonEntity, taking a DirectoryObject as the parameter. |
|
PersonEntity(ObjectProfile profile,
Person person)
Constructs a PersonEntity with a profile and value object. |
|
PersonEntity(Person person)
Constructs a PersonEntity with a value object. |
Method Summary | |
---|---|
void |
addRole(RoleEntity role)
Adds the given role to the person's role memberships. |
void |
cleanupRoleAssignmentData()
Clean up all invalid assignment data of the person in the data store. |
java.util.Collection |
getAccounts()
Deprecated. Use AccountSearch class in provisioning package instead. |
PersonEntity |
getImmediateSupervisor()
Returns the Person's immediate supervisor (if any). |
OrganizationEntity |
getOrganization()
Returns the organization containing the person. |
java.util.Set<RoleAssignmentObject> |
getRoleAssignmentData()
Retrieves all role assignment data for the person. |
java.util.Map<DistinguishedName,RoleAssignmentObject> |
getRoleAssignmentData(RoleEntity assignedRole)
Retrieves all role assignment data of the person by a given assigned role. |
java.util.Collection |
getRoles()
Returns the roles the person is a member of. |
java.util.Collection<RoleEntity> |
getRolesChanges(int changeAction)
Returns the role chages for the person based on the change action, which can be either Add or Remove |
PersonEntity |
getSupervisor()
Returns the Person's supervisor (if any). |
boolean |
isComparableTo(java.lang.String filter)
Compares the entity against the given filter. |
boolean |
isMemberOfRole(RoleEntity role)
Retuns true if the Person is a member of the given role. |
void |
move(OrganizationalContainerEntity container)
"Moves" the Person into the given organizational container. |
void |
removeAllRoleAssignmentData()
Remove all assignment data of the person in the data store. |
void |
removeRole(RoleEntity role)
Removes the given role from the person's role memberships. |
void |
removeRoleAssignmentData(java.util.Set<RoleEntity> listAssignedRoles)
Removes role assignment data for a given list of assigned roles. |
void |
setImmediateSupervisor(PersonEntity supervisor)
Changes the Person's immediate supervisor to the given person. |
void |
setRoles(java.util.Collection roles)
Changes the person's role memberships. |
void |
update()
Updates the attributes of the entity in the data store. |
void |
updateRoleAssignmentData(java.util.Set<RoleAssignmentObject> assignmentData)
Changes the role assignment data of the person. |
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, update |
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 PARENT
public static final java.lang.String SUPERVISOR
public static final java.lang.String ROLE
public static final java.lang.String ROLE_ASSIGNMENT_DATA_DELIMETER
public static final java.lang.String ROLE_ASSIGNMENT_VALUE_DELIMETER
public static final java.lang.String ROLE_ASSIGNMENT_KEY_DELIMETER
Constructor Detail |
---|
public PersonEntity(ObjectProfile profile, Person person)
profile
- Profile identifying the type of this person.person
- Person object holding the attributes of the person.public PersonEntity(Person person)
person
- Person object holding the attributes of the person. Note: the
object must have the name of the profile identifying the type
of this person (i.e., Employee, Contractor, etc.)public PersonEntity(DirectoryObject person)
person
- DirectoryObject holding the attributes of the person. Note:
the object must have the name of the profile identifying the
type of this person (i.e., Employee, Contractor, etc.)Method Detail |
---|
public java.util.Collection getRoles() 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 location of the person's roles.
This is most likely due to the removal of a role from the
data store that is identified as one of the person's
roles.public java.util.Collection<RoleEntity> getRolesChanges(int changeAction) throws ModelCommunicationException, ObjectNotFoundException
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 location of the person's roles.
This is most likely due to the removal of a role from the
data store that is identified as one of the person's
roles.
ObjectNotFoundException
public void setRoles(java.util.Collection roles) throws ModelCommunicationException, ObjectNotFoundException
roles
- Collection of RoleEntities representing the person's roles.
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 addRole(RoleEntity role) throws ModelCommunicationException, ObjectNotFoundException
role
- RoleEntity representing the role to add.
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 removeRole(RoleEntity role) throws ModelCommunicationException, ObjectNotFoundException
role
- RoleEntity representing the role to remove.
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 boolean isMemberOfRole(RoleEntity role)
role
- Role in question.
public PersonEntity getSupervisor() 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 PersonEntity getImmediateSupervisor() 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 setImmediateSupervisor(PersonEntity supervisor) throws ModelCommunicationException, ObjectNotFoundException
supervisor
- PersonEntity representing the new immediate supervisor.
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 move(OrganizationalContainerEntity container) throws ModelCommunicationException, ObjectNotFoundException
container
- Person's new parent container (OrganizationalContainerEntity).
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 getAccounts() throws ModelCommunicationException, ObjectNotFoundException
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 boolean isComparableTo(java.lang.String filter) throws ModelCommunicationException, ObjectNotFoundException
filter
- Filter that defines the criteria for returned
DynamicRoleEntities to meet. The filter must be in the format
defined by RFC2254.
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 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 removeRoleAssignmentData(java.util.Set<RoleEntity> listAssignedRoles) throws ModelCommunicationException, ModelIntegrityException
listAssignedRoles
- The list of roles to which the person is assigned.
ModelCommunicationException
- Thrown if unable to communicate with the data store.
ModelIntegrityException
- Thrown if a problem with the consistency of the data model
prevents the removal of role assignment data.public java.util.Set<RoleAssignmentObject> getRoleAssignmentData() 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 retrieval of role assignment data.public java.util.Map<DistinguishedName,RoleAssignmentObject> getRoleAssignmentData(RoleEntity assignedRole) throws ModelCommunicationException, ModelIntegrityException
assignedRole
- the role to which the person is assigned.
ModelCommunicationException
- Thrown if unable to communicate with the data store.
ModelIntegrityException
- Thrown if a problem with the consistency of the data model
prevents the retrieval of role assignment data.public void updateRoleAssignmentData(java.util.Set<RoleAssignmentObject> assignmentData) throws ModelCommunicationException, ModelIntegrityException
assignmentData
- A set of RoleAssignmentObjects that holds the changes of role
assignment data.
ModelCommunicationException
- Thrown if unable to communicate with the data store.
ModelIntegrityException
- Thrown if a problem with the consistency of the data model
prevents the update of role assignment data.public void removeAllRoleAssignmentData() 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 removal of role assignment data.public void cleanupRoleAssignmentData() 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 removal of role assignment data.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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |