public class CampaignInitiativeDisableCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements CampaignInitiativeDisableCmd
CampaignInitiativeDisableCmd
interface to provide the task
command that disables a campaign initiative. Different implementations of this interface can be
provided for different stores.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, Name
Constructor and Description |
---|
CampaignInitiativeDisableCmdImpl() |
Modifier and Type | Method and Description |
---|---|
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 id)
Sets the campaign initiative ID.
|
void |
setInitiativeStatus(java.lang.String status)
Sets the campaign initiative status.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public boolean isReadyToCallExecute()
false
if the campaign initiative ID is null.isReadyToCallExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
true
if the command is ready to go.public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
ECCommand#performExecute()
public void setInitiativeId(java.lang.Integer id)
setInitiativeId
in interface CampaignInitiativeDisableCmd
id
- The ID of the campaign initiative to be deleted.public void setInitiativeStatus(java.lang.String status)
setInitiativeStatus
in interface CampaignInitiativeDisableCmd
status
- The status of the campaign initiative to be resumed/suspended.