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

java.lang.Object
  |
  +--com.ibm.itim.dataservices.model.DirectoryObjectEntity
        |
        +--com.ibm.itim.dataservices.model.domain.PersonEntity
              |
              +--com.ibm.itim.dataservices.model.domain.BusinessPartnerEntity
All Implemented Interfaces:
java.io.Serializable

public class BusinessPartnerEntity
extends PersonEntity

Represents a business partner in the data model.

See Also:
PersonEntity, Serialized Form

Field Summary
 
Fields inherited from class com.ibm.itim.dataservices.model.domain.PersonEntity
ORGANIZATION, PARENT, ROLE, SUPERVISOR
 
Constructor Summary
BusinessPartnerEntity(ObjectProfile profile, Person person)
          Constructs a BusinessPartnerEntity with a profile and value object.
BusinessPartnerEntity(Person person)
          Constructs a BusinessPartnerEntity with a value object.
 
Method Summary
 PersonEntity getSponsor()
          Returns the BusinessPartnerEntity's sponsor.
 void setSponsor(DistinguishedName sponsorDN)
          Sets the BusinessPartnerEntity's sponsor.
 
Methods inherited from class com.ibm.itim.dataservices.model.domain.PersonEntity
addRole, getAccounts, getImmediateSupervisor, getOrganization, getRoles, getSupervisor, isComparableTo, isMemberOfRole, move, removeRole, setImmediateSupervisor, setRoles
 
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
 

Constructor Detail

BusinessPartnerEntity

public BusinessPartnerEntity(ObjectProfile profile,
                             Person person)
Constructs a BusinessPartnerEntity with a profile and value object.

Parameters:
profile - Profile identifying the type of this business partner.
person - Person object holding the attributes of the business partner.

BusinessPartnerEntity

public BusinessPartnerEntity(Person person)
Constructs a BusinessPartnerEntity with a value object.

Parameters:
person - Person object holding the attributes of the business partner. Note: the object must have the name of the profile identifying the type of this business partner (i.e., Supplier, Manufacturer, etc.)
Method Detail

getSponsor

public PersonEntity getSponsor()
                        throws ModelCommunicationException,
                               ModelIntegrityException
Returns the BusinessPartnerEntity's sponsor. A business partner may have 0 or 1 sponsors.

Returns:
PersonEntity representing the sponsor, 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(DistinguishedName sponsorDN)
                throws ModelCommunicationException,
                       ObjectNotFoundException
Sets the BusinessPartnerEntity's sponsor.

Parameters:
sponsorDN - DistinguishedName of sponsor
Throws:
ModelCommunicationException - Thrown if unable to communicate with the data store.
ObjectNotFoundException - Thrown if unable to locate the business partner in the data store. This may be due to a data integrity problem, or the entity may have been removed by another client.


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.