com.ibm.itim.dataservices.model.domain
Class BusinessPartnerOrgFactory
java.lang.Object
|
+--com.ibm.itim.dataservices.model.domain.BusinessPartnerOrgFactory
- public class BusinessPartnerOrgFactory
- extends java.lang.Object
Factory class for creating business partner organizations in the data store.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BusinessPartnerOrgFactory
public BusinessPartnerOrgFactory()
- Default constructor.
create
public BusinessPartnerOrgEntity create(OrganizationalContainerEntity logicalContext,
BusinessPartnerOrg bpo)
throws ModelCommunicationException,
ModelCreationException
- Creates a business partner organization in the data store with the given
value object.
- Parameters:
logicalContext
- OrganizationalContainerEntity under which this
entity should logically be placed.bpo
- BusinessPartnerOrg value object use for creation.- Returns:
- BusinessPartnerOrgEntity representing business partner
organization 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 BusinessPartnerOrgEntity create(CompoundDN logicalContext,
BusinessPartnerOrg bpo)
throws ModelCommunicationException,
ModelCreationException
- Creates a business partner organization in the data store with the given
value object to define the abusiness partner organization's attributes.
- Parameters:
logical
- CompoundDN that defines the placement of the admin domain.
At least one (1) element and at most two (2)
are expected:
- searchContext.elements[1] must contain
the organization DN
- searchContext.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.bpo
- BusinessPartnerOrg value object use for creation.- Returns:
- BusinessPartnerOrgEntity representing business partner
organization 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.