public class ChangePasswordRequest extends OperatorRequest
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 | alternatePartyIdsElement_
alternatePartyIdsElement_ contains the request document's AlternatePartyIds 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 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 Customer | dummyCustomer_
Customer data.
|
protected java.lang.String | newPassword1_
Customer data.
|
protected java.lang.String | newPassword2_
Customer data.
|
protected java.lang.String | oldPassword_
Customer data.
|
protected Operator | operator_
Customer data.
|
protected org.w3c.dom.Element | partyIdElement_
partyIdElement_ contains the request document's PartyId element.
|
protected org.w3c.dom.Element | syncCriteriaElement_
syncCriteriaElement_ contains the request document's SyncCriteria element.
|
protected org.w3c.dom.Element | syncElement_
syncElement_ contains the request document's Sync element.
|
protected org.w3c.dom.Element | userAccountElement_
userAccountElement_ contains the request document's UserAccount element.
|
protected java.lang.String | username_
Customer data.
|
Constructor and Description |
---|
ChangePasswordRequest()
Default constructor to creates a new change password 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 | createAlternatePartyIdsElement()
This method builds the AlternatePartyIds 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 | 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 | createDataAreaElement()
This method builds the DataArea element and adds it as a child of rootElement_.
|
protected org.w3c.dom.Element | createPartyIdElement()
This method builds the PartyId element and adds it as a child of customerPartyElement_.
|
protected org.w3c.dom.Element | createSenderElement()
This method builds the Sender element and adds it as a child of applicationAreaElement_.
|
protected org.w3c.dom.Element | createSyncCriteriaElement()
This method builds the SyncCriteria element and adds it as a child of syncElement_.
|
protected org.w3c.dom.Element | createSyncElement()
This method builds the Sync element and adds it as a child of dataAreaElement_.
|
protected org.w3c.dom.Element | createUserAccountElement()
This method builds the UserAccount element and adds it as a child of customerElement_.
|
protected org.w3c.dom.Document | getRequestBod()
This method constructs the request document.
|
protected java.lang.String[] | getRequestNodePathsToMask()
This method returns the array of request BOD node paths to mask from logging.
|
protected Session | getResponseData()
This method returns the unmarshalled response data in the form of a com.ibm.commerce.telesales.model.Operator object.
|
protected java.lang.String[] | getResponseNodePathsToMask()
This method returns the array of response BOD node paths to mask from logging.
|
ServiceContext | getServiceContext()
This method gets the service context.
|
protected java.lang.String | getXSDFileName()
This method returns the name of the schema file for the request BOD (business object document).
|
protected void | setTelesalesProperties(TelesalesProperties properties)
This method sets the Multichannel Sales Center properties: The operator_ variable is set to be the value of the "operator" property.
|
protected void | unmarshallAddressId(org.w3c.dom.Element addressIdElement)
This method unmarshalls the DocumentId 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 void | unmarshallConfirmBOD(org.w3c.dom.Element confirmBODElement)
This method unmarshalls the ConfirmBOD 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 | unmarshallResponseBod(org.w3c.dom.Document responseBOD)
This method unmarshalls the response BOD (business object document).
|
protected Operator operator_
protected Customer dummyCustomer_
protected java.lang.String username_
protected java.lang.String oldPassword_
protected java.lang.String newPassword1_
protected java.lang.String newPassword2_
protected org.w3c.dom.Element customerElement_
protected org.w3c.dom.Element contactsElement_
protected org.w3c.dom.Element contactElement_
protected org.w3c.dom.Element customerPartyElement_
protected org.w3c.dom.Element addressesElement_
protected org.w3c.dom.Element customerDemographicsElement_
protected org.w3c.dom.Element userAccountElement_
protected org.w3c.dom.Element syncElement_
protected org.w3c.dom.Element syncCriteriaElement_
protected org.w3c.dom.Element alternatePartyIdsElement_
protected org.w3c.dom.Element partyIdElement_
public ChangePasswordRequest()
protected java.lang.String getXSDFileName()
protected void setTelesalesProperties(TelesalesProperties properties)
protected org.w3c.dom.Document getRequestBod()
<SyncCustomer> <!-- created by the createRootElement method --> . . </SyncCustomer>
protected org.w3c.dom.Element createAlternatePartyIdsElement()
The following outline shows the structure of the AlternatePartyIds element and its construction:
<oa:AlternatePartyIds> <oa:CustomerPartyId> <oa:Id>4052</oa:Id> <!-- operator_.getMemberId() --> </oa:CustomerPartyId> </oa:AlternatePartyIds>
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/> <!-- newPassword1_ --> <UserId>user1</UserId> <!-- username_ --> <VerifyPassword/> <!-- newPassword2_ --> <ChallengeQuestion/> <!-- dummyCustomer_.getChallengeQuestion() --> <ChallengeAnswer/> <!-- dummyCustomer_.getChallengeAnswer() --> </Authorization>
protected org.w3c.dom.Element createCustomerPartyElement()
The following outline shows the structure of the CustomerParty element and its construction:
<CustomerParty> <PartyId> <!-- constructed by createPartyIdElement() --> . . </PartyId> <AlternatePartyIds> <!-- constructed by createAltenatePartyIdsElement() --> . . </AlternatePartyIds> <Currency>USD</Currency> <!-- dummyCustomer_.getPreferredCurrency() --> <Addresses> <!-- constructed by createAddressesElement() --> . . </Addresses> <Contacts> <!-- constructed by createContactsElement() --> . . </Contacts> <CorrespondenceLanguage>en</CorrespondenceLanguage> <!-- dummyCustomer_.getPreferredLanguage() --> </CustomerParty>
protected org.w3c.dom.Element createDataAreaElement()
The following outline shows the structure of the DataArea element and its construction:
<DataArea> <oa:Sync> <!-- constructed by createSyncElement() --> . . </oa:Sync> <Customer> <!-- constructed by createCustomerElement() --> . . </Customer> </DataArea>
protected org.w3c.dom.Element createPartyIdElement()
The following outline shows the structure of the PartyId element and its construction:
<oa:PartyId> <oa:Id>4052</oa:Id> <!-- operator_.getMemberId() --> </oa:PartyId>
protected org.w3c.dom.Element createSenderElement()
The following sample Sender element shows how the element is constructed:
<oa:Sender> <oa:LogicalId>TSCLIENT</oa:LogicalId> <oa:Component>Customer</oa:Component> <oa:Task>UpdateCustomer</oa:Task> <oa:ReferenceId>-1680589954192190044</oa:ReferenceId> <!-- value of getActionCtx --> <oa:Confirmation>2</oa:Confirmation> <oa:AuthorizationId>LOGON_TOKEN_ID_SCAFFOLDING</oa:AuthorizationId> <!-- value of ContextManager.getInstance().getSessionCtx() --> </oa:Sender>
protected org.w3c.dom.Element createSyncElement()
The following outline shows the structure of the DataArea element and its construction:
<oa:Sync confirm="Always"> <oa:SyncCriteria> <!-- constructed by createSyncCriteriaElement() --> . . </oa:SyncCriteria> </oa:Sync>
protected org.w3c.dom.Element createSyncCriteriaElement()
The following sample shows the structure of the SyncCriteria element and its construction:
<oa:SyncCriteria expressionLanguage="XPath"> <oa:SyncExpression action="Change">Operator</oa:SyncCriteria> </oa:SyncCriteria>
protected void unmarshallResponseBod(org.w3c.dom.Document responseBOD)
public ServiceContext getServiceContext()
protected Session getResponseData()
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 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() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </oa:Address>
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 createContactElement()
The following sample shows the structure of the Contact element and its construction:
<Contact> <oa:EmailAddress>joe@ibm.com</oa:EmailAddress> <!-- dummyCustomer_.getEmailAddress1() --> <oa:EmailAddress>joe@ibm.com</oa:EmailAddress> <!-- dummyCustomer_.getEmailAddress2() --> <oa:Fax>555-1111</oa:Fax> <!-- dummyCustomer_.getFax1() --> <oa:Fax>555-2222</oa:Fax> <!-- dummyCustomer_.getFax2() --> <oa:URI/> <oa:Description lang="en-US" owner="" /> <Telephone publish="0" type="PHN">555-3333</oa:Telephone> <!-- dummyCustomer_.getTelephone1(), dummyCustomer_.getPublishTelephone1(), dummyCustomer_.getTelephoneType1() --> <Telephone publish="0" type="PHN">555-4444</oa:Telephone> <!-- dummyCustomer_.getTelephone2(), dummyCustomer_.getPublishTelephone2(), dummyCustomer_.getTelephoneType2() --> <oa:BestCallTime/> <!-- dummyCustomer_.getBestCallTime1() --> </oa:Contact>
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> <wc:UserData> <!-- constructed by createUserDataElement() --> <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> <!-- dummyCustomer_.getAge() --> <Gender>M</Gender> <!-- dummyCustomer_.getGender() --> <MaritalStatus>S</MaritalStatus> <!-- dummyCustomer_.getMaritalStatus() --> <AnnualIncome currency="">6</AnnualIncome> <!-- dummyCustomer_.getAnnualIncome() --> <NumberInHousehold>1</NumberInHousehold> <!-- dummyCustomer_.getHouseholdSize() --> <NumberOfChildren>0</NumberOfChildren> <!-- dummyCustomer_.getChildrenSize() --> <Employer>IBM</Employer> <!-- dummyCustomer_.getEmployer() --> <ReturnCustomer>No</ReturnCustomer> <!-- dummyCustomer_.getReturningCustomer() --> <ProfileType>C</ProfileType> <!-- dummyCustomer_.getType() --> </CustomerDemographics>
protected org.w3c.dom.Element createUserAccountElement()
The following sample shows the structure of the UserAccount element and its construction:
<UserAccount> <SystemId>NOT_IMPLEMENTED</SystemId> <-- dummyCustomer_.getSystemId() --> <Authorization> <-- created by createAuthorizationElement --> . . </Authorization> </UserAccount>
protected void unmarshallConfirmBOD(org.w3c.dom.Element confirmBODElement)
<ConfirmBOD> <oa:ApplicationArea> <!-- unmarshalled by unmarshallApplicationArea() --> . . </oa:ApplicationArea> <DataArea> <!-- unmarshalled by unmarshallDataArea() --> . . </DataArea> </ConfirmBOD>
protected void unmarshallDataArea(org.w3c.dom.Element dataAreaElement)
<DataArea> <BOD> <!-- unmarshalled by unmarshallBOD() --> . . </BOD> </DataArea>
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 void unmarshallDocumentId(org.w3c.dom.Element documentIdElement)
<oa:DocumentId> <oa:Id>100</Id> <!-- dummyCustomer_.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 unmarshallAddressId(org.w3c.dom.Element addressIdElement)
<AddressId> <oa:Id>100</Id> <!-- primaryAddress.setAddressId() --> </AddressId>
protected java.lang.String[] getRequestNodePathsToMask()
This is because these are sensitive information.
protected java.lang.String[] getResponseNodePathsToMask()
This is because these are the sensitive information.