com.ibm.commerce.tools.optools.order.commands
Class CSRBaseControllerCommandImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
              |
              +--com.ibm.commerce.tools.optools.order.commands.CSRBaseControllerCommandImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand
Direct Known Subclasses:
CSROrderItemDeleteCmdImpl, CSROrderPrepareCmdImpl, CSROrderProcessCmdImpl, CSRReturnBaseCmdImpl

public class CSRBaseControllerCommandImpl
extends ToolsControllerCommandImpl

 This class contain some basic functionality which some of the Place Order wizard and Change Order notebook within the WebSphere Commerce Accelerator related class can extend from this class.
 


Field Summary
static java.lang.String COPYRIGHT
           
 
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.command.ToolsControllerCommand
NAME
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
Constructor Summary
CSRBaseControllerCommandImpl()
          The constructor for CSRBaseControllerCommandImpl.
 
Method Summary
protected  void callPreCommands(TypedProperty property, CommandContext tempCmdContext)
          Execute each pre commands one by one if the pre command chains exist.
protected  java.lang.String findCmdInterfaceName(java.lang.Integer storeId, java.lang.String cmdURLName)
          Find the command interface name for the given store ID and command URL name.
 boolean getIfExePreCmdChains()
          Return if there is a list of pre commands need to be executed.
 java.util.Vector getPreCmdChain()
          Return the list of pre commands.
 void setIfExePreCmdChains(boolean newIfExePreCmdChains)
          Set the flag to indicate if there is a list of pre commands need to be executed.
 void setPreCmdChain(java.util.Vector newPreCmdChain)
          Set the list of pre commands.
 void validateParameters()
          Validate the input parameters of the command.
 
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, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setGeneric, 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, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

CSRBaseControllerCommandImpl

public CSRBaseControllerCommandImpl()
The constructor for CSRBaseControllerCommandImpl.
Method Detail

callPreCommands

protected void callPreCommands(TypedProperty property,
                               CommandContext tempCmdContext)
                        throws ECException
Execute each pre commands one by one if the pre command chains exist.
Parameters:
property - The request properties.
tempCmdContext - The command context.
Throws:
ECException -  

findCmdInterfaceName

protected java.lang.String findCmdInterfaceName(java.lang.Integer storeId,
                                                java.lang.String cmdURLName)
                                         throws ECException,
                                                javax.ejb.FinderException
Find the command interface name for the given store ID and command URL name.
Parameters:
storeId - The ID of the store.
cmdURLName - The command URL name.
Throws:
ECException -  
javax.ejb.FinderException -  

getIfExePreCmdChains

public boolean getIfExePreCmdChains()
Return if there is a list of pre commands need to be executed.
Returns:
true if there is a list of pre commands need to be executed.

getPreCmdChain

public java.util.Vector getPreCmdChain()
Return the list of pre commands.

setIfExePreCmdChains

public void setIfExePreCmdChains(boolean newIfExePreCmdChains)
Set the flag to indicate if there is a list of pre commands need to be executed.
Parameters:
newIfExePreCmdChains - The flag to indicate if there is a list of pre commands need to be executed.

setPreCmdChain

public void setPreCmdChain(java.util.Vector newPreCmdChain)
Set the list of pre commands.
Parameters:
newPreCmdChain - The list of pre commands.

validateParameters

public void validateParameters()
                        throws ECApplicationException
Validate the input parameters of the command.
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECApplicationException -