com.softslate.commerce.administrator.importexport
Class ProductsExportAction

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.ProductsExportAction

public class ProductsExportAction
extends CommonExportAction

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
(package private) static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
ProductsExportAction()
           
 
Method Summary
protected  java.lang.String buildFileRowColumnData(java.lang.String headerStr, BusinessObject businessObject)
          This overriding method populates "primaryCategoryCode" and "manufacturerCode" from Product Object, as these can't be accessed by BeanUtils.getProperty(..)
 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 com.softslate.commerce.administrator.importexport.CommonExportAction
buildFileData, buildHeader, generateOutput, writeToOutput
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, 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

ProductsExportAction

public ProductsExportAction()
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 CommonExportAction
Throws:
java.lang.Exception

buildFileRowColumnData

protected java.lang.String buildFileRowColumnData(java.lang.String headerStr,
                                                  BusinessObject businessObject)
                                           throws java.lang.IllegalAccessException,
                                                  java.lang.reflect.InvocationTargetException
This overriding method populates "primaryCategoryCode" and "manufacturerCode" from Product Object, as these can't be accessed by BeanUtils.getProperty(..)

Overrides:
buildFileRowColumnData in class CommonExportAction
Parameters:
headerStr -
businessObject -
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException


Copyright ? SoftSlate, LLC 2003?2005