com.ibm.commerce.tools.campaigns
Class CampaignDeleteCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.tools.campaigns.CampaignDeleteCmdImpl
- All Implemented Interfaces:
- CampaignDeleteCmd, ECCommand, TaskCommand
- public class CampaignDeleteCmdImpl
- extends TaskCommandImpl
- implements CampaignDeleteCmd
The CampaignDeleteCmdImpl class implements the CampaignDeleteCmd interface to
provide the task command that deletes campaigns.
Different implementations of this interface
can be provided for different stores.
Field Summary |
protected java.lang.Integer |
_campaignId
Campaign ID. |
static java.lang.String |
COPYRIGHT
Copyright. |
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 |
_campaignId
protected java.lang.Integer _campaignId
- Campaign ID.
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright.
CampaignDeleteCmdImpl
public CampaignDeleteCmdImpl()
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Checks to see if the command is ready to call. This method will
return
false
if the campaign 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.
setCampaignId
public void setCampaignId(java.lang.Integer campaignId)
- Sets the campaign ID. This parameter is required.
- Specified by:
setCampaignId
in interface CampaignDeleteCmd
- Parameters:
campaignId
- The ID of the campaign to be deleted.