public class OrganizationalContainerEntity extends DirectoryObjectEntity
ORGANIZATION, PARENT| Constructor and Description |
|---|
OrganizationalContainerEntity(ObjectProfile profile,
OrganizationalContainer container)
Constructs with the given value object and object profile.
|
OrganizationalContainerEntity(OrganizationalContainer container)
Constructs with the given value object.
|
| Modifier and Type | Method and Description |
|---|---|
CompoundDN |
getLogicalNameContext()
Returns the compound distinguished name structure that can be used
as a context for searching for entities contained within this
container or placing entities within this container.
|
OrganizationEntity |
getOrganization()
Returns the organization of the current object.
|
OrganizationalContainerEntity |
getParentContainer()
Returns the parent organizational container (if any).
|
boolean |
hasDependencies()
Returns whether there are any dependent entities within the container.
|
void |
moveOrgTree(OrganizationalContainer newParentOrg)
Method to update the parent org
|
equals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getObjectCategory, getParent, getParentDN, getProfile, getRelationship, getSortValue, getSupportedRelationships, hashCode, initialize, initialize, isSupportedRelationship, remove, remove, setLifecycle, toString, update, updatepublic OrganizationalContainerEntity(OrganizationalContainer container)
container - OrganizationalContainer value object.public OrganizationalContainerEntity(ObjectProfile profile, OrganizationalContainer container)
profile - ObjectProfile identifying the type of container.container - OrganizationalContainer value object.public boolean hasDependencies()
throws ModelCommunicationException
ModelCommunicationException - Thrown if unable to communicate
with the data store.public OrganizationalContainerEntity getParentContainer() throws ModelCommunicationException, ModelIntegrityException
ModelCommunicationException - Thrown if unable to communicate
with the data store.ModelIntegrityException - Thrown if a parent container
relationship has been identified, but the system is unable to
locate the parent 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 CompoundDN getLogicalNameContext()
public void moveOrgTree(OrganizationalContainer newParentOrg) throws ModelCommunicationException, ObjectNotFoundException
public OrganizationEntity getOrganization() throws ModelCommunicationException, ModelIntegrityException
ModelCommunicationException - Thrown if unable to communicate
with the data store.ModelIntegrityException - Thrown if unable to locate the
entity's organization.