public class ConfirmSalesOrder extends SalesOrder implements ITelesalesResponseBuilder
This class can be extended by any sub-class to override or extend the base features.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Class Name
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field
|
Constructor and Description |
---|
ConfirmSalesOrder() |
Modifier and Type | Method and Description |
---|---|
protected void | buildDataArea()
Builds Data Area subsection of the response BOD.
|
protected org.w3c.dom.Element | createBodSuccessElement(org.w3c.dom.Element parentElement)
Builds the BODSuccess element.
|
protected org.w3c.dom.Element | createNounOutcomeElement(org.w3c.dom.Element aParentElement)
Creates the NounOutcome element.
|
protected org.w3c.dom.Element | createNounOutcomeFailureElement(org.w3c.dom.Element aParentElement, java.lang.String astrReasonCode, java.lang.String astrDescription)
Creates the NounOutcome element when there is a failure.
|
protected org.w3c.dom.Element | createNounSuccessElement(org.w3c.dom.Element aParentElement)
Creates the NounSuccess element for the given parent element.
|
protected org.w3c.dom.Element | createOAWarningMessageElement(org.w3c.dom.Element parentElement)
Builds the WarningMessage element.
|
protected org.w3c.dom.Element | createWCWarningMessageElement(org.w3c.dom.Element parentElement)
Builds the WarningMessage element.
|
protected java.lang.String | determineDocumentId()
Gets the document Id, which in this case is an order id, to be used for the response Business Object Document.
|
protected java.lang.String | getConfirmFlag()
This method returns the value of confirm attribute of wc:Show tag independent of the type of action, that is SYNC, CREATE or CANCEL.
|
java.lang.String | getOrderId()
Gets the ID of the order.
|
protected java.lang.String | getRootElementName()
Gets the root element name of the response document.
|
protected OrderBaseSearchResultBean | getSalesOrderSearchResult(java.lang.String astrOrderId)
Builds a OrderBaseSearchResultBean for the given order id.
|
void | setOrderId(java.lang.String newOrderId)
Sets the ID of the order.
|
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
protected void buildDataArea() throws ECException
protected org.w3c.dom.Element createNounOutcomeElement(org.w3c.dom.Element aParentElement) throws ECException
protected java.lang.String getConfirmFlag()
protected org.w3c.dom.Element createNounOutcomeFailureElement(org.w3c.dom.Element aParentElement, java.lang.String astrReasonCode, java.lang.String astrDescription) throws ECException
protected OrderBaseSearchResultBean getSalesOrderSearchResult(java.lang.String astrOrderId) throws ECException
This method calls the method populateSearchResult to populate the OrderBaseSearchResultBean for the given order. The boolean value 'true' is passed to the input parameter aboolGetPromotions of the populateSearchResult to retrieve the promotions associated with the SalesOrder.
protected java.lang.String determineDocumentId() throws ECException
This method will also set the instance variable istrOrderId which is the id of the order.
protected org.w3c.dom.Element createNounSuccessElement(org.w3c.dom.Element aParentElement) throws ECException
The following sample indicates the structure of the NounSuccess element and how it is constructed.
<oa:NounSuccess> <oa:WarningMessage> <!-- created by createWarningMessageElement --> . . </oa:WarningMessage> </oa:NounSuccess>
protected org.w3c.dom.Element createBodSuccessElement(org.w3c.dom.Element parentElement) throws ECException
The following sample indicates the structure of the BODSuccess element and how it is constructed.
<wc:BODSuccess> <wc:WarningMessage> <!-- created by createWarningMessageElement --> . . </wc:WarningMessage> </wc:BODSuccess>
protected org.w3c.dom.Element createWCWarningMessageElement(org.w3c.dom.Element parentElement) throws ECException
The description of the message is obtained from the request properties with key=BodConstants.KEY_WARNING_ERROR_MESSAGE. THe reason code of the warning message in obtained from the request properties with key=BodConstants.KEY_ERROR_CODE.
The following sample indicates the structure of the WarningMessage element and how it is constructed.
<wc:WarningMessage> <wc:Description>This is a warning message</wc:Description> <wc:ReasonCode>0000</wc:ReasonCode> </wc:WarningMessage>
protected org.w3c.dom.Element createOAWarningMessageElement(org.w3c.dom.Element parentElement) throws ECException
The description of the message is obtained from the request properties with key=BodConstants.KEY_WARNING_ERROR_MESSAGE. THe reason code of the warning message in obtained from the request properties with key=BodConstants.KEY_ERROR_CODE.
The following sample indicates the structure of the WarningMessage element and how it is constructed.
<oa:WarningMessage> <oa:Description>This is a warning message</oa:Description> <oa:ReasonCode>0000</oa:ReasonCode> </oa:WarningMessage>
protected java.lang.String getRootElementName()
public java.lang.String getOrderId()
public void setOrderId(java.lang.String newOrderId)