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

java.lang.Object
  extended by com.ibm.itim.dataservices.model.DirectoryObjectEntity
      extended by com.ibm.itim.dataservices.model.domain.OrganizationalContainerEntity
          extended by com.ibm.itim.dataservices.model.domain.BusinessPartnerOrgEntity
All Implemented Interfaces:
com.ibm.itim.util.Sortable, 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.
 
Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity
ORGANIZATION, PARENT
 
Fields inherited from interface com.ibm.itim.util.Sortable
ATTR_NAME
 
Constructor Summary
BusinessPartnerOrgEntity(BusinessPartnerOrg bpo)
          Constructs a BusinessPartnerOrgEntity with a value object.
BusinessPartnerOrgEntity(DirectoryObject bpo)
          Constructs a BusinessPartnerOrgEntity, taking a DirectoryObject as the parameter.
BusinessPartnerOrgEntity(ObjectProfile profile, BusinessPartnerOrg bpo)
          Constructs an BusinessPartnerOrgEntity with a profile and value object.
 
Method Summary
 OrganizationEntity getOrganization()
          Returns the organization of the current object.
 PersonEntity getSponsor()
          Returns the sponsor for the business partner organization.
 void setSponsor(PersonEntity sponsor)
          Changes the sponsor for the business partner organization.
 
Methods inherited from class com.ibm.itim.dataservices.model.domain.OrganizationalContainerEntity
getLogicalNameContext, getParentContainer, hasDependencies
 
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity
equals, getDirectoryObject, getDistinguishedName, getEntity, getLifecycle, getObjectCategory, getParent, getParentDN, getProfile, getRelationship, getSortValue, getSupportedRelationships, hashCode, initialize, initialize, isSupportedRelationship, remove, remove, setLifecycle, toString, update, update
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SPONSOR

public static final java.lang.String SPONSOR
Constant (String) for the sponsor relationship name.

See Also:
Constant Field Values
Constructor Detail

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.

BusinessPartnerOrgEntity

public BusinessPartnerOrgEntity(DirectoryObject bpo)
Constructs a BusinessPartnerOrgEntity, taking a DirectoryObject as the parameter.

Parameters:
bpo - DirectoryObject holding the attributes of the business partner organization.
Method Detail

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:
sponsor - 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.


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.