public class AdminDomainFactory
extends java.lang.Object
| Constructor and Description |
|---|
AdminDomainFactory()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AdminDomainEntity |
create(CompoundDN logicalContext,
AdminDomain domain)
Creates an admin domain in the data store with the given
value object to define the admin domain's attributes.
|
AdminDomainEntity |
create(OrganizationalContainerEntity logicalContext,
AdminDomain domain)
Creates an admin domain in the data store with the given
value object to define the admin domain's attributes.
|
public AdminDomainEntity create(OrganizationalContainerEntity logicalContext, AdminDomain domain) throws ModelCommunicationException, ModelCreationException
logicalContext - OrganizationalContainerEntity under which this
entity should logically be placed.domain - Admin Domain's value object use for creation.ModelCommunicationException - Thrown if unable to communicate
with the data store.ModelCreationException - Thrown if unable to create the
entity in the data store. Most likely due to some sort of
schema violation caused by improper attributes set in the
value object.public AdminDomainEntity create(CompoundDN logicalContext, AdminDomain domain) throws ModelCommunicationException, ModelCreationException
logicalContext - CompoundDN that defines the placement of the admin domain.
At least one (1) element and at most two (2)
are expected:
domain - AdminDomain value object to use for creation.ModelCommunicationException - Thrown if unable to communicate
with the data store.ModelCreationException - Thrown if unable to create the
entity in the data store. Most likely due to some sort of
schema violation caused by improper attributes set in the
value object.