public class BusinessUnitEntity extends OrganizationalContainerEntity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SUPERVISOR
Constant (String) for supervisor relationship name.
|
ORGANIZATION, PARENT| Constructor and Description |
|---|
BusinessUnitEntity(BusinessUnit bu)
Constructs a BusinessUnitEntity with a profile and value object.
|
BusinessUnitEntity(DirectoryObject bu)
Constructs a BusinessUnitEntity, taking a DirectoryObject as the parameter.
|
BusinessUnitEntity(ObjectProfile profile,
BusinessUnit bu)
Constructs a BusinessUnitEntity with a profile and value object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getLogicalNameContext, getParentContainer, hasDependencies, moveOrgTreeequals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getObjectCategory, getParent, getParentDN, getProfile, getRelationship, getSortValue, getSupportedRelationships, hashCode, initialize, initialize, isSupportedRelationship, remove, remove, setLifecycle, toString, update, updatepublic static final java.lang.String SUPERVISOR
public BusinessUnitEntity(ObjectProfile profile, BusinessUnit bu)
profile - Profile identifying the type of this business unit.bu - BusinessUnit object holding the attributes of the
business unit.public BusinessUnitEntity(BusinessUnit bu)
bu - BusinessUnit object holding the attributes of the
business unit.public BusinessUnitEntity(DirectoryObject bu)
bu - DirectoryObject object holding the attributes of the
business unit.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 void setSupervisor(PersonEntity person) throws ModelCommunicationException, ObjectNotFoundException
person - PersonEntity representing the new supervisor.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.public OrganizationEntity getOrganization() throws ModelCommunicationException, ModelIntegrityException
getOrganization in class OrganizationalContainerEntityModelCommunicationException - Thrown if unable to communicate
with the data store.ModelIntegrityException - Thrown if unable to locate the
entity's organization.