com.ibm.commerce.messaging.commands
Class StoreTransCreateCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
              |
              +--com.ibm.commerce.messaging.commands.MessagingAdminCmd
                    |
                    +--com.ibm.commerce.messaging.commands.StoreTransCreateCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, StoreTransCreateCmd, ToolsControllerCommand

public class StoreTransCreateCmdImpl
extends MessagingAdminCmd
implements StoreTransCreateCmd

The default implementation of StoreTransCreateCmd.


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.messaging.commands.StoreTransCreateCmd
defaultCommandClassName, NAME
 
Constructor Summary
StoreTransCreateCmdImpl()
          SampleControllerCommandImpl constructor comment.
 
Method Summary
 AccessVector getResources()
          Get resources.
 boolean isGeneric()
          Check to see if this is a generic command.
 boolean isReadyToCallExecute()
          isReadyToCallExecute method
 boolean isRetriable()
          Check to see if this command is retriable on errors like rollback exception
 void performExecute()
          The business logic for this controller command.
 void validateParameters()
          ControllerCommandImpl calls checkParameter in performExecute.
 
Methods inherited from class com.ibm.commerce.messaging.commands.MessagingAdminCmd
createSuccessResponse, createSuccessResponseForDynamicList, getOptionalParameter, getOptionalParameter, getRequiredParameter, getRequiredParameter, throwException, throwException
 
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, 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, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, 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
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

StoreTransCreateCmdImpl

public StoreTransCreateCmdImpl()
SampleControllerCommandImpl constructor comment.
Method Detail

getResources

public AccessVector getResources()
                          throws ECException
Get resources. Creation date: (8/28/2001 6:04:14 PM)
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
com.ibm.commerce.accesscontrol.AccessVector

isGeneric

public boolean isGeneric()
Check to see if this is a generic command. A generic command can be called by a generic user. The default is false.
Specified by:
isGeneric in interface ControllerCommand
Overrides:
isGeneric in class ControllerCommandImpl
Returns:
boolean - true if this command can be called by a generic user - false if this command cannot be called by a generic user

isReadyToCallExecute

public boolean isReadyToCallExecute()
isReadyToCallExecute method
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Following copied from class: com.ibm.commerce.command.AbstractECTargetableCommand
Returns:
boolean - true if we can execute the command false if we canot execute the command

isRetriable

public boolean isRetriable()
Check to see if this command is retriable on errors like rollback exception
Specified by:
isRetriable in interface ControllerCommand
Overrides:
isRetriable in class ControllerCommandImpl
Returns:
boolean - true if this command is retriable - false if this command is not retriable

performExecute

public void performExecute()
                    throws ECException
The business logic for this controller command. For this default implementation we simply calls checkParameters. Command writers who overwrites this method should do a super() as the first line in their method if they want checkParameters to be called.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - The exception description.

validateParameters

public void validateParameters()
                        throws ECException
ControllerCommandImpl calls checkParameter in performExecute. It is the responsibility of the command writers to implements this method if they want to perform server side parameter checking. They should either calls checkParameters inside their performExecute or calls super.performExecute() as the first statement in the performExecute method.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
CommandException. -