com.ibm.commerce.contract.commands
Class DeployContractCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.contract.commands.DeployContractCmdImpl
All Implemented Interfaces:
DeployContractCmd, ECCommand, ECTargetableCommand, TaskCommand

public class DeployContractCmdImpl
extends TaskCommandImpl
implements DeployContractCmd

The default implementation of the DeployContract command

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
          The name of this class is "com.ibm.commerce.contract.commands.DeployContractCmdImpl".
static java.lang.String COPYRIGHT
          The internal copyright field.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.contract.commands. DeployContractCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
DeployContractCmdImpl()
          The default constructor
 
Method Summary
 void performExecute()
          The business logic for this command.
 void setContractId(java.lang.Long newContractId)
          Sets the contract Id
 void setMaxContractNameLength(int maxLength)
          Sets the Maximum length of the contract name
 void setRequestProperties( TypedProperty aRequestProperties)
          Sets the requestProperties
 
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, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
The internal copyright field.
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
The name of this class is "com.ibm.commerce.contract.commands.DeployContractCmdImpl".
See Also:
Constant Field Values
Constructor Detail

DeployContractCmdImpl

public DeployContractCmdImpl()
The default constructor
Method Detail

performExecute

public void performExecute()
                    throws ECException
Description copied from class: AbstractECTargetableCommand
The business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
ECSystemException - Raised with message _ERR_FINDER_EXCEPTION whenever a FinderException is occured Raised with message _ERR_REMOTE_EXCEPTION whenever a RemoteException is occured Raised with message _ERR_NAMING_EXCEPTION whenever a NamingException is occured Raised with message _ERR_CREATE_EXCEPTION whenever a CreateException is occured Raised with message _ERR_SQL_EXCEPTION whenever a SQLException is occured Raised with message _ERR_PARSE_XML the contract xml cannot be parsed Raised with message _ERR_CONTRACT_CMD_EXEC whenever an error is occured
See Also:
AbstractECTargetableCommand.performExecute()

setContractId

public void setContractId(java.lang.Long newContractId)
Sets the contract Id
Parameters:
newContractId - new contract id

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperties)
                          throws ECApplicationException
Sets the requestProperties
Specified by:
setRequestProperties in interface DeployContractCmd
Parameters:
aRequestProperties - Request properties EC_CONTRACT_ID and EC_TARGET_STORE_ID are both required
Throws:
ECApplicationException - Raised with message _ERR_MISSING_CMD_PARAMETER if the contract id or target store id is not specified in the request properties
See Also:
com.ibm.commerce.command.TaskCommandImpl.setRequestProperties(TypedProperty)

setMaxContractNameLength

public void setMaxContractNameLength(int maxLength)
Sets the Maximum length of the contract name
Parameters:
maxLength - The maximum length allowed for the contract name