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. |
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity |
equals, getDirectoryObject, getDistinguishedName, getEntity, getParent, getParentDN, getProfile, getRelationship, getSupportedRelationships, hashCode, isSupportedRelationship, remove, remove, toString, update, update |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SUPERVISOR
public static final java.lang.String SUPERVISOR
- Constant (String) for supervisor relationship name.
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.
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.