public class OrganizationFactory
extends java.lang.Object
OrganizationEntity| Constructor and Description |
|---|
OrganizationFactory()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
OrganizationEntity |
create(DistinguishedName tenantDN,
Organization org)
Creates an organization in the data store with the given
value object to define the organization's attributes.
|
public OrganizationEntity create(DistinguishedName tenantDN, Organization org) throws ModelCommunicationException, ModelCreationException
tenantDN - Distinguished name of the system root (tenant) under
which the organization is to be created.org - Organization 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.