com.ibm.commerce.emarketing.commands
Class EmailPromotionDeleteTaskCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.emarketing.commands.EmailPromotionDeleteTaskCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, EmailPromotionDeleteTaskCmd, TaskCommand

public class EmailPromotionDeleteTaskCmdImpl
extends TaskCommandImpl
implements EmailPromotionDeleteTaskCmd

The EmailPromotionDeleteCmdImpl class implements the EmailPromotionDeleteCmd interface to provide the task command that deletes e-mail promotions.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.emarketing.commands. EmailPromotionDeleteTaskCmd
defaultCommandClassName
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
EmailPromotionDeleteTaskCmdImpl()
           
 
Method Summary
 boolean isReadyToCallExecute()
          Checks to see if the command is ready to call.
 void performExecute()
          Performs the execution of the command.
 void setEmailPromotionId(java.lang.Integer argEmailPromotionId)
          Sets the e-mail promotion ID.
 
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
 

Field Detail
public static final java.lang.String COPYRIGHT
Copyright.
See Also:
Constant Field Values
Constructor Detail

EmailPromotionDeleteTaskCmdImpl

public EmailPromotionDeleteTaskCmdImpl()
Method Detail

isReadyToCallExecute

public boolean isReadyToCallExecute()
Checks to see if the command is ready to call. This method will return false if the e-mail campaign ID is null.
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Returns:
true if an e-mail promotion ID has been passed to the command; false otherwise.

performExecute

public void performExecute()
                    throws ECException
Performs the execution of the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - Thrown when EmailPromotionAccessBean cannot delete the e-mail promotion entry successfully.

setEmailPromotionId

public void setEmailPromotionId(java.lang.Integer argEmailPromotionId)
Sets the e-mail promotion ID. This parameter is required.
Specified by:
setEmailPromotionId in interface EmailPromotionDeleteTaskCmd