com.ibm.commerce.tools.campaigns
Class CampaignInitiativeDisableCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.tools.campaigns.CampaignInitiativeDisableCmdImpl
- All Implemented Interfaces:
-
CampaignInitiativeDisableCmd,
ECCommand,
ECTargetableCommand,
TaskCommand
- public class CampaignInitiativeDisableCmdImpl
- extends
TaskCommandImpl
- implements
CampaignInitiativeDisableCmd
This class implements the CampaignInitiativeDisableCmd
interface to provide the task command that disables a campaign initiative.
Different implementations of this interface can be provided for different
stores.
- See Also:
- Serialized
Form
Field Summary |
protected
java.lang.Integer |
_initiativeId
Campaign initiative ID. |
protected
java.lang.String |
_initiativeStatus
Campaign initiative status. |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
-
Constant Field Values
_initiativeId
protected java.lang.Integer _initiativeId
- Campaign initiative ID.
_initiativeStatus
protected java.lang.String _initiativeStatus
- Campaign initiative status.
CampaignInitiativeDisableCmdImpl
public CampaignInitiativeDisableCmdImpl()
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
AbstractECTargetableCommand
-
- Returns:
true
if the command is ready to go.
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()
setInitiativeId
public void setInitiativeId(java.lang.Integer id)
- Sets the campaign initiative ID. This parameter is required.
-
- Specified by:
-
setInitiativeId
in interface
CampaignInitiativeDisableCmd
-
- Parameters:
id
- The ID of the campaign initiative to be
deleted.
setInitiativeStatus
public void setInitiativeStatus(java.lang.String status)
- Sets the campaign initiative status.
-
- Specified by:
-
setInitiativeStatus
in interface
CampaignInitiativeDisableCmd
-
- Parameters:
status
- The status of the campaign initiative to be
resumed/suspended.