public class SystemRoleFactory
extends java.lang.Object
SystemRoleEntity| Constructor and Description |
|---|
SystemRoleFactory() |
| Modifier and Type | Method and Description |
|---|---|
SystemRoleEntity |
create(CompoundDN logicalContext,
SystemRole role)
Creates a system role in the data store with the given value object
to define the role's attributes.
|
SystemRoleEntity |
create(OrganizationalContainerEntity logicalContext,
SystemRole role)
Creates a system role in the data store with the given value object
to define the role's attributes.
|
public SystemRoleEntity create(OrganizationalContainerEntity logicalContext, SystemRole role) throws ModelCommunicationException, ModelCreationException
logicalContext - OrganizationalContainerEntity under which this
entity should logically be placed.role - SystemRole 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.public SystemRoleEntity create(CompoundDN logicalContext, SystemRole role) throws ModelCommunicationException, ModelCreationException
logicalContext - At least one (1) element and at most two (2)
are expected:
role - SystemRole 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.