com.ibm.itim.dataservices.model.system
Class SystemRoleFactory

java.lang.Object
  extended by com.ibm.itim.dataservices.model.system.SystemRoleFactory

public class SystemRoleFactory
extends java.lang.Object

Factory for creating system roles in the data store.

See Also:
SystemRoleEntity

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

Constructor Detail

SystemRoleFactory

public SystemRoleFactory()
Method Detail

create

public SystemRoleEntity create(OrganizationalContainerEntity logicalContext,
                               SystemRole role)
                        throws ModelCommunicationException,
                               ModelCreationException
Creates a system role in the data store with the given value object to define the role's attributes.

Parameters:
logicalContext - OrganizationalContainerEntity under which this entity should logically be placed.
role - SystemRole value object to use for creation.
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.

create

public SystemRoleEntity create(CompoundDN logicalContext,
                               SystemRole role)
                        throws ModelCommunicationException,
                               ModelCreationException
Creates a system role in the data store with the given value object to define the role's attributes.

Parameters:
logicalContext - At least one (1) element and at most two (2) are expected:
  • CompoundDN.elements[0] must contain the organization DN
  • CompoundDN.elements[1] may contain the parent DN
An element cannot be skipped. For example, you can not pass the parent DN without passing the organization DN.
role - SystemRole value object to use for creation.
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.


IBM Tivoli Identity Manager 5.1
© Copyright International Business Machines Corporation 2007, 2009. All rightsreserved. US Government Users Restricited RightsUse, duplication or disclosure restricted by GSA ADP ScheduleContract with IBM Corp.