public class AdmPendingProductEditDescriptions extends AdmProductDescriptionEdit
Modifier and Type | Class and Description |
---|---|
protected class |
AdmPendingProductEditDescriptions.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_SPECIAL
SN_CART, SN_LOGON_STATUS, SN_SECPROFILE, SN_USER, SN_USERSFI
BROWSER_IE, BROWSER_NN, BROWSER_XX, RESP_NULL, RESP_REDIRECTED, RQST_AJAX, RQST_NULL
Constructor and Description |
---|
AdmPendingProductEditDescriptions() |
Modifier and Type | Method and Description |
---|---|
protected AdmProductDescriptionEdit.Context |
createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates the servlet context inner class.
|
protected java.io.File |
getDescriptionFile(AdmProductDescriptionEdit.Context ctx,
int size)
Returns the description file for the given size.
|
protected java.lang.String |
getDescriptionFileContent(AdmProductDescriptionEdit.Context ctx,
int size,
boolean prune)
Returns the description file content for the given size.
|
protected java.lang.String |
getDescriptionRootName(AdmProductDescriptionEdit.Context ctx,
int size)
Returns the description root name for the given size.
|
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 Product |
getProductObject(AdmProductServlet.Context ctx)
Returns the current product being maintained.
|
protected java.lang.String |
getTemplateName(BaseServlet.Context baseCtx)
Returns the name of the html template file used by the servlet.
|
protected boolean |
isDefaultCode(AdmProductDescriptionEdit.Context ctx)
Answers if the code for the current product is "default".
|
protected void |
readParameters(BaseServlet.Context baseCtx,
boolean post)
Reads the parameters passed to the servlet via the http request object.
|
protected void |
setTemplateData(BaseServlet.Context baseCtx)
Sets the various data required by the html template.
|
editFormFields, resetFormFields, saveFiles, setTemplateError, switchFile, switchFileExtension, switchFileFromDefault, switchFileToDefault, uploadComplete, uploadFiles
setCookieValues, setSessionValues
setTemplatePagingBegIndex, setTemplatePagingEndIndex, setTemplatePagingLinks
confirmSession, getPreviousCategoryList, getPreviousCategoryPath, hasSubcategories, hasSubcategories, isOmitNoStock, isPreshopRequest, isUserHelpRequest, setTemplateCategoryPath, sortCategoryProductData, writePageImpl
confirmCart, confirmRequest, confirmRetail, confirmWholesale, createNewCart, createNewSessionImpl, getPageTitle, getServletPath, getUser, initTemplateDataImpl, isLogonRequest, requestComplete, requiresLogon, resetCart, resetCategories, resetProducts, setDefaultUser, setSessionCart, setSFIShoppingUser, useExistingSessionImpl, writeCookie
createNewSession, 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, writeTempCookie
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
protected java.lang.String getNextURL(BaseServlet.Context baseCtx)
writeURL
method.
Overrides getNextURL
in AdmProductDescriptionEdit
.getNextURL
in class AdmProductDescriptionEdit
baseCtx
- (Context) The current servlet context.protected java.lang.String getTemplateName(BaseServlet.Context baseCtx)
writePage
method.
Overrides getTemplateName
in AdmProductDescriptionEdit
.getTemplateName
in class AdmProductDescriptionEdit
baseCtx
- (Context) The current servlet context.protected void readParameters(BaseServlet.Context baseCtx, boolean post)
doGet
and doPost
method.
Overrides readParameters
in AdmProductDescriptionEdit
.readParameters
in class AdmProductDescriptionEdit
baseCtx
- (Context) The current servlet context.post
- (boolean) true
if the method is invoked from
doPost
, otherwise false
.protected void setTemplateData(BaseServlet.Context baseCtx)
writePage
method.
Overrides setTemplateData
in AdmProductDescriptionEdit
.setTemplateData
in class AdmProductDescriptionEdit
baseCtx
- (Context) The current servlet context.protected java.io.File getDescriptionFile(AdmProductDescriptionEdit.Context ctx, int size)
getDescriptionFile
in AdmProductDescriptionEdit
.getDescriptionFile
in class AdmProductDescriptionEdit
ctx
- (Context) The current servlet context.size
- (int) The size of the desired description file
(Product.SIZE_SMALL, Product.SIZE_LARGE).protected java.lang.String getDescriptionFileContent(AdmProductDescriptionEdit.Context ctx, int size, boolean prune)
getDescriptionFileContent
in AdmProductDescriptionEdit
.getDescriptionFileContent
in class AdmProductDescriptionEdit
ctx
- (Context) The current servlet context.size
- (int) The size of the desired description file
(Product.SIZE_SMALL, Product.SIZE_LARGE).prune
- (boolean) true
if the content is to be pruned by
invoking the TemplatePruner
class to remove potentially
harmful html code.protected java.lang.String getDescriptionRootName(AdmProductDescriptionEdit.Context ctx, int size)
getDescriptionRootName
in AdmProductDescriptionEdit
.getDescriptionRootName
in class AdmProductDescriptionEdit
ctx
- (Context) The current servlet context.size
- (int) The size of the desired description root name
(Product.SIZE_SMALL, Product.SIZE_LARGE).protected Product getProductObject(AdmProductServlet.Context ctx)
getProductObject
in AdmProductServlet
.getProductObject
in class AdmProductServlet
ctx
- (Context) The current servlet context.protected boolean isDefaultCode(AdmProductDescriptionEdit.Context ctx)
isDefaultCode
in AdmProductDescriptionEdit
.isDefaultCode
in class AdmProductDescriptionEdit
ctx
- (Context) The current servlet context.true
if the product's code is "default",
otherwise false
.protected AdmProductDescriptionEdit.Context createContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
createContext
in AdmProductDescriptionEdit
.
Invoked by doPost
and doGet
methods.createContext
in class AdmProductDescriptionEdit
request
- (HttpServletRequest) The servlet's incoming request.response
- (HttpServletResponse) The servlet's outgoing response.