com.softslate.commerce.administrator.importexport
Class FroogleProcessAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.softslate.commerce.customer.core.BaseAction
          extended by com.softslate.commerce.administrator.importexport.CommonExportAction
              extended by com.softslate.commerce.administrator.importexport.FroogleProcessActionTabDelim
                  extended by com.softslate.commerce.administrator.importexport.FroogleProcessAction

public class FroogleProcessAction
extends FroogleProcessActionTabDelim

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
(package private) static org.apache.commons.logging.Log log
           
 
Fields inherited from class com.softslate.commerce.administrator.importexport.FroogleProcessActionTabDelim
threadLocal
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
FroogleProcessAction()
           
 
Method Summary
 int doProducts(java.util.Collection products, org.w3c.dom.Document d, org.w3c.dom.Element channel, FroogleForm baseForm)
           
 java.lang.String escapeXML(java.lang.String text)
           
 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)
           
 java.lang.String formatForNull(java.lang.String input)
           
 java.lang.String lookupManufacturerName(java.lang.Integer manufacturerID, java.util.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

FroogleProcessAction

public FroogleProcessAction()
Method Detail

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 java.lang.Exception
Overrides:
execute in class FroogleProcessActionTabDelim
Throws:
java.lang.Exception

doProducts

public int doProducts(java.util.Collection products,
                      org.w3c.dom.Document d,
                      org.w3c.dom.Element channel,
                      FroogleForm baseForm)

escapeXML

public java.lang.String escapeXML(java.lang.String text)
Overrides:
escapeXML in class FroogleProcessActionTabDelim

formatForNull

public java.lang.String formatForNull(java.lang.String input)
Overrides:
formatForNull in class FroogleProcessActionTabDelim

lookupManufacturerName

public java.lang.String lookupManufacturerName(java.lang.Integer manufacturerID,
                                               java.util.Collection manufacturers)
Overrides:
lookupManufacturerName in class FroogleProcessActionTabDelim


Copyright © SoftSlate, LLC 2003–2010