com.ibm.commerce.tools.campaigns
Class CampaignInitiativeDisableCmdImpl

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

public class CampaignInitiativeDisableCmdImpl
extends TaskCommandImpl
implements CampaignInitiativeDisableCmd

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


Field Summary
protected  java.lang.Integer _initiativeId
          Campaign initiative ID.
protected  java.lang.String _initiativeStatus
          Campaign initiative status.
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.CampaignInitiativeDisableCmd
defaultCommandClassName, Name
 
Constructor Summary
CampaignInitiativeDisableCmdImpl()
           
 
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 id)
          Sets the campaign initiative ID.
 void setInitiativeStatus(java.lang.String status)
          Sets the campaign initiative status.
 
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.

_initiativeStatus

protected java.lang.String _initiativeStatus
Campaign initiative status.

COPYRIGHT

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

CampaignInitiativeDisableCmdImpl

public CampaignInitiativeDisableCmdImpl()
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 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.