com.ibm.itim.dataservices.model.domain
Class BusinessUnitEntity

java.lang.Object
  |
  +--com.ibm.itim.dataservices.model.DirectoryObjectEntity
        |
        +--com.ibm.itim.dataservices.model.domain.OrganizationalContainerEntity
              |
              +--com.ibm.itim.dataservices.model.domain.BusinessUnitEntity
All Implemented Interfaces:
java.io.Serializable

public class BusinessUnitEntity
extends OrganizationalContainerEntity

Class that represents a business unit in the logical organization chart within the data model. A business unit is an org chart container that is is subordinate to an organization. This use of this object is limited to containers with no special semantics other than those of a basic container with an optional supervisor (i.e., organizational unit or location).

See Also:
Serialized Form

Field Summary
static java.lang.String SUPERVISOR
          Constant (String) for supervisor relationship name.
 
Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity
ORGANIZATION, PARENT
 
Constructor Summary
BusinessUnitEntity(BusinessUnit bu)
          Constructs a BusinessUnitEntity with a profile and value object.
BusinessUnitEntity(ObjectProfile profile, BusinessUnit bu)
          Constructs a BusinessUnitEntity with a profile and value object.
 
Method Summary
 OrganizationEntity getOrganization()
          Returns the organization of the current object.
 PersonEntity getSupervisor()
          Returns the supervisor for the business unit.
 void setSupervisor(PersonEntity person)
          Changes the supervisor for the business unit.
 
Methods inherited from class com.ibm.itim.dataservices.model.domain.OrganizationalContainerEntity
getLogicalNameContext, getParentContainer, hasDependencies
 
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

SUPERVISOR

public static final java.lang.String SUPERVISOR
Constant (String) for supervisor relationship name.

See Also:
Constant Field Values
Constructor Detail

BusinessUnitEntity

public BusinessUnitEntity(ObjectProfile profile,
                          BusinessUnit bu)
Constructs a BusinessUnitEntity with a profile and value object.

Parameters:
profile - Profile identifying the type of this business unit.
bu - BusinessUnit object holding the attributes of the business unit.

BusinessUnitEntity

public BusinessUnitEntity(BusinessUnit bu)
Constructs a BusinessUnitEntity with a profile and value object.

Parameters:
bu - BusinessUnit object holding the attributes of the business unit.
Method Detail

getSupervisor

public PersonEntity getSupervisor()
                           throws ModelCommunicationException,
                                  ModelIntegrityException
Returns the supervisor for the business unit. A business unit can have zero or one supervisor(s).

Returns:
PersonEntity representing the supervisor of the business unit, null if none present.
Throws:
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.

setSupervisor

public void setSupervisor(PersonEntity person)
                   throws ModelCommunicationException,
                          ObjectNotFoundException
Changes the supervisor for the business unit.

Parameters:
person - PersonEntity representing the new supervisor.
Throws:
ModelCommunicationException - Thrown if unable to communicate with the data store.
ObjectNotFoundException - Thrown if unable to locate the business unit in the data store. This may be due to a data integrity problem, or the entity may have been removed by another client.

getOrganization

public OrganizationEntity getOrganization()
                                   throws ModelCommunicationException,
                                          ModelIntegrityException
Returns the organization of the current object.

Returns:
OrganizationEntity representing the object's organization.
Throws:
ModelCommunicationException - Thrown if unable to communicate with the data store.
ModelIntegrityException - Thrown if unable to locate the entity's organization.


IBM Tivoli Identity Manager 4.6
© Copyright International Business Machines Corporation 2005. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.