com.ibm.itim.dataservices.model.domain
Class BusinessPartnerOrgEntity
java.lang.Object
|
+--com.ibm.itim.dataservices.model.DirectoryObjectEntity
|
+--com.ibm.itim.dataservices.model.domain.OrganizationalContainerEntity
|
+--com.ibm.itim.dataservices.model.domain.BusinessPartnerOrgEntity
- All Implemented Interfaces:
- java.io.Serializable
- public class BusinessPartnerOrgEntity
- extends OrganizationalContainerEntity
Class that represents a business partner organization in the logical organization chart within
the data model. There may be more than one business partner organization in an organization.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
SPONSOR
Constant (String) for the sponsor relationship name. |
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity |
equals, getDirectoryObject, getDistinguishedName, getEntity, getParent, getParentDN, getProfile, getRelationship, getSupportedRelationships, hashCode, isSupportedRelationship, remove, remove, toString, update, update |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SPONSOR
public static final java.lang.String SPONSOR
- Constant (String) for the sponsor relationship name.
BusinessPartnerOrgEntity
public BusinessPartnerOrgEntity(ObjectProfile profile,
BusinessPartnerOrg bpo)
- Constructs an BusinessPartnerOrgEntity with a profile and value object.
- Parameters:
profile
- Profile identifying the type of this business partner
organization.bpo
- BusinessParnterOrg object holding the attributes of the
business partner organization.
BusinessPartnerOrgEntity
public BusinessPartnerOrgEntity(BusinessPartnerOrg bpo)
- Constructs a BusinessPartnerOrgEntity with a value object.
- Parameters:
bpo
- BusinessPartnerOrg object holding the attributes of the
business partner organization.
getSponsor
public PersonEntity getSponsor()
throws ModelCommunicationException,
ModelIntegrityException
- Returns the sponsor for the business partner organization. A business partner organization can
have zero or one sponsor.
- Returns:
- PersonEntity representing the sponsor object of the business
partner organization, null if none present.
- Throws:
ModelCommunicationException
- Thrown if unable to communicate
with the data store.ModelIntegrityException
- Thrown if a problem exists with
the consistency of the data model preventing the
evaluation of the relationship.
setSponsor
public void setSponsor(PersonEntity sponsor)
throws ModelCommunicationException,
ObjectNotFoundException
- Changes the sponsor for the business partner organization.
- Parameters:
person
- PersonEntity representing the new sponsor.- Throws:
ModelCommunicationException
- Thrown if unable to communicate
with the data store.ObjectNotFoundException
- Thrown if unable to locate the
a sponsor. This may be due to a data integrity problem.
getOrganization
public OrganizationEntity getOrganization()
throws ModelCommunicationException,
ModelIntegrityException
- Returns the organization of the current object.
- Returns:
- OrganizationEntity representing the object's organization.
- Throws:
ModelCommunicationException
- Thrown if unable to communicate
with the data store.ModelIntegrityException
- Thrown if a problem exists with
the consistency of the data model preventing the
evaluation of the relationship.