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

java.lang.Object
  |
  +--com.ibm.itim.dataservices.model.domain.BusinessUnitFactory

public class BusinessUnitFactory
extends java.lang.Object

Factory class for creating business units in the data store.

See Also:
BusinessUnitEntity

Constructor Summary
BusinessUnitFactory()
          Default constructor.
 
Method Summary
 BusinessUnitEntity create(CompoundDN logicalContext, BusinessUnit businessUnit)
          Creates a business unit in the data store with the given value object to define the business unit's attributes.
 BusinessUnitEntity create(OrganizationalContainerEntity logicalContext, BusinessUnit businessUnit)
          Creates a business unit in the data store with the given value object to define the business unit's attributes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessUnitFactory

public BusinessUnitFactory()
Default constructor.

Method Detail

create

public BusinessUnitEntity create(OrganizationalContainerEntity logicalContext,
                                 BusinessUnit businessUnit)
                          throws ModelCommunicationException,
                                 ModelCreationException
Creates a business unit in the data store with the given value object to define the business unit's attributes.

Parameters:
logicalContext - OrganizationalContainerEntity under which this entity should logically be placed.
businessUnit - BusinessUnit value object use for creation.
Returns:
BusinessUnitEntity representing the business unit saved in 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. Most likely due to some sort of schema violation caused by improper attributes set in the value object.

create

public BusinessUnitEntity create(CompoundDN logicalContext,
                                 BusinessUnit businessUnit)
                          throws ModelCommunicationException,
                                 ModelCreationException
Creates a business unit in the data store with the given value object to define the business unit's attributes.

Parameters:
logicalContext - CompoundDN that defines the placement of the business unit. 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.
businessUnit - BusinessUnit value object use for creation.
Returns:
BusinessUnitEntity representing the business unit saved in 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. Most likely due to some sort of schema violation caused by improper attributes set in the value object.


IBM Tivoli Identity Manager 4.6
© Copyright International Business Machines Corporation 2005. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.