Class CommonExportAction
java.lang.Object
org.apache.struts.action.Action
com.softslate.commerce.customer.core.BaseAction
com.softslate.commerce.administrator.importexport.CommonExportAction
- Direct Known Subclasses:
BasicTaxRatesExportAction
,CategoriesExportAction
,FroogleProcessActionTabDelim
,OptionsExportAction
,OrdersExportAction
,ProductSettingExportAction
,ProductsExportAction
,SKUsExportAction
Action class corresponding to the common text file exports (for attributes
and categories). Also base class for ProductsExport and OptionsExport.
- Author:
- Ashish Jain, David Tobey
-
Field Summary
Fields inherited from class org.apache.struts.action.Action
servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String[][]
buildFileData
(String[] headerStr, Collection businessObjects, boolean includeHeader) protected String
buildFileRowColumnData
(String headerStr, BusinessObject businessObject) protected String[]
buildHeader
(ExportForm baseForm) String[][]
eliminateDuplicateRows
(String[][] data) 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) 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
-
CommonExportAction
public CommonExportAction()
-
-
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 classorg.apache.struts.action.Action
- Throws:
Exception
-
buildHeader
-
buildFileData
protected String[][] buildFileData(String[] headerStr, Collection businessObjects, boolean includeHeader) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException -
buildFileRowColumnData
protected String buildFileRowColumnData(String headerStr, BusinessObject businessObject) throws IllegalAccessException, InvocationTargetException -
eliminateDuplicateRows
-