public class CRMBOContactInformationBean extends CRMBOMasterEntity
Modifier and Type | Field and Description |
---|---|
java.lang.Integer |
IS_NOT_UNIT_RELATED |
java.lang.Integer |
IS_UNIT_RELATED |
java.lang.Integer |
NAME_DISPLAY_RULE_FIRSTNAME_LASTNAME |
java.lang.Integer |
NAME_DISPLAY_RULE_FIRSTNAME_MIDDLENAME_LASTNAME |
java.lang.Integer |
NAME_DISPLAY_RULE_LASTNAME_FIRSTNAME |
java.lang.Integer |
NAME_DISPLAY_RULE_LASTNAME_MIDDLENAME_FIRSTNAME |
java.lang.Integer |
TYPE_COMPANY |
java.lang.Integer |
TYPE_PERSON |
Constructor and Description |
---|
CRMBOContactInformationBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.crm.dataobject.CRMDO |
constructCompany()
Constructs a contact of type company.
|
com.crm.dataobject.contactinfo.CRMDOContactInformation |
constructFullName(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Sets the full name of the contact.
|
com.crm.dataobject.contactinfo.CRMDOContactInformation |
constructFullName(com.crm.dataobject.contactinfo.CRMDOContactInformation contact,
com.crm.dataobject.contactinfo.CRMDOContactInfoDefinition contactInfoDefinition)
Sets the full name of the contact.
|
com.crm.dataobject.CRMDO |
constructPerson()
Constructs a contact of type person.
|
java.util.ArrayList<java.lang.Object> |
getContactInfoAddresses(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation,
java.lang.String excludeAddress)
Loads a list of active address of a contact.
|
java.util.ArrayList<java.lang.Object> |
getContactInfoEmails(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation,
java.lang.String excludeEmail,
java.lang.String currentEmail)
Loads a list of active emails of a contact.
|
java.util.ArrayList<java.lang.Object> |
getContactInfoPhones(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation,
java.lang.String excludePhone,
java.lang.String currentPhone)
Loads a list of active phones of a contact.
|
java.util.ArrayList<java.lang.String> |
getDefaultAssociations()
Gets the default associated data objects of the contact information
|
java.lang.String |
getName(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation) |
java.lang.Boolean |
isRelatedContact(com.crm.dataobject.contactinfo.CRMDOContactInformation contact,
com.crm.dataobject.contactinfo.CRMDOContactInformation relatedContact)
Checks if two contacts are related.
|
java.lang.Boolean |
isUsedByAccount(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Checks if the contact is used by an account.
|
java.lang.Boolean |
isUsedByActivity(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Checks if the contact is used by an activity.
|
java.lang.Boolean |
isUsedByCommunity(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Checks if the contact is used by an organizational community.
|
java.lang.Boolean |
isUsedByDraftCommunication(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Checks if the contact is used by a draft communication.
|
java.lang.Boolean |
isUsedByGroup(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Checks if the contact is used by an organizational group.
|
java.lang.Boolean |
isUsedByJob(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Checks if the contact is used by a job.
|
java.lang.Boolean |
isUsedByNonCompleteServiceRequest(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Checks if the contact is used by a non complete service request.
|
java.lang.Boolean |
isUsedByPresentmentPreference(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Checks if the contact is used by a presentment preference.
|
java.lang.Boolean |
isUsedBySubscription(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Checks if the contact is used by a subscription.
|
java.lang.Boolean |
isUsedByUnit(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Checks if the contact is used by an organizational unit.
|
java.lang.Boolean |
isUsedByUser(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Checks if the contact is used by a user.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(java.lang.String idNumber,
java.lang.String passportNumber,
java.lang.String socialSecurityNumber,
java.lang.String vatRegistrationNumber,
java.util.ArrayList<java.lang.String> associations)
Loads a list of contacts based on given values.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadByIDNumber(java.lang.String idNumber,
java.util.ArrayList<java.lang.String> associations)
Loads a contact based on an id number.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadByPassportNumber(java.lang.String passportNumber,
java.util.ArrayList<java.lang.String> associations)
Loads a contact based on a passport number.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadByRegistrationNumber(java.lang.String registrationNumber,
java.util.ArrayList<java.lang.String> associations)
Loads a contact based on a registration number.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadBySocialSecurityNumber(java.lang.String socialSecurityNumber,
java.util.ArrayList<java.lang.String> associations)
Loads a contact based on a social security number.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadByVatRegistrationNumber(java.lang.String vatRegistrationNumber,
java.util.ArrayList<java.lang.String> associations)
Loads a contact based on a vat registration number.
|
com.crm.dataobject.contactinfo.CRMDOContactInformation |
loadDemographics(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation)
Loads the demographics of a contact information.
|
com.crm.dataobject.contactinfo.CRMDOContactInformation |
setAdditionalInformation(com.crm.dataobject.contactinfo.CRMDOContactInformation contact)
Sets additional information to a contact.
|
setLifeCycleState
construct, construct, construct, construct, construct, construct, construct, construct, createAndUpdate, delete, delete, delete, getDOName, getDOName, getNextSequenceNumber, getNextSequenceNumber, getNumberScheme, load, load, load, load, load, load, load, load, loadAll, loadAll, loadAll, parseAssociations, save, save, save, saveCRMDOCollection, saveImages, setMandatoryFields, setNumberScheme, validateAndDelete, validateAndSave, validateAndSave, validateAndSave, validateOnDelete, validateOnDelete, validateOnDelete, validateOnSave, validateOnSave, validateOnSave
dispatch, getCRMSession, getCRMSessionHandle, getEJBHomeInterface, getInitialContext, getSessionContext, invoke, setCRMSessionHandle, setInitialContext, setSessionContext
public final java.lang.Integer TYPE_PERSON
public final java.lang.Integer TYPE_COMPANY
public final java.lang.Integer IS_NOT_UNIT_RELATED
public final java.lang.Integer IS_UNIT_RELATED
public final java.lang.Integer NAME_DISPLAY_RULE_FIRSTNAME_LASTNAME
public final java.lang.Integer NAME_DISPLAY_RULE_LASTNAME_FIRSTNAME
public final java.lang.Integer NAME_DISPLAY_RULE_FIRSTNAME_MIDDLENAME_LASTNAME
public final java.lang.Integer NAME_DISPLAY_RULE_LASTNAME_MIDDLENAME_FIRSTNAME
public CRMBOContactInformationBean()
public com.crm.dataobject.CRMDO constructPerson() throws java.lang.Exception
java.lang.Exception
public com.crm.dataobject.CRMDO constructCompany() throws java.lang.Exception
java.lang.Exception
public com.crm.dataobject.contactinfo.CRMDOContactInformation setAdditionalInformation(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to set the additional information tojava.lang.Exception
public java.util.ArrayList<java.lang.String> getDefaultAssociations()
getDefaultAssociations
in class CRMBO
public com.crm.dataobject.contactinfo.CRMDOContactInformation constructFullName(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to construct the full name forjava.lang.Exception
public com.crm.dataobject.contactinfo.CRMDOContactInformation constructFullName(com.crm.dataobject.contactinfo.CRMDOContactInformation contact, com.crm.dataobject.contactinfo.CRMDOContactInfoDefinition contactInfoDefinition) throws java.lang.Exception
contact
- - the contact to construct the full name forcontactInfoDefinition
- - the contact information definition declaring how the name will be constructedjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadByIDNumber(java.lang.String idNumber, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
idNumber
- - an id numberassociations
- - a list of associated data objectsjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadByPassportNumber(java.lang.String passportNumber, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
passportNumber
- - a passport numberassociations
- - a list of associated data objectsjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadBySocialSecurityNumber(java.lang.String socialSecurityNumber, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
socialSecurityNumber
- - a social security numberassociations
- - a list of associated data objectsjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadByRegistrationNumber(java.lang.String registrationNumber, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
registrationNumber
- - a registration numberassociations
- - a list of associated data objectsjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadByVatRegistrationNumber(java.lang.String vatRegistrationNumber, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
vatRegistrationNumber
- - a vat registration numberassociations
- - a list of associated data objectsjava.lang.Exception
public java.lang.Boolean isUsedByAccount(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to checkjava.lang.Exception
public java.lang.Boolean isUsedBySubscription(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to checkjava.lang.Exception
public java.lang.Boolean isUsedByActivity(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to checkjava.lang.Exception
public java.lang.Boolean isUsedByJob(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to checkjava.lang.Exception
public java.lang.Boolean isUsedByDraftCommunication(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to checkjava.lang.Exception
public java.lang.Boolean isUsedByNonCompleteServiceRequest(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to checkjava.lang.Exception
public java.lang.Boolean isUsedByUser(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to checkjava.lang.Exception
public java.lang.Boolean isUsedByUnit(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to checkjava.lang.Exception
public java.lang.Boolean isUsedByGroup(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to checkjava.lang.Exception
public java.lang.Boolean isUsedByCommunity(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to checkjava.lang.Exception
public java.lang.Boolean isUsedByPresentmentPreference(com.crm.dataobject.contactinfo.CRMDOContactInformation contact) throws java.lang.Exception
contact
- - the contact to checkjava.lang.Exception
public java.lang.Boolean isRelatedContact(com.crm.dataobject.contactinfo.CRMDOContactInformation contact, com.crm.dataobject.contactinfo.CRMDOContactInformation relatedContact) throws java.lang.Exception
contact
- - the contact to checkrelatedContact
- - the related contact to checkjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(java.lang.String idNumber, java.lang.String passportNumber, java.lang.String socialSecurityNumber, java.lang.String vatRegistrationNumber, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
idNumber
- - an id numberpassportNumber
- - a passport numbersocialSecurityNumber
- - a social security numbervatRegistrationNumber
- - a vat registration numberassociations
- - a list of associated data objectsjava.lang.Exception
public com.crm.dataobject.contactinfo.CRMDOContactInformation loadDemographics(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation) throws java.lang.Exception
contactInformation
- - the contact information to load the demographicsjava.lang.Exception
public java.lang.String getName(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation) throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<java.lang.Object> getContactInfoAddresses(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation, java.lang.String excludeAddress) throws java.lang.Exception
contactInformation
- - the contactInformation to load the addresses fromexcludeAddress
- - the current address to excludejava.lang.Exception
public java.util.ArrayList<java.lang.Object> getContactInfoEmails(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation, java.lang.String excludeEmail, java.lang.String currentEmail) throws java.lang.Exception
contactInformation
- - the contactInformation to load the emails fromexcludeEmail
- - the current email to excludejava.lang.Exception
public java.util.ArrayList<java.lang.Object> getContactInfoPhones(com.crm.dataobject.contactinfo.CRMDOContactInformation contactInformation, java.lang.String excludePhone, java.lang.String currentPhone) throws java.lang.Exception
contactInformation
- - the contactInformation to load the phones fromexcludePhone
- - the current phone to excludejava.lang.Exception