public class ConfirmQuote extends Quote implements ITelesalesResponseBuilder
This class can be extended by any subclass to override or extend the base features.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Class name field.
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field
|
Constructor and Description |
---|
ConfirmQuote()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | buildDataArea()
This method builds Data Area subsection of the response BOD.
|
protected org.w3c.dom.Element | createNounOutcomeElement(org.w3c.dom.Element aParentElement)
This method creates the NounOutcome element.
|
protected org.w3c.dom.Element | createNounOutcomeFailureElement(org.w3c.dom.Element aParentElement, java.lang.String astrReasonCode, java.lang.String astrDescription)
This method creates the NounOutcome element when there is a failure.
|
protected java.lang.String | determineDocumentId()
This method gets the document Id, which in this case is a quote 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 | getQuoteId()
This method gets the ID of the quote.
|
protected OrderBaseSearchResultBean | getQuoteSearchResult(java.lang.String astrQuoteId)
This method builds a OrderBaseSearchResultBean for the given quote id.
|
protected java.lang.String | getRootElementName()
This method gets the root element name of the response document.
|
void | setQuoteId(java.lang.String newQuoteId)
This method sets the ID of the quote.
|
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
protected void buildDataArea() throws ECException
This calls the method buildConfirmDataArea and buildResultArea to build the Data Area subsection of the response BOD.
protected org.w3c.dom.Element createNounOutcomeElement(org.w3c.dom.Element aParentElement) throws ECException
The following is a sample NounOutcome element that indicates how the element is constructed:
<NounOutcome> <oa:DocumentIds> <!-- created by the createDocumentIdsElement method --> . <!-- Here the document id is Quote Id --> . . </oa:DocumentIds> <oa:NounSuccess/> <oa:UserArea/> </NounOutcome>
protected org.w3c.dom.Element createNounOutcomeFailureElement(org.w3c.dom.Element aParentElement, java.lang.String astrReasonCode, java.lang.String astrDescription) throws ECException
protected java.lang.String getConfirmFlag()
protected OrderBaseSearchResultBean getQuoteSearchResult(java.lang.String astrQuoteId) throws ECException
This method calls the method populateSearchResult to populate the OrderBaseSearchResultBean for the given quote. The boolean value true is passed to the input parameter aboolGetPromotions of the populateSearchResult to retrieve the promotions associated with the Quote.
protected java.lang.String determineDocumentId() throws ECException
If none of the above conditions were met, the document id will have the value BodConstants.TAG_NOT_FOUND.
This method will also set the instance variable istrQuoteId which is the id of the quote.
protected java.lang.String getRootElementName()
public java.lang.String getQuoteId()
public void setQuoteId(java.lang.String newQuoteId)