com.ibm.commerce.tools.campaigns
Class CampaignEmsUpdateCmdImpl

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

public class CampaignEmsUpdateCmdImpl
extends TaskCommandImpl
implements CampaignEmsUpdateCmd

The CampaignEmsUpdateCmdImpl class implements the CampaignEmsUpdateCmd interface to provide the task command that updates a e-marketing spot. Different implementations of this interface can be provided for different stores.


Field Summary
protected  java.lang.String _emsDescription
          e-Marketing spot description.
protected  java.lang.Integer _emsId
          e-Marketing spot ID.
protected  java.lang.String _emsName
          e-Marketing spot name.
protected  java.lang.String _supportedTypes
          e-Marketing spot supported types.
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.CampaignEmsUpdateCmd
defaultCommandClassName, Name
 
Constructor Summary
CampaignEmsUpdateCmdImpl()
           
 
Method Summary
 boolean isReadyToCallExecute()
          Checks to see if the command is ready to call.
 void performExecute()
          Performs the execution of the command.
 void setEmsDescription(java.lang.String description)
          Sets the e-marketing spot description.
 void setEmsId(java.lang.Integer id)
          Sets the e-marketing spot ID.
 void setEmsName(java.lang.String name)
          Sets the e-marketing spot name.
 void setSupportedTypes(java.lang.String supportedTypes)
          Sets the e-marketing spot supported types.
 
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

_emsDescription

protected java.lang.String _emsDescription
e-Marketing spot description.

_emsId

protected java.lang.Integer _emsId
e-Marketing spot ID.

_emsName

protected java.lang.String _emsName
e-Marketing spot name.

_supportedTypes

protected java.lang.String _supportedTypes
e-Marketing spot supported types.

COPYRIGHT

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

CampaignEmsUpdateCmdImpl

public CampaignEmsUpdateCmdImpl()
Method Detail

isReadyToCallExecute

public boolean isReadyToCallExecute()
Checks to see if the command is ready to call. This method will return false if the e-marketing spot 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.

setEmsDescription

public void setEmsDescription(java.lang.String description)
Sets the e-marketing spot description.
Specified by:
setEmsDescription in interface CampaignEmsUpdateCmd
Parameters:
description - The description of the e-marketing spot.

setEmsId

public void setEmsId(java.lang.Integer id)
Sets the e-marketing spot ID.
Specified by:
setEmsId in interface CampaignEmsUpdateCmd
Parameters:
id - The ID of the e-marketing spot.

setEmsName

public void setEmsName(java.lang.String name)
Sets the e-marketing spot name.
Specified by:
setEmsName in interface CampaignEmsUpdateCmd
Parameters:
name - The name of the e-marketing spot.

setSupportedTypes

public void setSupportedTypes(java.lang.String supportedTypes)
Sets the e-marketing spot supported types.
Specified by:
setSupportedTypes in interface CampaignEmsUpdateCmd
Parameters:
supportedTypes - The supported types of the e-marketing spot.