Class FroogleProcessAction
java.lang.Object
org.apache.struts.action.Action
com.softslate.commerce.customer.core.BaseAction
com.softslate.commerce.administrator.importexport.CommonExportAction
com.softslate.commerce.administrator.importexport.FroogleProcessActionTabDelim
com.softslate.commerce.administrator.importexport.FroogleProcessAction
Struts action class that corresponds to the processing of the Froogle export.
Used for requests to "/administrator/FroogleProcess.do".
The execute
method of this class populates a
ProductListBean
named productList
in the request
scope containing all the active products. Next, it sets the response header
in such a way that the browser will prompt the user to open or download the
response as a file.
- Author:
- David Tobey
-
Field Summary
Fields inherited from class com.softslate.commerce.administrator.importexport.FroogleProcessActionTabDelim
threadLocal
Fields inherited from class org.apache.struts.action.Action
servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
doProducts
(Collection products, Document d, Element channel, FroogleForm baseForm) org.apache.struts.action.ActionForward
execute
(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) formatForNull
(String input) lookupManufacturerName
(Integer manufacturerID, Collection manufacturers) Methods inherited from class com.softslate.commerce.administrator.importexport.FroogleProcessActionTabDelim
buildFileRowColumnData, buildHeader
Methods inherited from class com.softslate.commerce.administrator.importexport.CommonExportAction
buildFileData, eliminateDuplicateRows
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
FroogleProcessAction
public FroogleProcessAction()
-
-
Method Details
-
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Overrides:
execute
in classFroogleProcessActionTabDelim
- Throws:
Exception
-
doProducts
-
escapeXML
- Overrides:
escapeXML
in classFroogleProcessActionTabDelim
-
formatForNull
- Overrides:
formatForNull
in classFroogleProcessActionTabDelim
-
lookupManufacturerName
- Overrides:
lookupManufacturerName
in classFroogleProcessActionTabDelim
-