public class GroupFactory
extends java.lang.Object
| Constructor and Description |
|---|
GroupFactory()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
GroupEntity |
create(ServiceEntity service,
Group group)
Creates a group in the data store with the given
value object to define the group attributes.
|
GroupEntity |
create(ServiceEntity service,
Group group,
AttributeValues rdn)
Creates a group in the data store with the given
value object to define the group attributes.
|
GroupEntity |
create(ServiceEntity service,
Group group,
AttributeValues rdn,
ObjectProfile groupProfile)
Creates a group in the data store with the given
value object to define the group's attributes.
|
public GroupEntity create(ServiceEntity service, Group group) throws ModelCommunicationException, ModelCreationException
service - the service entity that hosts the group.group - the object that contains group information to be used for group creation.ModelCommunicationException - Thrown if unable to communicate
with the data store.ModelCreationException - Thrown if unable to create the
entity in the data store. The might be the result of
schema violation caused by incorrect attributes set in the
value object.public GroupEntity create(ServiceEntity service, Group group, AttributeValues rdn) throws ModelCommunicationException, ModelCreationException
service - the service entity that hosts the group.group - the object that contains group information to be used for group creation.rdn - the attribute value that holds the relative distinguished name of the
group to insert.ModelCommunicationException - Thrown if unable to communicate
with the data store.ModelCreationException - Thrown if unable to create the
entity in the data store. The might be the result of
schema violation caused by incorrect attributes set in the
value object.public GroupEntity create(ServiceEntity service, Group group, AttributeValues rdn, ObjectProfile groupProfile) throws ModelCommunicationException, ModelCreationException
service - the service entity that hosts the group.group - the object that contains group information to be used for group creation.rdn - the attribute value that holds the relative distinguished name of the
group to insert.groupProfile - The profile for the group to be created.DuplicateEntryException - if entry already existsModelCommunicationException - Thrown if unable to communicate
with the data store.ModelCreationException - Thrown if unable to create the
entity in the data store. The might be the result of
schema violation caused by incorrect attributes set in the
value object.