com.ibm.commerce.utf.commands
Class TradingEngineCreateCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
                          |
                          +--com.ibm.commerce.utf.commands.TradingEngineBaseCmdImpl
                                |
                                +--com.ibm.commerce.utf.commands.TradingEngineCreateCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ToolsControllerCommand, TradingEngineBaseCmd, TradingEngineCreateCmd

public class TradingEngineCreateCmdImpl
extends TradingEngineBaseCmdImpl
implements TradingEngineCreateCmd

This is the default implementation of the TradingEngineCreateCmd Command This command uses the following AccessBeans

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.commerce.utf.commands. TradingEngineBaseCmdImpl
enddate, endtime, endtimestamp, longdesc, maxoffer, multistage, name, ownerid, shortdesc, stageinfo, startdate, starttime, starttimestamp, statemachine
 
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.utf.commands. TradingEngineCreateCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Constructor Summary
TradingEngineCreateCmdImpl()
          Deprecated. CreateTradingProcessCmdImpl constructor comment.
 
Method Summary
 void doAcknowledgment()
          Deprecated. Composes and sends out the response to the browser.
 void performExecute()
          Deprecated. Creates the trading engine.
 void validateParameters()
          Deprecated. Validates parameters coming into the command. This method does the following: Calls the initParameters method that checks for the presence of mandatory parameters. Verifies that the provided name for the trading engine is not in use already. If start date and time and end date and time have been provided, checks if the start date and time are before the end date and time.
 
Methods inherited from class com.ibm.commerce.utf.commands. TradingEngineBaseCmdImpl
getEnddate, getEndtime, getEndtimestamp, getErrorContent, getErrorFlag, getLongdesc, getMaxoffer, getMultistage, getName, getOwnerid, getShortdesc, getStageinfo, getStartdate, getStarttime, getStarttimestamp, getStatemachine, getToolXMLObject, isErrorFlag, setEnddate, setEndDateFromUrl, setEndtime, setEndTimeFromUrl, setEndtimestamp, setErrorContent, setErrorFlag, setLongdesc, setLongDescriptionFromUrl, setMaxoffer, setMaxOfferFromUrl, setMultistage, setMultiStageFromUrl, setName, setNameFromUrl, setOwnerid, setRequestProperties, setShortdesc, setShortDescriptionFromUrl, setStageinfo, setStageInfoFromUrl, setStartdate, setStartDateFromUrl, setStarttime, setStartTimeFromUrl, setStarttimestamp, setStatemachine, setStateMachineFromUrl, setToolXMLObject
 
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl
getViewInputProperties
 
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.utf.commands. TradingEngineBaseCmd
setEndDateFromUrl, setEndTimeFromUrl, setLongDescriptionFromUrl, setMaxOfferFromUrl, setMultiStageFromUrl, setNameFromUrl, setShortDescriptionFromUrl, setStageInfoFromUrl, setStartDateFromUrl, setStartTimeFromUrl, setStateMachineFromUrl
 
Methods inherited from interface com.ibm.commerce.command. ControllerCommand
checkPermission, 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, getResourceOwners, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command. ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 

Constructor Detail

TradingEngineCreateCmdImpl

public TradingEngineCreateCmdImpl()
Deprecated. 
CreateTradingProcessCmdImpl constructor comment.
Method Detail

doAcknowledgment

public void doAcknowledgment()
Deprecated. 
Composes and sends out the response to the browser.

performExecute

public void performExecute()
                    throws ECException
Deprecated. 
Creates the trading engine. This method does the following:
  1. Creates a trading engine object.
  2. Creates the associated trading engine description object.
  3. Creates an extended engine object that contains the provided stage,round, algorithm information
  4. Calls the doAcknowledgment method to send back the response.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException.
ECException
See Also:
ECCommand#performExecute()

validateParameters

public void validateParameters()
                        throws ECException
Deprecated. 
Validates parameters coming into the command. This method does the following:
  1. Calls the initParameters method that checks for the presence of mandatory parameters.
  2. Verifies that the provided name for the trading engine is not in use already.
  3. If start date and time and end date and time have been provided, checks if the start date and time are before the end date and time.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECApplicationException -
  • If another trading engine with the given name already exists.
  • If the start date and time are after the end date and time.
ECException
See Also:
ECCommand#validateParameters()