com.ibm.commerce.tools.campaigns
Class CampaignCollateralDeleteCmdImpl

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

public class CampaignCollateralDeleteCmdImpl
extends TaskCommandImpl
implements CampaignCollateralDeleteCmd

This class implements the CampaignCollateralDeleteCmd interface to provide the task command that deletes collateral. Different implementations of this interface can be provided for different stores.

See Also:
Serialized Form

Field Summary
protected  java.lang.Integer _collateralId
          Collateral ID.
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.tools.campaigns. CampaignCollateralDeleteCmd
defaultCommandClassName, Name
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
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. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, 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
IBM copyright notice field.
See Also:
Constant Field Values

_collateralId

protected java.lang.Integer _collateralId
Collateral ID.
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 AbstractECTargetableCommand
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 AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand#performExecute()

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.