public class OrderDetails extends MainServlet
| Modifier and Type | Class and Description |
|---|---|
protected class |
OrderDetails.Context
Inner class used to store servlet context information.
|
FlashServlet.Stack| Modifier and Type | Field and Description |
|---|---|
protected static long |
serialVersionUID
The class' serialization version id.
|
static java.lang.String |
SN_REORDER_REJECTS
The session's key for the re-order rejects list.
|
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 |
|---|
OrderDetails() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkAllLineItemsOpen(OrderDetails.Context ctx)
Check if all order detail line items in open status.
|
protected boolean |
compare(java.lang.String s1,
java.lang.String s2)
Compares two strings for equality ignoring differences between null and
"", case, and leading/trailing whitespace.
|
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 Customer |
getDefaultShipto(OrderDetails.Context ctx)
Determines shipto customer for new order: id original order shipto
customer still exists and has matching address this shipto becomes
a default shipto, otherwise one-time shipto object is being created
and returned as a default.
|
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 boolean |
isPrintable(BaseServlet.Context baseCtx)
Answers if the servlet allows for a printable version to be displayed.
|
protected boolean |
matchingAddress(Customer cust1,
Customer cust2)
Compare addresses of two customers
|
protected boolean |
processReorder(OrderDetails.Context ctx)
Invoked by EditFormFields if the submit action was "Reorder".
|
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 |
setTemplateActionInfo(OrderDetails.Context ctx,
boolean openitems)
Invoked by this class' implementation of setTemplateData to set
the reorder & cancel action link information required by the html template.
|
protected void |
setTemplateCustomerInfo(OrderDetails.Context ctx,
java.lang.String keyPrefix,
java.lang.String customerID)
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 boolean |
setTemplateError(OrderDetails.Context ctx,
java.lang.String errName)
Sets the html template error fields for the given error name.
|
protected void |
setTemplateOrderInfo(OrderDetails.Context ctx)
Invoked by this class' implementation of setTemplateData to
retrieve and set the order header and total 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, isServerTomcat, log, qualifyURL, redirectURL, setP3PCompactPolicy, showSiteError, showSiteError, showSiteError, useExistingSession, writeCookie, writeTempCookiedoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected static final long serialVersionUID
public static final java.lang.String SN_REORDER_REJECTS
protected boolean isPrintable(BaseServlet.Context baseCtx)
isPrintable in BaseServlet.isPrintable in class BaseServletbaseCtx - (Context) The current servlet context.true.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 boolean setTemplateError(OrderDetails.Context ctx, java.lang.String errName)
ctx - (Context) The current servlet context.errName - (String) The name of error that is to be set, used
to determine which message (or messages) to retrieve from the
message properties.false.protected void setTemplateActionInfo(OrderDetails.Context ctx, boolean openitems)
ctx - (Context) The current servlet context.openitems - (boolean) true if all line items for the
current order are open, otherwise false.protected void setTemplateCustomerInfo(OrderDetails.Context ctx, java.lang.String keyPrefix, java.lang.String customerID)
ctx - (Context) The current servlet context.keyPrefix - (String) The prefix for the type of customer info
that is to be set (i.e. BILLTO, SHIPTO, etc.).customerID - (String) The customer id for the customer whose info
is to be retrieved and set.protected void setTemplateOrderInfo(OrderDetails.Context ctx)
ctx - (Context) The current servlet context.protected boolean checkAllLineItemsOpen(OrderDetails.Context ctx)
ctx - (Context) The current servlet context.true if all order line items are in an
open status, otherwise false.protected boolean processReorder(OrderDetails.Context ctx)
ctx - (Context) The current servlet context.true if the reorder process was successful,
otherwise false.protected Customer getDefaultShipto(OrderDetails.Context ctx)
ctx - (Context) The current servlet context.
return Customer - default shipto customer.protected boolean matchingAddress(Customer cust1, Customer cust2)
cust1 - (Customer) Customer to compare.cust2 - (Customer) Customer to compare.true if customers' addresses are matching,
otherwise false.protected boolean compare(java.lang.String s1,
java.lang.String s2)
s1 - (String) String to compare.s2 - (String) String to compare.true if string are equivilent.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.