public class AdminDomainEntity extends OrganizationalContainerEntity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADMINISTRATOR
Constant (String) for the organization relationship name.
|
ORGANIZATION, PARENT| Constructor and Description |
|---|
AdminDomainEntity(AdminDomain domain)
Constructs an AdminDomainEntity with a value object.
|
AdminDomainEntity(DirectoryObject domain)
Constructs an AdminDomainEntity, taking a DirectoryObject as parameter.
|
AdminDomainEntity(ObjectProfile profile,
AdminDomain domain)
Constructs an AdminDomainEntity with a profile and value object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdministrator(PersonEntity administrator)
Adds the given administrator to the domain.
|
java.util.Collection |
getAdministrators()
Returns the administrators for the administrative domain.
|
OrganizationEntity |
getOrganization()
Returns the organization that contains the admin domain.
|
void |
removeAdministrator(PersonEntity administrator)
Removes the given administrator from the domain.
|
void |
setAdministrators(java.util.Collection administrators)
Changes the administrators for the domain.
|
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 ADMINISTRATOR
public AdminDomainEntity(ObjectProfile profile, AdminDomain domain)
profile - Profile identifying the type of this admin domain.domain - AdminDomain object holding the attributes of the admin domain.public AdminDomainEntity(AdminDomain domain)
domain - AdminDomain object holding the attributes of the admin domain.public AdminDomainEntity(DirectoryObject domain)
domain - DirectoryObject object holding the attributes of the admin domain.public java.util.Collection getAdministrators()
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 setAdministrators(java.util.Collection administrators)
throws ModelCommunicationException,
ObjectNotFoundException
administrators - Collection of PersonEntity objects to be the new administrator(s).ModelCommunicationException - Thrown if unable to communicate
with the data store.ObjectNotFoundException - Thrown if unable to locate the
admin domain 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 addAdministrator(PersonEntity administrator) throws ModelCommunicationException, ObjectNotFoundException
administrator - PersonEntity representing the new administrator for the domain.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 removeAdministrator(PersonEntity administrator) throws ModelCommunicationException, ObjectNotFoundException
administrator - PersonEntity representing the adminstrator 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 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.