Class OrdersExportAction
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.OrdersExportAction
Struts Action class that gets invoked when user exports orders. This class
extends CommonExportAction class. It overrides the "buildFileData" method to
prevent duplicate records from appearing in the order export. Because the
order export queries multiple database tables, duplicate records are possible
if not all fields are being exported.
- Author:
- David Tobey
-
Field Summary
Fields inherited from class org.apache.struts.action.Action
servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[][]
buildFileData
(String[] headerStr, Collection businessObjects, boolean includeHeader) This overriding method eliminates duplicate records from the data being exported.Methods inherited from class com.softslate.commerce.administrator.importexport.CommonExportAction
buildFileRowColumnData, buildHeader, eliminateDuplicateRows, execute
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
-
OrdersExportAction
public OrdersExportAction()
-
-
Method Details
-
buildFileData
public String[][] buildFileData(String[] headerStr, Collection businessObjects, boolean includeHeader) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException This overriding method eliminates duplicate records from the data being exported.- Overrides:
buildFileData
in classCommonExportAction
- Throws:
IllegalAccessException
InvocationTargetException
NoSuchMethodException
-