public class OrderSummary extends MainServlet
| Modifier and Type | Class and Description |
|---|---|
protected class |
OrderSummary.acSearchResult
Inner class that defines product code auto complete search result data
that is sent to the browser.
|
protected class |
OrderSummary.Context
Inner class used to store servlet context information.
|
FlashServlet.Stack| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
ASCENDING
The constant values used for order sorting.
|
private static java.lang.String[] |
COLUMNS |
private java.lang.String[] |
cvDaysToIncludeCodes
Order selection days codes.
|
private static java.lang.String |
cvDaysToIncludeDefault
The days-to-include default.
|
private java.lang.String[] |
cvDaysToIncludeNames
Order selection days names (descriptions).
|
private java.lang.String[] |
cvOrdersToIncludeCodes
Order selection inclusion codes.
|
private java.lang.String[] |
cvOrdersToIncludeNames
Order selection inclusion names (descriptions).
|
private static java.lang.String |
DESCENDING |
private static long |
serialVersionUID
The class' serialization version id.
|
DISPLAY_MODE, SN_ADMINMODE, SN_CATEGORIES, SN_CATEGORIES_LISTONLY, SN_CATEGORIES_PATH, SN_CATEGORY, SN_CONTINUE_PAGEURL, SN_PRODUCTS, SN_PRODUCTS_INSTOCK, SN_PRODUCTS_NOSTOCK, SN_PRODUCTS_PAFILTERS, SN_PRODUCTS_PAGEHIST, SN_PRODUCTS_PAGENUM, SN_PRODUCTS_PAGEURL, SOURCE_CATALOG, SOURCE_FAVORITES, SOURCE_SEARCH, SOURCE_SHOPCART, SOURCE_SPECIALSN_CART, SN_LOGON_STATUS, SN_SECPROFILE, SN_USER, SN_USERSFIBROWSER_IE, BROWSER_NN, BROWSER_XX, RESP_NULL, RESP_REDIRECTED, RQST_AJAX, RQST_NULL| Constructor and Description |
|---|
OrderSummary() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
acSearch(OrderSummary.Context ctx)
Handles processing for a product code auto complete search request.
|
protected void |
acSearchResponse(OrderSummary.Context ctx,
java.util.ArrayList<OrderSummary.acSearchResult> results)
Sends a JSON formatted response to the browser for a product code auto
complete search request.
|
protected void |
acWriteResponse(OrderSummary.Context ctx,
java.lang.String response)
Writes a JSON formatted response to the http response output stream for a
product code auto complete search request.
|
protected boolean |
buildInitialOrderInfo1(OrderSummary.Context ctx)
Builds initial list of orders requested via Order History function and
creates the
ctx.orders collection. |
protected boolean |
buildSortedOrderInfo2(OrderSummary.Context ctx,
java.lang.String sortByColumn,
java.lang.String sortType)
Builds sorted list of orders requested via Order History function and
modifies the
ctx.orders collection. |
protected boolean |
buildSortedOrderInfo3(OrderSummary.Context ctx,
java.lang.String sortByColumn,
java.lang.String sortType,
boolean sortAsc)
Builds sorted list of orders requested via Order History function and
modifies the
ctx.orders collection. |
protected MainServlet.Context |
createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates the servlet context inner class.
|
protected boolean |
editFormFields(BaseServlet.Context baseCtx)
Edits the values from the html template's form fields.
|
protected java.lang.String |
getNextURL(BaseServlet.Context baseCtx)
Returns the next URL (including parameters) to be processed when this
servlet's processing has been successfully completed (no edit errors, etc.).
|
protected java.lang.String |
getTemplateName(BaseServlet.Context baseCtx)
Returns the name of the html template file used by the servlet.
|
protected java.lang.String |
getValueForOrderColumn(Order order,
java.lang.String colname)
Returns the string value for named column in the order.
|
protected void |
readParameters(BaseServlet.Context baseCtx,
boolean post)
Reads the parameters passed to the servlet via the http request object.
|
protected boolean |
requiresLogon(BaseServlet.Context baseCtx)
Answers if the servlet requires a valid non-default user to log on in
order to continue processing.
|
protected void |
resetFormFields(BaseServlet.Context baseCtx)
Resets the values for the html template's form fields.
|
protected void |
setCookieValues(BaseServlet.Context baseCtx)
Adds one or more values to the http session cookies.
|
protected void |
setSessionValues(BaseServlet.Context baseCtx)
Adds one or more values to the http session object.
|
protected void |
setTemplateCustomerInfo(OrderSummary.Context ctx)
Invoked by this class' implementation of setTemplateData to
retrieve and set the customer data required by the html template.
|
protected void |
setTemplateData(BaseServlet.Context baseCtx)
Sets the various data required by the html template.
|
protected void |
setTemplateOrderInfo0(OrderSummary.Context ctx)
Invoked by this class' implementation of setTemplateData to
retrieve and set the order summary data required by the html template.
|
protected void |
setTemplateOrderInfo1(OrderSummary.Context ctx)
Invoked by this class' implementation of setTemplateData to
retrieve and set the order summary data required by the html template.
|
protected void |
setTemplateOrderInfo2(OrderSummary.Context ctx,
java.util.ArrayList<Order> orders)
Sets the order summary data required by the html template.
|
confirmSession, getPreviousCategoryList, getPreviousCategoryPath, hasSubcategories, hasSubcategories, isOmitNoStock, isPreshopRequest, isUserHelpRequest, setTemplateCategoryPath, sortCategoryProductData, writePageImplconfirmCart, confirmRequest, confirmRetail, confirmWholesale, createNewCart, createNewSessionImpl, getPageTitle, getServletPath, getUser, initTemplateDataImpl, isLogonRequest, requestComplete, resetCart, resetCategories, resetProducts, setDefaultUser, setSessionCart, setSFIShoppingUser, useExistingSessionImpl, writeCookiecreateNewSession, determineBrowser, doGet, doPost, getCookie, getInvokerName, getInvokerName, getInvokerParams, getInvokerParams, getInvokerPath, getInvokerPath, getInvokerURL, getPageParams, getRequestURL, getServletName, getServletName, getServletParams, getServletParams, getServletPath, getServletURL, getServletURL, getTemplateMessage, getTemplateMessage, getTemplateMessage, getTemplateMessage, getTemplateMessage, initTemplateData, isPrintable, isServerTomcat, log, qualifyURL, redirectURL, setP3PCompactPolicy, showSiteError, showSiteError, showSiteError, useExistingSession, writeCookie, writeTempCookiedoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprivate static final long serialVersionUID
private final java.lang.String[] cvOrdersToIncludeCodes
private final java.lang.String[] cvOrdersToIncludeNames
private final java.lang.String[] cvDaysToIncludeCodes
private final java.lang.String[] cvDaysToIncludeNames
private static final java.lang.String cvDaysToIncludeDefault
private static final java.lang.String ASCENDING
private static final java.lang.String DESCENDING
private static final java.lang.String[] COLUMNS
protected boolean requiresLogon(BaseServlet.Context baseCtx)
false for public
shopping functions and true for admin, SAT and SFI/CSR functions.
This method should be overridden by a subclass if the subclass requires
something different than the default.
Overrides requiresLogon in FlashServlet.requiresLogon in class FlashServletbaseCtx - (Context) The current servlet context.true if the servlet requires a non-default
user to log on, otherwise false.protected boolean editFormFields(BaseServlet.Context baseCtx)
doPost method.
Overrides editFormFields in BaseServlet.editFormFields in class BaseServletbaseCtx - (Context) The current servlet context.true if all the edits are successful,
otherwise false.protected java.lang.String getNextURL(BaseServlet.Context baseCtx)
writeURL method.
Overrides getNextURL in BaseServlet.getNextURL in class BaseServletbaseCtx - (Context) The current servlet context.protected java.lang.String getTemplateName(BaseServlet.Context baseCtx)
writePage method.
Overrides getTemplateName in BaseServlet.getTemplateName in class BaseServletbaseCtx - (Context) The current servlet context.protected void readParameters(BaseServlet.Context baseCtx, boolean post)
doGet and doPost method.
Overrides readParameters in BaseServlet.readParameters in class BaseServletbaseCtx - (Context) The current servlet context.post - (boolean) true if the method is invoked from
doPost, otherwise false.protected void resetFormFields(BaseServlet.Context baseCtx)
doGet and doPost methods.
Overrides resetFormFields in BaseServlet.resetFormFields in class BaseServletbaseCtx - (Context) The current servlet context.protected void setCookieValues(BaseServlet.Context baseCtx) throws java.io.IOException
writeURL method. Calls should be made to writeCookie for each cookie that needs to be set.
Overrides setCookieValues in BaseServlet.setCookieValues in class BaseServletbaseCtx - (Context) The current servlet context.java.io.IOException - - if an error occurs when adding the
cookie to the response header.protected void setSessionValues(BaseServlet.Context baseCtx)
writeURL method.
Overrides setSessionValues in BaseServlet.setSessionValues in class BaseServletbaseCtx - (Context) The current servlet context.protected void setTemplateData(BaseServlet.Context baseCtx)
writePage method.
Overrides setTemplateData in BaseServlet.setTemplateData in class BaseServletbaseCtx - (Context) The current servlet context.protected void setTemplateCustomerInfo(OrderSummary.Context ctx)
ctx - (Context) The current servlet context.protected void setTemplateOrderInfo0(OrderSummary.Context ctx)
ctx - (Context) The current servlet context.protected void setTemplateOrderInfo1(OrderSummary.Context ctx)
ctx - (Context) The current servlet context.protected void setTemplateOrderInfo2(OrderSummary.Context ctx, java.util.ArrayList<Order> orders)
ctx - (Context) The current servlet context.orders - (ArrayList) The set of orders to process.protected boolean buildInitialOrderInfo1(OrderSummary.Context ctx)
ctx.orders collection.ctx - (Context) The current servlet context.true if initial order list was built
successfully, otherwise false.protected boolean buildSortedOrderInfo2(OrderSummary.Context ctx, java.lang.String sortByColumn, java.lang.String sortType)
ctx.orders collection.ctx - (Context) The current servlet context.sortByColumn - (String) Sorting key.sortType - (String) sort type (alpha, number or date).true if sorted order list was built
successfully, otherwise false.protected boolean buildSortedOrderInfo3(OrderSummary.Context ctx, java.lang.String sortByColumn, java.lang.String sortType, boolean sortAsc)
ctx.orders collection.ctx - (Context) The current servlet context.sortByColumn - (String) Sorting key.sortType - (String) sort type (alpha, number or date).sortAsc - (boolean) true if sorting in ascending
sequence, otherwise false.true if sorted order list was built
successfully, otherwise false.protected java.lang.String getValueForOrderColumn(Order order, java.lang.String colname)
order - (Order) The order.colname - (String) The column name.protected void acSearch(OrderSummary.Context ctx)
ctx - (Context) The current servlet context.protected void acSearchResponse(OrderSummary.Context ctx, java.util.ArrayList<OrderSummary.acSearchResult> results)
ctx - (Context) The current servlet context.results - (ArrayList) The current set of search results.protected void acWriteResponse(OrderSummary.Context ctx, java.lang.String response)
ctx - (Context) The current servlet context.response - (String) The JSON response to write.protected MainServlet.Context createContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
createContext in MainServlet.
Invoked by doPost and doGet methods.createContext in class MainServletrequest - (HttpServletRequest) The servlet's incoming request.response - (HttpServletResponse) The servlet's outgoing response.