com.ibm.commerce.tools.campaigns
Class CampaignCollateralDeleteCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.tools.campaigns.CampaignCollateralDeleteCmdImpl
All Implemented Interfaces:
CampaignCollateralDeleteCmd, ECCommand, TaskCommand

public class CampaignCollateralDeleteCmdImpl
extends TaskCommandImpl
implements CampaignCollateralDeleteCmd

The CampaignCollateralDeleteCmdImpl class implements the CampaignCollateralDeleteCmd interface to provide the task command that deletes e-marketing spots. Different implementations of this interface can be provided for different stores.


Field Summary
protected  java.lang.Integer _collateralId
          Collateral ID.
static java.lang.String COPYRIGHT
          Copyright.
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.tools.campaigns.CampaignCollateralDeleteCmd
defaultCommandClassName, Name
 
Constructor Summary
CampaignCollateralDeleteCmdImpl()
           
 
Method Summary
 boolean isReadyToCallExecute()
          Checks to see if the command is ready to call.
 void performExecute()
          Performs the execution of the command.
 void setCollateralId(java.lang.Integer collateralId)
          Sets the collateral ID.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

_collateralId

protected java.lang.Integer _collateralId
Collateral ID.

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.
Constructor Detail

CampaignCollateralDeleteCmdImpl

public CampaignCollateralDeleteCmdImpl()
Method Detail

isReadyToCallExecute

public boolean isReadyToCallExecute()
Checks to see if the command is ready to call. This method will return false if the collateral ID is null.
Overrides:
isReadyToCallExecute in class AbstractECCommand
Returns:
true if the command is ready to go.

performExecute

public void performExecute()
                    throws ECException
Performs the execution of the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setCollateralId

public void setCollateralId(java.lang.Integer collateralId)
Sets the collateral ID. This parameter is required.
Specified by:
setCollateralId in interface CampaignCollateralDeleteCmd
Parameters:
collateralId - The ID of the collateral to be deleted.