com.ibm.itim.dataservices.model.domain

Class GroupFactory

  • java.lang.Object
    • 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 Governance 5.1
    • 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.