public class MigrateCustomerRequest extends CreateCustomerRequest
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
protected org.w3c.dom.Element | guestCustomerElement_
guestCustomerElement_ contains a Customer element.
|
protected org.w3c.dom.Element | migrateGuestCustomerElement_
migrateGuestCustomerElement_ contains a MigrateGuestCustomerElement element.
|
Constructor and Description |
---|
MigrateCustomerRequest()
Default constructor to create a new request handler.
|
Modifier and Type | Method and Description |
---|---|
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(org.w3c.dom.Element parentElement, java.lang.String customerID)
This method builds the CustomerParty element and adds it as a child of parentElement.
|
protected org.w3c.dom.Element | createGuestCustomerElement()
This method builds the GuestCustomer element and adds it as a child of Customer.
|
protected org.w3c.dom.Element | createMigrateGuestCustomerElement()
This method builds the MigrateGuestCustomer element and adds it as a child of GuestCustomer.
|
protected org.w3c.dom.Element | createPartyIdElement(org.w3c.dom.Element parentElement, java.lang.String id)
This method builds the PartyId element and adds it as a child of parentElement.
|
protected void | unmarshallResponseBod(org.w3c.dom.Document responseBOD)
This method unmarshalls the response BOD (business object document).
|
public static final java.lang.String COPYRIGHT
protected org.w3c.dom.Element guestCustomerElement_
It is initialized by the createGuestCustomerElement method.
protected org.w3c.dom.Element migrateGuestCustomerElement_
It is initialized by the MigrateGuestCustomerElement method.
public MigrateCustomerRequest()
protected org.w3c.dom.Element createCustomerElement()
This method overrides createCustomerElement in com.ibm.commerce.telesales.core.impl.request.CustomerRequest to add <wc:GuestCustomer> element.
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> <wc:GuestCustomer> 1002 true <wc:GuestCustomer> <CustomerDemographics> !-- constructed by createCustomerDemographicsElement() --> . </CustomerDemographics> <UserData> >!-- constructed by createUserDataElement() --> <wc:UserDataField name="name">value</wc:UserDataField> . </UserData> </Customer>
protected org.w3c.dom.Element createGuestCustomerElement()
The following sample GuestCustomer element shows how the element is constructed:
<wc:GuestCustomer> <oa:CustomerParty> . . </oa:CustomerParty> <wc:MigrateGuestCustomer>true</wc:MigrateGuestCustomer> <wc:GuestCustomer>
protected org.w3c.dom.Element createCustomerPartyElement(org.w3c.dom.Element parentElement, java.lang.String customerID)
The following outline shows the structure of the CustomerParty element and its construction.
<oa:CustomerParty> <oa:PartyId> <!-- constructed by createPartyIdElement() --> . . </oa:PartyId> </oa:CustomerParty>
protected org.w3c.dom.Element createPartyIdElement(org.w3c.dom.Element parentElement, java.lang.String id)
The following outline shows the structure of the PartyId element and its construction:
<oa:PartyId> <oa:Id>4052</oa:Id> <!-- id --> </oa:PartyId>
protected org.w3c.dom.Element createMigrateGuestCustomerElement()
The following sample GuestCustomer element shows how the element is constructed:
<wc:MigrateGuestCustomer>true</wc:MigrateGuestCustomer>
protected void unmarshallResponseBod(org.w3c.dom.Document responseBOD)