com.ibm.commerce.tools.campaigns
Class CampaignInitiativeDeleteCmdImpl

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

public class CampaignInitiativeDeleteCmdImpl
extends TaskCommandImpl
implements CampaignInitiativeDeleteCmd

The CampaignInitiativeDeleteCmdImpl class implements the CampaignInitiativeDeleteCmd interface to provide the task command that deletes a campaign initiative. Different implementations of this interface can be provided for different stores.


Field Summary
protected  java.lang.Integer _initiativeId
          Campaign initiative 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.CampaignInitiativeDeleteCmd
defaultCommandClassName, Name
 
Constructor Summary
CampaignInitiativeDeleteCmdImpl()
           
 
Method Summary
 boolean isReadyToCallExecute()
          Checks to see if the command is ready to call.
 void performExecute()
          Performs the execution of the command.
 void setInitiativeId(java.lang.Integer initiativeId)
          Sets the campaign initiative 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

_initiativeId

protected java.lang.Integer _initiativeId
Campaign initiative ID.

COPYRIGHT

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

CampaignInitiativeDeleteCmdImpl

public CampaignInitiativeDeleteCmdImpl()
Method Detail

isReadyToCallExecute

public boolean isReadyToCallExecute()
Checks to see if the command is ready to call. This method will return false if the campaign initiative 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.

setInitiativeId

public void setInitiativeId(java.lang.Integer initiativeId)
Sets the campaign initiative ID. This parameter is required.
Specified by:
setInitiativeId in interface CampaignInitiativeDeleteCmd
Parameters:
initiativeId - The ID of the campaign initiative to be deleted.