public class AdmPurgeRestockNotifications extends AdmPurge
| Modifier and Type | Class and Description |
|---|---|
protected class |
AdmPurgeRestockNotifications.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.
|
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 |
|---|
AdmPurgeRestockNotifications() |
| Modifier and Type | Method and Description |
|---|---|
protected AdmPurge.Context |
createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates the servlet context inner class.
|
protected int |
getPurgeCount(AdmPurge.Context ctx)
Returns the number of records that match the purge criteria.
|
protected java.util.ArrayList<RestockNotification> |
getPurgeRecords(AdmPurge.Context ctx)
Returns a collection of records that match the purge criteria.
|
protected boolean |
purgeRecords(AdmPurge.Context ctx)
Purges the records that match the purge criteria.
|
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 |
setTemplateData(BaseServlet.Context baseCtx)
Sets the various data required by the html template.
|
editFormFields, getNextURL, getPurgeDate, getTemplateName, setCookieValues, setSessionValues, setTemplateErrorconfirmSession, getPreviousCategoryList, getPreviousCategoryPath, hasSubcategories, hasSubcategories, isOmitNoStock, isPreshopRequest, isUserHelpRequest, setTemplateCategoryPath, sortCategoryProductData, writePageImplconfirmCart, confirmRequest, confirmRetail, confirmWholesale, createNewCart, createNewSessionImpl, getPageTitle, getServletPath, getUser, initTemplateDataImpl, isLogonRequest, requestComplete, requiresLogon, 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 void readParameters(BaseServlet.Context baseCtx, boolean post)
doGet and doPost method.
Overrides readParameters in AdmPurge.readParameters in class AdmPurgebaseCtx - (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 AdmPurge.resetFormFields in class AdmPurgebaseCtx - (Context) The current servlet context.protected void setTemplateData(BaseServlet.Context baseCtx)
writePage method.
Overrides setTemplateData in AdmPurge.setTemplateData in class AdmPurgebaseCtx - (Context) The current servlet context.protected int getPurgeCount(AdmPurge.Context ctx)
getPurgeCount in AdmPurge.getPurgeCount in class AdmPurgectx - (Context) The current servlet context.protected java.util.ArrayList<RestockNotification> getPurgeRecords(AdmPurge.Context ctx)
getPurgeRecords in AdmPurge.getPurgeRecords in class AdmPurgectx - (Context) The current servlet context.protected boolean purgeRecords(AdmPurge.Context ctx) throws java.lang.Exception
purgeRecords in AdmPurge.purgeRecords in class AdmPurgectx - (Context) The current servlet context.true if the records purge successfully,
otherwise false.java.lang.Exception - - if an error occurs during the purge
processing.protected AdmPurge.Context createContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
createContext in AdmPurge.
Invoked by doPost and doGet methods.createContext in class AdmPurgerequest - (HttpServletRequest) The servlet's incoming request.response - (HttpServletResponse) The servlet's outgoing response.