com.ibm.commerce.tools.reporting.commands
Class GenericReportControllerCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
              |
              +--com.ibm.commerce.tools.reporting.commands.GenericReportControllerCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, EReportConstants, GenericReportControllerCmd, Protectable, ToolsControllerCommand

public class GenericReportControllerCmdImpl
extends ToolsControllerCommandImpl
implements GenericReportControllerCmd, EReportConstants

This class implements the GenericReportControllerCmd interface to provide the controller command to redirect to the result panel for reports.


Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.tools.reporting.commands.GenericReportControllerCmd
COPYRIGHT, defaultCommandClassName, Name
 
Fields inherited from interface com.ibm.commerce.tools.command.ToolsControllerCommand
NAME
 
Fields inherited from interface com.ibm.commerce.tools.reporting.commands.EReportConstants
COPYRIGHT, DATEFORMINFO, DEFAULT_REPORT_BCT, ENDDAY, ENDMONTH, ENDTIME, ENDYEAR, ERROR_CREATE, FINISH_MESSAGE, LANG, LOCALE, MESSAGEVALUE, NUMBER_DAY, NUMBER_MONTH, NUMBER_WEEK, OFFREPORTDATEINFO, OFFREPORTTIMEINFO, OFFREPORTTYPEINFO, PARAMETER_KEYLIST, PARAMETER_REPORTXML, PARAMETER_REQUESTPROPERTIES, PARAMETER_VARPROPERTIES, PARAMETER_VIEW, REPORTING_RESOURCES, REPORTING_STRINGS, REPORTINPUTDATA, REPORTRESULTPAGE, REPORTTIMEINFO, REPORTTYPEINFO, STARTDAY, STARTMONTH, STARTTIME, STARTYEAR, STOREID, TIME, TYPE, URL_PREFIX, URL_REPORT_CONTENT_VIEW, URL_REPORT_ERROR_VIEW, URL_REPORT_FINISH_REDIRECT_VIEW, URL_REPORT_GENERIC_VIEW, URL_REPORT_REDIRECT_VIEW
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
GenericReportControllerCmdImpl()
           
 
Method Summary
 AccessVector getResources()
          Gets the access vector accessed by this command.
 void performExecute()
          Performs the execution of the command.
 void validateParameters()
          This is where parameter checking is done.
 
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties, setRequestProperties
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Constructor Detail

GenericReportControllerCmdImpl

public GenericReportControllerCmdImpl()
Method Detail

getResources

public AccessVector getResources()
                          throws ECException
Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.

Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
AccessVector - a vector of resource action pairs

performExecute

public void performExecute()
                    throws ECException
Performs the execution of the command. The command will take the parameters from the input JSP page for report and used the ReportRedirectView to redirect to the right JSP page for the output JSP. The input parameters are the REPORTINPUTDATA and REPORTRESULTPAGE contained in the vector generated by the Tools Framework. If the REPORTRESULTPAGE is null than we will used the generic report output view. The output JSP will contain the ReportDataBean used to generate the report.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ParameterNotFoundException -  

validateParameters

public void validateParameters()
                        throws ECException
This is where parameter checking is done.

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException. -