| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--com.ibm.itim.dataservices.model.DirectoryObjectEntity
        |
        +--com.ibm.itim.dataservices.model.domain.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 | ORGANIZATIONConstant (String) for organization relationship name. | 
| static java.lang.String | PARENTConstant (String) for parent relationship name. | 
| static java.lang.String | ROLEConstant (String) for role relationship name. | 
| static java.lang.String | SUPERVISORConstant (String) for supervisor relationship name. | 
| Constructor Summary | |
|---|---|
| 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. | 
|  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.Collection | getRoles()Returns the roles the person is a member of. | 
|  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 | removeRole(RoleEntity role)Removes the given role from the person's role memberships. | 
|  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. | 
| Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity | 
|---|
| equals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getParent, getParentDN, getProfile, getRelationship, getSupportedRelationships, hashCode, isSupportedRelationship, remove, remove, setLifecycle, toString, update, 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
| 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.)| 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 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.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||