com.ibm.itim.dataservices.model.domain

Class RoleFactory

  • java.lang.Object
    • com.ibm.itim.dataservices.model.domain.RoleFactory


  • public class RoleFactory
    extends java.lang.Object
    Factory for creating roles in the data store.
    See Also:
    RoleEntity
    • Constructor Summary

      Constructors 
      Constructor and Description
      RoleFactory() 
    • Constructor Detail

      • RoleFactory

        public RoleFactory()
    • Method Detail

      • create

        public RoleEntity create(CompoundDN logicalContext,
                                 Role role)
                          throws ModelCommunicationException,
                                 ModelCreationException
        Creates a role in the data store with the given value object to define the role's attributes.
        Parameters:
        logicalContext - CompoundDN that defines the placement of the role. At least one (1) element and at most two (2) are expected:
        • logicalContext.elements[1] must contain the organization DN
        • logicalContext.elements[2] may contain the parent DN (optional)
        An element cannot be skipped. For example, you can not pass the parent DN without passing the organization DN.
        role - Role value object to use for creation.
        Returns:
        RoleEntity representing the stored role.
        Throws:
        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.