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.
 
Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObjectEntity
ORGANIZATION, PARENT
 
Constructor Summary
BusinessPartnerOrgEntity(BusinessPartnerOrg bpo)
          Constructs a BusinessPartnerOrgEntity with a value object.
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, getParent, getParentDN, getProfile, getRelationship, getSupportedRelationships, hashCode, 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.
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 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.