public class ProcessLogonRequest extends OperatorRequest
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Element | authorizationElement_
authorizationElement_ contains the request document's Authorization element.
|
protected org.w3c.dom.Element | logonElement_
logonElement_ contains the request document's Logon element.
|
protected org.w3c.dom.Element | userAccountElement_
userAccountElement_ contains the request document's UserAccount element.
|
Constructor and Description |
---|
ProcessLogonRequest()
Creates a new request handler.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element | createAuthorizationElement()
Builds the Authorization element and adds it as a child of userAccountElement_.
|
protected org.w3c.dom.Element | createDataAreaElement()
Builds the DataArea element and adds it as a child of rootElement_.
|
protected org.w3c.dom.Element | createLogonElement()
Builds the Logon element and adds it as a child of dataAreaElement_.
|
protected org.w3c.dom.Element | createSenderElement()
Builds the Sender element and adds it as a child of applicationAreaElement_.
|
protected org.w3c.dom.Element | createUserAccountElement()
Builds the UserAccount element and adds it as a child of logonElement_.
|
protected void | getCountries()
If the countries have not been retrieved, then get the countries.
|
protected org.w3c.dom.Document | getRequestBod()
Constructs the request document.
|
protected java.lang.String[] | getRequestNodePathsToMask()
The ProcessLogonRequest implementation returns the /ProcessLogon/DataArea/Logon/UserAccount/Authorization/Password value to be masked.
|
protected Session | getResponseData()
Returns the unmarshalled response data in the form of a com.ibm.commerce.telesales.model.Operator object.
|
protected java.lang.String[] | getResponseNodePathsToMask()
The ProcessLogonRequest implementation returns the /AcknowledgeLogon/DataArea/Logon/UserAccount/Authorization/Password value to be masked.
|
ServiceContext | getServiceContext()
Constructs the service context for this service request.
|
protected java.lang.String | getXSDFileName()
Returns the name of the schema file for the request BOD (Business Object Document).
|
protected void | unmarshallAcknowledge(Operator operator, org.w3c.dom.Element acknowledgeElement)
Unmarshalls the Acknowledge element.
|
protected void | unmarshallAcknowledgeLogon(Operator operator, org.w3c.dom.Element acknowledgeLogonElement)
Unmarshalls the AcknowledgeLogon element.
|
protected void | unmarshallAuthorization(Operator operator, org.w3c.dom.Element authorizationElement)
Unmarshalls the Authorization element.
|
protected BusinessChannel | unmarshallBusinessChannel(org.w3c.dom.Element businessChannelElement)
Unmarshalls the BusinessChannel element.
|
protected void | unmarshallBusinessChannels(org.w3c.dom.Element businessChannelsElement)
Unmarshalls the BusinessChannel elements.
|
protected void | unmarshallCommerceArea(Operator operator, org.w3c.dom.Element commerceAreaElement)
Unmarshalls the CommerceArea element.
|
protected void | unmarshallDataArea(Operator operator, org.w3c.dom.Element dataAreaElement)
Unmarshalls the DataArea element.
|
protected void | unmarshallLanguages(org.w3c.dom.Element languagesElement)
Unmarshalls the Languages element.
|
protected void | unmarshallLogon(Operator operator, org.w3c.dom.Element logonElement)
Unmarshalls the Logon element.
|
protected void | unmarshallResponseBod(org.w3c.dom.Document bod)
Unmarshalls the response BOD.
|
protected void | unmarshallUserAccount(Operator operator, org.w3c.dom.Element userAccountElement)
Unmarshalls the UserAccount element.
|
protected void | updateModel(java.lang.Object databean)
Update the model (com.ibm.commerce.telesales.model.TelesalesModelManager) prior to the UI being notified of the completion of the service request.
|
protected org.w3c.dom.Element logonElement_
protected org.w3c.dom.Element userAccountElement_
protected org.w3c.dom.Element authorizationElement_
protected Session getResponseData()
public ServiceContext getServiceContext()
protected java.lang.String getXSDFileName()
protected org.w3c.dom.Document getRequestBod()
<ProcessLogon> <!-- created by the createWCRootElement method --> . . </ProcessLogon>
protected org.w3c.dom.Element createDataAreaElement()
The following outline shows the structure of the DataArea element and its construction:
<DataArea> <Process acknowledge="Always" confirm="Always"/> <Logon> <!-- constructed by createLogonElement() --> . . </Logon> </DataArea>
protected org.w3c.dom.Element createLogonElement()
The following outline shows the structure of the Logon element and its construction:
<Logon> <UserAccount> <!-- constructed by createUserAccountElement() --> . . </UserAccount> <CommerceArea> <!-- constructed by createCommerceAreaElement() --> </CommerceArea> <wc:UserData> <!-- constructed by createUserDataElement() --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </Logon>
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>Logon</oa:Component> <oa:Task>LogonOperator</oa:Task> <oa:ReferenceId>-1680589954192190044</oa:ReferenceId> <!-- value of getActionCtx --> <oa:Confirmation>2</oa:Confirmation> <oa:AuthorizationId/> </oa:Sender>
protected org.w3c.dom.Element createUserAccountElement()
The following sample UserAccount element shows how the element is constructed:
<UserAccount> <Authorization> <!-- constructed by createAuthorizationElement --> . . </Authorization> </UserAccount>
protected org.w3c.dom.Element createAuthorizationElement()
The following sample Authorization element shows how the element is constructed:
<Authorization> <Password>wcsadmin</Password> <!-- "password" or "new.password" TelesalesProperties property --> <UserId>wcsadmin</UserId> <!-- "username" TelesalesProperties property --> </Authorization>
protected void unmarshallResponseBod(org.w3c.dom.Document bod)
protected void unmarshallAcknowledge(Operator operator, org.w3c.dom.Element acknowledgeElement)
<Acknowledge> <oa:Code>Accepted</oa:Code> <!-- operator.setAcknowledgeCode() --> </Acknowledge>
protected void unmarshallAcknowledgeLogon(Operator operator, org.w3c.dom.Element acknowledgeLogonElement)
<AcknowledgeLogon> <oa:ApplicationArea> <!-- unmarshalled by unmarshallApplicationArea() --> . . </oa:ApplicationArea> <DataArea> <!-- unmarshalled by unmarshallDataArea() --> . . </DataArea> </AcknowledgeLogon>
protected void unmarshallAuthorization(Operator operator, org.w3c.dom.Element authorizationElement)
<Authorization> <UserId>wcsadmin</UserId> <!-- operator.setUID() --> </Authorization>
protected void unmarshallCommerceArea(Operator operator, org.w3c.dom.Element commerceAreaElement)
<CommerceArea> <StoreId>1000</StoreId> <!-- stored in "store.id" TelesalesProperties property --> <LanguageId>en-US</LanguageId> <!-- operator.setLanguageId() --> <BusinessChannels> <!-- unmarshalled by unmarshallBusinessChannels() --> . . </BusinessChannels> <Languages> <!-- unmarshalled by unmarshallLanguages() --> . . </Languages> </CommerceArea>
protected void unmarshallLanguages(org.w3c.dom.Element languagesElement)
<Languages> <Language> <LanguageId>-1</LanguageId> <LanguageDescription>United States English</LanguageDescription> </Language> . . <Language> . . </Language> </Languages>
protected void unmarshallDataArea(Operator operator, org.w3c.dom.Element dataAreaElement)
<DataArea> <Acknowledge> <!-- unmarshalled by unmarshallAcknowledge() --> . . </Acknowledge> <Logon> <!-- unmarshalled by unmarshallLogon() --> . . </Logon> </DataArea>
protected void unmarshallLogon(Operator operator, org.w3c.dom.Element logonElement)
<Logon> <UserAccount> <!-- unmarshalled by unmarshallUserAccount() --> . . </UserAccount> <CommerceArea> <!-- unmarshalled by unmarshallCommerceArea() --> . . </CommerceArea> <BODFailure> <!-- unmarshalled by unmarshallBODFailure() --> . . </BodFailure> <BODSuccess> <!-- unmarshalled by unmarshallBODSuccess() --> . . </BODSuccess> <!-- unmarshalled by unmarshallUserData() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </Logon>
protected void unmarshallUserAccount(Operator operator, org.w3c.dom.Element userAccountElement)
<UserAccount> <SystemId> <!-- operator.setMemberId() --> <Authorization> <!-- unmarshalled by unmarshallAuthorization --> . . </Authorization> </UserAccount>
protected void unmarshallBusinessChannels(org.w3c.dom.Element businessChannelsElement)
protected BusinessChannel unmarshallBusinessChannel(org.w3c.dom.Element businessChannelElement)
<BusinessChannel> <BusinessChannelId/> <!-- businessChannel.setChannelId() --> <BusinessChannelName/> <!-- businessChannel.setChannelName() --> <Description/> <!-- businessChannel.setDescription() --> <Name/> <!-- businessChannel.setDisplayName() --> <!-- unmarshalled by unmarshallUserData() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </BusinessChannel>
protected java.lang.String[] getRequestNodePathsToMask()
protected java.lang.String[] getResponseNodePathsToMask()
protected void updateModel(java.lang.Object databean)
protected void getCountries()
This method invokes "com.ibm.commerce.telesales.findCountry" service requests to the server and retrieves the list of countries.