com.ibm.itim.dataservices.model.domain
Class GroupFactory

java.lang.Object
  extended by com.ibm.itim.dataservices.model.domain.GroupFactory

public class GroupFactory
extends java.lang.Object

A factory class for creating group object in the data store.

Since:
Tivoli Identity Manager 5.1

Constructor Summary
GroupFactory()
          Default constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupFactory

public GroupFactory()
Default constructor.

Method Detail

create

public GroupEntity create(ServiceEntity service,
                          Group group)
                   throws ModelCommunicationException,
                          ModelCreationException
Creates a group in the data store with the given value object to define the group attributes.

Parameters:
service - the service entity that hosts the group.
group - the object that contains group information to be used for group creation.
Returns:
GroupEntity represents the group saved in the data store.
Throws:
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.

create

public GroupEntity create(ServiceEntity service,
                          Group group,
                          AttributeValues rdn)
                   throws ModelCommunicationException,
                          ModelCreationException
Creates a group in the data store with the given value object to define the group attributes.

Parameters:
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.
Returns:
GroupEntity represents the group saved in the data store.
Throws:
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.

create

public GroupEntity create(ServiceEntity service,
                          Group group,
                          AttributeValues rdn,
                          ObjectProfile groupProfile)
                   throws ModelCommunicationException,
                          ModelCreationException
Creates a group in the data store with the given value object to define the group's attributes.

Parameters:
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.
Returns:
GroupEntity represents the group saved in the data store.
Throws:
DuplicateEntryException - if entry already exists
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.


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.