public abstract class CustomerRequest extends TelesalesRequest
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Element | addressesElement_
addressesElement_ contains the request document's Addresses element.
|
protected org.w3c.dom.Element | businessElement_
businessElement_ contains the request document's Business element.
|
protected org.w3c.dom.Element | contactElement_
contactElement_ contains the request document's Contact element.
|
protected org.w3c.dom.Element | contactsElement_
contactsElement_ contains the request document's Contacts element.
|
protected Customer | customer_
The Customer data.
|
protected org.w3c.dom.Element | customerDemographicsElement_
customerDemographicsElement_ contains the request document's CustomerDemographics element.
|
protected org.w3c.dom.Element | customerElement_
customerElement_ contains the request document's Customer element.
|
protected org.w3c.dom.Element | customerPartyElement_
customerPartyElement_ contains the request document's CustomerParty element.
|
protected org.w3c.dom.Element | personElement_
personElement_ contains the request document's Person element.
|
protected org.w3c.dom.Element | relatedUnitElement_
relatedUnitElement_ contains the request document's RelatedUnit element.
|
protected org.w3c.dom.Element | userAccountElement_
userAccountElement_ contains the request document's UserAccount element.
|
Constructor and Description |
---|
CustomerRequest()
Default constructor to create a new request handler.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element | createAddressElement()
This method builds the Address element and adds it as a child of addressesElement_.
|
protected org.w3c.dom.Element | createAddressesElement()
This method builds the Addresses element and adds it as a child of customerPartyElement_.
|
protected org.w3c.dom.Element | createAuthorizationElement()
This method builds the Authorization element and adds it as a child of userAccountElement_.
|
protected org.w3c.dom.Element | createBusinessElement(org.w3c.dom.Element customerPartyElement)
This method builds the Business element and appends it as a child of customerPartyElement_.
|
protected org.w3c.dom.Element | createContactElement()
This method builds the Contact element and adds it as a child of contactsElement_.
|
protected org.w3c.dom.Element | createContactsElement()
This method builds the Contacts element and adds it as a child of customerPartyElement_.
|
protected org.w3c.dom.Element | createCustomerDemographicsElement()
This method builds the CustomerDemographics element and adds it as a child of customerElement_.
|
protected org.w3c.dom.Element | createCustomerElement()
This method builds the Customer element and adds it as a child of dataAreaElement_.
|
protected org.w3c.dom.Element | createCustomerPartyElement()
This method builds the CustomerParty element and adds it as a child of customerElement_.
|
protected org.w3c.dom.Element | createPersonElement()
This method builds the Person element and adds it as a child of contactElement_.
|
protected org.w3c.dom.Element | createRelatedUnitElement(org.w3c.dom.Element businessElement)
This method builds the RelatedUnit element and adds it as a child of businessElement_.
|
protected org.w3c.dom.Element | createUserAccountElement()
This method builds the UserAccount element and adds it as a child of customerElement_.
|
protected java.lang.String | generatePassword()
This method returns the generated password for a new customer.
|
protected java.lang.String | getPasswordPattern()
This method returns the password pattern for a new customer.
|
protected Session | getResponseData()
This method returns the unmarshalled response data in the form of a com.ibm.commerce.telesales.model.Customer object.
|
ServiceContext | getServiceContext()
This method returns the ServiceContext object.
|
protected org.w3c.dom.Document | maskRequestBod(org.w3c.dom.Document bod)
The CustomerRequest implementation masks the elements returned by getRequestNodePathsToMask method.
|
protected org.w3c.dom.Document | maskResponseBod(org.w3c.dom.Document bod)
The CustomerRequest implementation masks the elements returned by getResponseNodePathsToMask method.
|
protected void | setTelesalesProperties(TelesalesProperties properties)
This method sets the TelesalesProperties properties.
|
protected Address | unmarshallAddress(Customer customer, org.w3c.dom.Element addressElement)
This method unmarshalls the Address element.
|
protected void | unmarshallAddresses(Customer customer, org.w3c.dom.Element addressesElement)
This method unmarshalls the Addresses element.
|
protected void | unmarshallAddressId(org.w3c.dom.Element addressIdElement)
This method unmarshalls the DocumentId element.
|
protected AssignedRepresentative | unmarshallAssignedRepresentative(Customer customer, org.w3c.dom.Element assignedRepresentativeElement)
This method unmarshalls the AssignedRepresentative element.
|
protected void | unmarshallAssignedRepresentatives(Customer customer, org.w3c.dom.Element customerElement)
This method unmarshalls the AssignedRepresentative elements.
|
protected AssignedTeam | unmarshallAssignedTeam(Customer customer, org.w3c.dom.Element assignedTeamElement)
This method unmarshalls the AssignedTeam element.
|
protected void | unmarshallAssignedTeams(Customer customer, org.w3c.dom.Element customerElement)
This method unmarshalls the AssignedTeam elements.
|
protected void | unmarshallAuthorization(Customer customer, org.w3c.dom.Element authorizationElement)
This method unmarshalls the Authorization element.
|
protected void | unmarshallBOD(org.w3c.dom.Element bodElement)
This method unmarshalls the BOD element.
|
protected void | unmarshallBODHeader(org.w3c.dom.Element bodHeaderElement)
This method unmarshalls the BODHeader element.
|
protected Organization | unmarshallBusiness(Customer customer, org.w3c.dom.Element businessElement)
This method unmarshalls the oa:Business element.
|
protected void | unmarshallCommerceArea(Customer customer, org.w3c.dom.Element commerceAreaElement)
This method unmarshalls the CommerceArea element.
|
protected void | unmarshallConfirmBOD(org.w3c.dom.Element confirmBODElement)
This method unmarshalls the ConfirmBOD element.
|
protected void | unmarshallContact(Customer customer, org.w3c.dom.Element contactElement)
This method unmarshalls the Contact element.
|
protected void | unmarshallContacts(Customer customer, org.w3c.dom.Element contactsElement)
This method unmarshalls the Contacts element.
|
protected void | unmarshallCustomer(Customer databean, org.w3c.dom.Element customerElement)
This method unmarshalls the Customer element.
|
protected void | unmarshallCustomerDemographics(Customer customer, org.w3c.dom.Element customerDemographicsElement)
This method unmarshalls the CustomerDemographics element.
|
protected void | unmarshallCustomerParty(Customer customer, org.w3c.dom.Element customerPartyElement)
This method unmarshalls the CustomerParty element.
|
protected void | unmarshallDataArea(org.w3c.dom.Element dataAreaElement)
This method unmarshalls the DataArea element.
|
protected void | unmarshallDocumentId(org.w3c.dom.Element documentIdElement)
This method unmarshalls the DocumentId element.
|
protected void | unmarshallDocumentIds(org.w3c.dom.Element documentIdsElement)
This method unmarshalls the DocumentIds element.
|
protected void | unmarshallNounOutcome(org.w3c.dom.Element nounOutcomeElement)
This method unmarshalls the NounOutcome element.
|
protected void | unmarshallPartyId(Customer customer, org.w3c.dom.Element partyIdElement)
This method unmarshalls the PartyId element.
|
protected void | unmarshallPerson(Customer customer, org.w3c.dom.Element personElement)
This method unmarshalls the Person element.
|
protected void | unmarshallPersonName(Customer customer, org.w3c.dom.Element personNameElement)
This method unmarshalls the PersonName element.
|
protected void | unmarshallRelatedUnit(Customer customer, Organization organization, org.w3c.dom.Element relatedUnitElement)
This method unmarshalls the RelatedUnit element.
|
protected void | unmarshallResponseBod(org.w3c.dom.Document responseBOD)
This method unmarshalls the response BOD (business object document).
|
protected void | unmarshallUnit(Customer customer, Organization organization, org.w3c.dom.Element unitElement)
This method unmarshalls the Unit element.
|
protected void | unmarshallUserAccount(Customer customer, org.w3c.dom.Element userAccountElement)
This method unmarshalls the UserAccount element.
|
protected void | updateModel(java.lang.Object databean)
This method updates the model.
|
protected Customer customer_
protected org.w3c.dom.Element customerElement_
protected org.w3c.dom.Element contactsElement_
protected org.w3c.dom.Element contactElement_
protected org.w3c.dom.Element personElement_
protected org.w3c.dom.Element customerPartyElement_
protected org.w3c.dom.Element businessElement_
protected org.w3c.dom.Element relatedUnitElement_
protected org.w3c.dom.Element addressesElement_
protected org.w3c.dom.Element customerDemographicsElement_
protected org.w3c.dom.Element userAccountElement_
public CustomerRequest()
protected Session getResponseData()
public ServiceContext getServiceContext()
protected void updateModel(java.lang.Object databean)
protected org.w3c.dom.Document maskRequestBod(org.w3c.dom.Document bod)
protected java.lang.String generatePassword()
The default implementation uses the CoreUtility.generatePassword facility and passes a length of 8.
protected java.lang.String getPasswordPattern()
The default implementation returns the pattern XXX0X0XXX.
protected Address unmarshallAddress(Customer customer, org.w3c.dom.Element addressElement)
<Address primary="true" type="SB"> <!-- Address.setPrimary and Address.setType --> <oa:AddressId>10302</oa:AddressId> <!-- Address.setAddressId() --> <oa:AddressLine>8200 Warden Avenue</oa:AddressLine> <!-- Address.setAddressLine1() --> <oa:AddressLine>line 2</oa:AddressLine> <!-- Address.setAddressLine2() --> <oa:AddressLine>line 3</oa:AddressLine> <!-- Address.setAddressLine3() --> <oa:City>Markham</oa:City> <!-- Address.setTownCity() --> <wc:StateOrProvinceCode>ON</wc:StateOrProvinceCode> <!-- Address.setStateProvinceCode() --> <wc:CountryCode>CA</wc:CountryCode> <!-- Address.setCountryCode() --> <oa:PostalCode>L6G 1C7</oa:PostalCode> <!-- Address.setPostalCode() --> <AddressNickName>home</AddressNickName> <!-- Address.setAddressNickName() --> <UserData/> <!-- unmarshalled by unmarshallUserData() --> </Address>
protected void unmarshallAddresses(Customer customer, org.w3c.dom.Element addressesElement)
<oa:Addresses> <Address> <!-- unmarshalled by unmarshallAddress() --> . . </Address> <Address> <!-- unmarshalled by unmarshallAddress() --> . . </Address> </Addresses>
protected void unmarshallAddressId(org.w3c.dom.Element addressIdElement)
<AddressId> <oa:Id>100</Id> <!-- customer_.getPrimaryAddress().setAddressId() --> </AddressId>
protected void unmarshallAuthorization(Customer customer, org.w3c.dom.Element authorizationElement)
<Authorization> <Password>[B@41754175</Password> <!-- customer.setPassword() --> <UserId>user1</UserId> <!-- customer.setUsername --> <VerifyPassword>[B@41754175</VerifyPassword> <!-- customer.setVerifyPassword() --> <ChallengeQuestion>question</ChallengeQuestion> <!-- customer.setChallengeQuestion() --> <ChallengeAnswer>answer</ChallengeAnswer> <!-- customer.setChallengeAnswer() --> </Authorization>
protected void unmarshallBOD(org.w3c.dom.Element bodElement)
<BOD> <BODHeader> <!-- unmarshalled by unmarshallBODHeader() --> . . </BODHeader> <NounOutcome> <!-- unmarshalled by unmarshallNounOutcome() --> . . </NounOutcome> </BOD>
protected void unmarshallBODHeader(org.w3c.dom.Element bodHeaderElement)
<BODHeader> <BODFailure> <!-- unmarshalled by unmarshallBODFailure() --> . . </BODFailure> </BODHeader>
protected Organization unmarshallBusiness(Customer customer, org.w3c.dom.Element businessElement)
<oa:Business> <oa:Function>O</oa:Funcstion> <!-- organization.setOrganizationFunction() --> <oa:Name>Business Category</oa:Name> <!-- organization.setCategory() --> <oa:RelatedUnit> <!-- unmarshalled by unmarshallRelatedUnit() --> . . </oa:RelatedUnit> <!-- unmarshalled by unmarshallUserData() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </oa:Business>
protected void unmarshallCommerceArea(Customer customer, org.w3c.dom.Element commerceAreaElement)
<CommerceArea> <StoreId>1000</StoreId> <!-- used to locate the store type; customer.setType(String) --> </CommerceArea>
protected void unmarshallConfirmBOD(org.w3c.dom.Element confirmBODElement)
<ConfirmBOD> <oa:ApplicationArea> <!-- unmarshalled by unmarshallApplicationArea() --> . . </oa:ApplicationArea> <DataArea> <!-- unmarshalled by unmarshallDataArea() --> . . </DataArea> </ConfirmBOD>
protected void unmarshallContact(Customer customer, org.w3c.dom.Element contactElement)
<Contact> <oa:Person> <!-- unmarshalled by unmarshallPerson() --> . . </oa:Person> <oa:EMailAddress/> <!-- customer.setEmailAddress1 --> <oa:EMailAddress/> <!-- customer.setEmailAddress2 --> <oa:Fax/> <!-- customer.setFax1 --> <oa:Fax/> <!-- customer.setFax2 --> <Telephone publish="0" type=""/> <!-- customer.setTeleponeNum1, customer.setPublishTelephone1, customer.setTelephoneType1 --> <Telephone publish="0" type=""/> <!-- customer.setTeleponeNum2, customer.setPublishTelephone2, customer.setTelephoneType2 --> <BestCallTime/> <!-- customer.setBestCallTime1, customer.setBestCallTime2 --> <UserAccount> <!-- unmarshalled by unmarshallUserAccount --> . . </UserAccount> </Contact>
protected void unmarshallContacts(Customer customer, org.w3c.dom.Element contactsElement)
<oa:Contacts> <Contact> <!-- unmarshalled by unmarshallContact() --> . . </Contact> </oa:Contacts>
protected void unmarshallCustomer(Customer databean, org.w3c.dom.Element customerElement)
<Customer> <oa:CustomerParty> <!-- unmarshalled by unmarshallCustomerParty() --> . . </oa:CustomerParty> <CommerceArea> <!-- unmarshalled by unmarshallCommerceArea() --> . . </CommerceArea> <CustomerDemographics> <!-- unmarshalled by unmarshallCustomerDemographics() --> . . </CustomerDemographics> <UserData/> <!-- unmarshalled by unmarshallUserData() --> </Customer>
protected void unmarshallCustomerDemographics(Customer customer, org.w3c.dom.Element customerDemographicsElement)
<CustomerDemographics> <Age>21</Age> <!-- customer.setAge() --> <Gender>F</Gender> <!-- customer.setGender() --> <AnnualIncome>51000</AnnualIncome> <!-- customer.setAnnualIncome() --> <MaritalStatus>M</MaritalStatus> <!-- customer.setMaritalStatus() --> <NumberOfChildren>1</NumberOfChildren> <!-- customer.setChildrenSize() --> <NumberInHousehold>3</NumberInHousehold> <!-- customer.setHouseholdSize() --> <Employer>IBM</Employer> <!-- customer.setEmployer() --> <Department>7XYG</Department> <!-- customer.setEmployerDepartment() --> <BusinessTitle>Software Engineer</BusinessTitle> <!-- customer.setBusinessTitle() --> </CustomerDemographics>
protected void unmarshallCustomerParty(Customer customer, org.w3c.dom.Element customerPartyElement)
<oa:CustomerParty> <oa:PartyId> <!-- unmarshalled by unmarshallPartyId() --> . . </oa:PartyId> <oa:Business> <!-- unmarshalled by unmarshallBusiness() --> . . </oa:Business> <oa:Currency>USD</oa:Currency> <!-- customer.setPreferredCurrency() --> <oa:CorrespondenceLanguage>-1</oa:CorrespondenceLanguage> <!-- customer.setPreferredLanguage() --> <oa:Addreses> <!-- unmarshalled by unmarshallAddresses() --> . . </oa:Addresses> <oa:Contacts> <!-- unmarshalled by unmarshallContacts() --> . . </oa:Contacts> </oa:CustomerParty>
protected void unmarshallAssignedTeams(Customer customer, org.w3c.dom.Element customerElement)
<Customer> . <AssignedTeam> <!-- unmarshalled by unmarshallAssignedTeam() --> . . </AssignedTeam> <AssignedTeam> <!-- unmarshalled by unmarshallAssignedTeam() --> . . </AssignedTeam> . </Customer>
protected AssignedTeam unmarshallAssignedTeam(Customer customer, org.w3c.dom.Element assignedTeamElement)
<AssignedTeam> <oa:PartyId> <!-- assignedTeam.setTeamId() --> . . </oa:PartyId> <oa:Name>name</oa:Name> <!-- assignedTeam.setTeamName() --> <!-- unmarshalled by unmarshallUserData() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </AssignedTeam>
protected void unmarshallAssignedRepresentatives(Customer customer, org.w3c.dom.Element customerElement)
<Customer> . <AssignedRepresentative> <!-- unmarshalled by unmarshallAssignedRepresentative() --> . . </AssignedRepresentative> <AssignedRepresentative> <!-- unmarshalled by unmarshallAssignedRepresentative() --> . . </AssignedRepresentative> . </Customer>
protected AssignedRepresentative unmarshallAssignedRepresentative(Customer customer, org.w3c.dom.Element assignedRepresentativeElement)
<AssignedRepresentative> <oa:PartyId> <!-- assignedRepresentative.setRepresentativeId --> . . </oa:PartyId> <oa:Name>name</oa:Name> <!-- assignedRepresentative.setRepresentativeName() --> <!-- unmarshalled by unmarshallUserData() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </AssignedRepresentative>
protected void unmarshallDataArea(org.w3c.dom.Element dataAreaElement)
<DataArea> <BOD> <!-- unmarshalled by unmarshallBOD() --> . . </BOD> </DataArea>
protected void unmarshallDocumentId(org.w3c.dom.Element documentIdElement)
<oa:DocumentId> <oa:Id>100</Id> <!-- customer_.setMemberId() --> </oa:DocumentId>
protected void unmarshallDocumentIds(org.w3c.dom.Element documentIdsElement)
<oa:DocumentIds> <oa:DocumentId> <!-- unmarshalled by unmarshallDocumentId() --> . . </oa:DocumentId> <AddressId> <!-- unmarshalled by unmarshallAddressId() --> . . </AddressId> </oa:DocumentIds>
protected void unmarshallNounOutcome(org.w3c.dom.Element nounOutcomeElement)
<NounOutcome> <oa:DocumentIds> <!-- unmarshalled by unmarshallDocumentIds() --> . . </oa:DocumentIds> </NounOutcome>
protected void unmarshallPartyId(Customer customer, org.w3c.dom.Element partyIdElement)
<oa:PartyId> <oa:Id>100</Id> <!-- customer.setMemberId() --> </oa:PartyId>
protected void unmarshallPerson(Customer customer, org.w3c.dom.Element personElement)
<oa:Person> <oa:PersonName> <!-- unmarshalled by unmarshallPersonName() --> . . </oa:PersonName> </oa:Person>
protected void unmarshallPersonName(Customer customer, org.w3c.dom.Element personNameElement)
<oa:PersonName> <oa:Salutation>100</oa:Salutation> <!-- customer.setSalutation() --> <oa:GivenName>100</oa:GivenName> <!-- customer.setGivenName() --> <oa:PreferredGivenName>100</oa:PreferredGivenName> <!-- customer.setPreferredGivenName() --> <oa:MiddleName>100</oa:MiddleName> <!-- customer.setMiddleName() --> <oa:FamilyName>100</oa:FamilyName> <!-- customer.setFamilyName() --> <oa:Suffix>100</oa:Suffix> <!-- customer.setSuffix() --> </oa:PesonName>
protected void unmarshallRelatedUnit(Customer customer, Organization organization, org.w3c.dom.Element relatedUnitElement)
<oa:RelatedUnit> <oa:Unit> <!-- unmarshalled by unmarshallUnit() --> . . </oa:Unit> </oa:RelatedUnit>
protected void unmarshallResponseBod(org.w3c.dom.Document responseBOD)
protected void unmarshallUnit(Customer customer, Organization organization, org.w3c.dom.Element unitElement)
<oa:Unit> <oa:Id>700000100000009001</oa:Id> <!-- organization.setOrganizationEntityID() --> <oa:Name>Seller</oa:Name> <!-- organization.setOrganizationEntityName() --> </oa:Unit>
protected void unmarshallUserAccount(Customer customer, org.w3c.dom.Element userAccountElement)
<UserAccount> <Authorization> <!-- unmarshalled by unmarshallAuthorization() --> . . </Authorization> </UserAccount>
protected org.w3c.dom.Element createAddressElement()
The following sample shows the structure of the Address element and its construction:
<oa:Address primary="false" type="SB"> <!-- primary is address.getPrimary(), type is address.getType() --> <oa:AddressId>4052</oa:AddressId> <!-- address.getAddressId(); if this a new address this element is excluded --> <oa:AddressLine>123 Broadway</oa:AddressLine> <!-- address.getAddressLine1() --> <oa:AddressLine>123 Broadway</oa:AddressLine> <!-- address.getAddressLine2() --> <oa:AddressLine>123 Broadway</oa:AddressLine> <!-- address.getAddressLine3() --> <oa:City>New York</oa:City> <!-- address.getTownCity() --> <wc:StateOrProvinceCode>NY</wc:StateOrProvinceCode> <!-- address.getStateProvince() --> <wc:CountryCode>US</wc:CountryCode> <!-- address.getCountry() --> <oa:Region>USA</oa:Region> <!-- address.getRegion() --> <oa:PostalCode>12345</oa:PostalCode> <!-- address.getPostalCode() --> <AddressNickName>home</AddressNickName> <!-- address.getAddressNickName() --> <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </oa:Address>
protected org.w3c.dom.Element createAddressesElement()
The following outline shows the structure of the Addresses element and its construction:
<oa:Addresses> <oa:Address> <!-- constructed by createAddressElement(). --> . . </oa:Address> </oa:Addresses>
protected org.w3c.dom.Element createAuthorizationElement()
The following outline shows the structure of the Authorization element and its construction:
<Authorization> <oa:Id>LOGON_TOKEN_ID_SCAFFOLDING</oa:Id> <!-- ContextManager.getInstance().getSessionCtx() --> <oa:Type>String</oa:Type> <oa:Status/> <oa:AuthorizationCode/> <Password>Great9Password</Password> <VerifyPassword>Great9Password</VerifyPassword> <UserId>user1</UserId> <!-- customer_.getUserName() --> <ChallengeQuestion/> <!-- customer_.getChallengeQuestion() --> <ChallengeAnswer/> <!-- customer_.getChallengeAnswer() --> </Authorization>
protected org.w3c.dom.Element createContactElement()
The following sample shows the structure of the Contact element and its construction:
<Contact> <oa:Person> <!-- constructed by createPersonElement() --> . . </oa:Person> <oa:EmailAddress>joe@ibm.com</oa:EmailAddress> <!-- customer_.getEmailAddress1() --> <oa:EmailAddress>joe@ibm.com</oa:EmailAddress> <!-- customer_.getEmailAddress2() --> <oa:Fax>555-1111</oa:Fax> <!-- customer_.getFax1() --> <oa:Fax>555-2222</oa:Fax> <!-- customer_.getFax2() --> <oa:URI/> <oa:Description lang="en-US" owner="" /> <Telephone publish="0" type="PHN">555-3333</oa:Telephone> <!-- customer_.getTelephone1(), customer_.getPublishTelephone1(), customer_.getTelephoneType1() --> <Telephone publish="0" type="PHN">555-4444</oa:Telephone> <!-- customer_.getTelephone2(), customer_.getPublishTelephone2(), customer_.getTelephoneType2() --> <oa:BestCallTime/> <!-- customer_.getBestCallTime1() --> </oa:Contact>
protected org.w3c.dom.Element createContactsElement()
The following outline shows the structure of the Contacts element and its construction:
<oa:Contacts> <Contact> <!-- constructed by createContactElement(). --> . . </Contact> </oa:Contacts>
protected org.w3c.dom.Element createCustomerElement()
The following outline shows the structure of the Customer element and its construction:
<Customer> <oa:CustomerParty> <!-- constructed by createCustomerPartyElement() --> . . </oa:CustomerParty> <CommerceArea> <!-- constructed by createCommerceAreaElement() --> . . </CommerceArea> <UserAccount> <!-- constructed by createUserAccountElement() --> . . </UserAccount> <CustomerDemographics> <!-- constructed by createCustomerDemographicsElement() --> . . </CustomerDemographics> <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </Customer>
protected org.w3c.dom.Element createCustomerDemographicsElement()
The following sample shows the structure of the CustomerDemographics element and its construction:
<CustomerDemographics> <Age>3</Age> <!-- customer_.getAge() --> <Gender>M</Gender> <!-- customer_.getGender() --> <MaritalStatus>S</MaritalStatus> <!-- customer_.getMaritalStatus() --> <AnnualIncome currency="">6</AnnualIncome> <!-- customer_.getAnnualIncome() --> <NumberInHousehold>1</NumberInHousehold> <!-- customer_.getHouseholdSize() --> <NumberOfChildren>0</NumberOfChildren> <!-- customer_.getChildrenSize() --> <Employer>IBM</Employer> <!-- customer_.getEmployer() --> <Department>7XYG</Department> <!-- customer_.getEmployerDepartment() --> <BusinessTitle>Software Engineer</BusinessTitle> <!-- customer_.getBusinessTitle() --> <ReturnCustomer>No</ReturnCustomer> <!-- customer_.getReturningCustomer() --> <ProfileType>C</ProfileType> <!-- customer_.getType() --> </CustomerDemographics>
protected org.w3c.dom.Element createCustomerPartyElement()
The following outline shows the structure of the CustomerParty element and its construction:
<oa:CustomerParty active="true" oneTime="false"> <oa:Business> <!-- constructed by createBusinessElement() --> . . </oa:Business> <oa:Currency>USD</oa:Currency> <!-- customer_.getPreferredCurrency() --> <oa:Addresses> <!-- constructed by createAddressesElement() --> . . </oa:Addresses> <oa:Contacts> <!-- constructed by createContactsElement() --> . . </oa:Contacts> <oa:CorrespondenceLanguage>-1</oa:CorrespondenceLanguage> <!-- customer_.getPreferredLanguage() --> </oa:CustomerParty>
protected org.w3c.dom.Element createBusinessElement(org.w3c.dom.Element customerPartyElement)
<Business> <Function/> <!-- customer_.getOrganization().getOrganizationFunction() --> <Name/> <!-- customer_.getOrganization().getCategory() --> <RelatedUnit/> <!-- createRelatedUnitElement() --> <!-- constructed by createUserDataElement() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </Business>
protected org.w3c.dom.Element createRelatedUnitElement(org.w3c.dom.Element businessElement)
The following outline shows the structure of the RelatedUnit element and its construction:
<oa:RelatedUnit> <oa:Relationship>Parent</oa:Relationship> <oa:Unit> <!-- constructed by createRelatedUnitElement() --> <oa:Id>1001</oa:Id> <!-- customer_.getOrganization().getOrganizationEntityID() --> <oa:Name>IBM</oa:Name> <!-- customer_.getOrganization().getOrganizationName() --> </oa:Unit> </oa:RelatedUnit>
protected org.w3c.dom.Element createPersonElement()
The following sample shows the structure of the Person element and its construction:
<oa:Person> <oa:PersonCode/> <oa:PersonName> <oa:Salutation lang="en-US">Mr.</oa:Salutation> <!-- customer_.getSalutation() --> <oa:GivenName lang="en-US">Joe</oa:GivenName> <!-- customer_.getGivenName() --> <oa:PreferredGivenName lang="en-US">Joe</oa:PreferredGivenName> <!-- customer_.getPreferredGivenName() --> <oa:MiddleName lang="en-US">John</oa:MiddleName> <!-- customer_.getMiddleName() --> <oa:FamilyName lang="en-US">Doe</oa:FamilyName> <!-- customer_.getFamilyName() --> <oa:Suffix lang="en-US">M.D.</oa:Suffix> <!-- customer_.getSuffix() --> <oa:FormattedName lang="en-US">Mr. Joe John Doe M.D.</oa:FormattedName> <!-- customer_.getFormattedName() --> </oa:PersonName> </oa:Person>
protected org.w3c.dom.Element createUserAccountElement()
The following sample shows the structure of the UserAccount element and its construction:
<UserAccount> <SystemId>NOT_IMPLEMENTED</SystemId> <-- customer_.getSystemId() --> <Authorization> <-- created by createAuthorizationElement --> . . </Authorization> </UserAccount>
protected void setTelesalesProperties(TelesalesProperties properties)
protected org.w3c.dom.Document maskResponseBod(org.w3c.dom.Document bod)