Class ProductsExportAction
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.ProductsExportAction
Struts Action class that gets invoked when user exports products. This
extends CommonExportAction class. This class overrides the
"buildFileRowColumnData" method, so that custom rowColumn data can be pulled
from Product object. Product is Hibernate object, hence some data can be
accessed lazily.
- Author:
- Ashish Jain
-
Field Summary
Fields inherited from class org.apache.struts.action.Action
servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
buildFileRowColumnData
(String headerStr, BusinessObject businessObject) This overriding method populates "primaryCategoryCode" and "manufacturerCode" from Product Object, as these can't be accessed by BeanUtils.getProperty(..)private String
findProductCategoryCode
(Product product, String headerStr) Methods inherited from class com.softslate.commerce.administrator.importexport.CommonExportAction
buildFileData, 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
-
ProductsExportAction
public ProductsExportAction()
-
-
Method Details
-
buildFileRowColumnData
protected String buildFileRowColumnData(String headerStr, BusinessObject businessObject) throws IllegalAccessException, InvocationTargetException This overriding method populates "primaryCategoryCode" and "manufacturerCode" from Product Object, as these can't be accessed by BeanUtils.getProperty(..)- Overrides:
buildFileRowColumnData
in classCommonExportAction
- Parameters:
headerStr
-businessObject
-- Throws:
IllegalAccessException
InvocationTargetException
NoSuchMethodException
-
findProductCategoryCode
-