public class AccountBillingAddEdit extends AccountServlet
| Modifier and Type | Class and Description |
|---|---|
protected class |
AccountBillingAddEdit.Context
Inner class used to store servlet context information.
|
FlashServlet.Stack| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
SN_BILLINFO, SN_SHIPINFO, SN_USERINFODISPLAY_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 |
|---|
AccountBillingAddEdit() |
| Modifier and Type | Method and Description |
|---|---|
protected AccountServlet.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 void |
readParameters(BaseServlet.Context baseCtx,
boolean post)
Reads the parameters passed to the servlet via the http request object.
|
protected void |
resetFormFields(BaseServlet.Context baseCtx)
Resets the values for the html template's form fields.
|
protected void |
setBilltoValues(AccountBillingAddEdit.Context ctx)
Sets the bill-to customer values using the submitted parameter values.
|
protected void |
setTemplateData(BaseServlet.Context baseCtx)
Sets the various data required by the html template.
|
protected boolean |
setTemplateError(AccountBillingAddEdit.Context ctx,
java.lang.String errName)
Sets the html template error fields for the given error name.
|
protected void |
storeBillingInfo(AccountBillingAddEdit.Context ctx)
Stores the entered billing information in the session for later retrieval.
|
protected boolean |
updateAccount(AccountBillingAddEdit.Context ctx)
Controls the updating of the account's components.
|
protected boolean |
validateBillto(AccountBillingAddEdit.Context ctx)
Validates the entered bill-to id.
|
protected boolean |
validateState(AccountBillingAddEdit.Context ctx)
Validates the entered state and country combination.
|
allowAdmin, allowCatalog, allowLogonId, assignDefaultUserCatalog, getAccountObject, getURLForAdminCreate, getURLForAdminSelect, getURLForProfile, getURLForSfiSelect, getValidDefaultCategory, isCheckOut, isOneTimeShipto, requiresLogon, runMiniSync, setAccountObject, setCookieValues, setSessionValues, updatePageExpiredconfirmSession, 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
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 AccountServlet.readParameters in class AccountServletbaseCtx - (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 setTemplateData(BaseServlet.Context baseCtx)
writePage method.
Overrides setTemplateData in BaseServlet.setTemplateData in class BaseServletbaseCtx - (Context) The current servlet context.protected boolean setTemplateError(AccountBillingAddEdit.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 setBilltoValues(AccountBillingAddEdit.Context ctx)
editFormFields methodf for add and edit mode.ctx - (Context) The current servlet context.protected void storeBillingInfo(AccountBillingAddEdit.Context ctx)
editFormFields method for add mode.ctx - (Context) The current servlet context.protected boolean updateAccount(AccountBillingAddEdit.Context ctx)
Invoked by the editFormFields method for edit mode.
ctx - (Context) The current servlet context.true if the account update completed
successfully, otherwise false.protected boolean validateBillto(AccountBillingAddEdit.Context ctx)
ctx - (Context) The current servlet context.true if the validation is successful,
otherwise false.protected boolean validateState(AccountBillingAddEdit.Context ctx)
ctx - (Context) The current servlet context.true if the validation is successful,
otherwise false.protected AccountServlet.Context createContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
createContext in AccountServlet.
Invoked by doPost and doGet methods.createContext in class AccountServletrequest - (HttpServletRequest) The servlet's incoming request.response - (HttpServletResponse) The servlet's outgoing response.