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

java.lang.Object
  extended by com.ibm.itim.dataservices.model.DirectoryObjectEntity
      extended by com.ibm.itim.dataservices.model.domain.PersonEntity
          extended by com.ibm.itim.dataservices.model.domain.BusinessPartnerEntity
All Implemented Interfaces:
com.ibm.itim.util.Sortable, 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, ROLE_ASSIGNMENT_DATA_DELIMETER, ROLE_ASSIGNMENT_KEY_DELIMETER, ROLE_ASSIGNMENT_VALUE_DELIMETER, SUPERVISOR
 
Fields inherited from interface com.ibm.itim.util.Sortable
ATTR_NAME
 
Constructor Summary
BusinessPartnerEntity(DirectoryObject person)
          Constructs a BusinessPartnerEntity with a DirectoryObject.
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, cleanupRoleAssignmentData, getAccounts, getImmediateSupervisor, getOrganization, getRoleAssignmentData, getRoleAssignmentData, getRoles, getRolesChanges, getSupervisor, isComparableTo, isMemberOfRole, move, removeAllRoleAssignmentData, removeRole, removeRoleAssignmentData, setImmediateSupervisor, setRoles, update, updateRoleAssignmentData
 
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
 
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.)

BusinessPartnerEntity

public BusinessPartnerEntity(DirectoryObject person)
Constructs a BusinessPartnerEntity with a DirectoryObject.

Parameters:
person - DirectoryObject 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 sponsorDN
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 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.