com.ibm.commerce.tools.campaigns
Class CampaignEmsCreateCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.tools.campaigns.CampaignEmsCreateCmdImpl
- All Implemented Interfaces:
- CampaignEmsCreateCmd, ECCommand, TaskCommand
- public class CampaignEmsCreateCmdImpl
- extends TaskCommandImpl
- implements CampaignEmsCreateCmd
The CampaignEmsCreateCmdImpl class implements the CampaignEmsCreateCmd interface to
provide the task command that creates 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. |
Method Summary |
java.lang.Integer |
getEmsId()
Returns the e-marketing spot ID of the newly created e-marketing spot. |
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 |
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 |
_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.
CampaignEmsCreateCmdImpl
public CampaignEmsCreateCmdImpl()
getEmsId
public java.lang.Integer getEmsId()
- Returns the e-marketing spot ID of the newly created e-marketing spot.
You must execute this task command before accessing this value.
- Specified by:
getEmsId
in interface CampaignEmsCreateCmd
- Returns:
- An integer of the e-marketing spot ID.
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Checks to see if the command is ready to call. This method will
return
false
if the e-marketing spot name 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 CampaignEmsCreateCmd
- Parameters:
description
- The description of the e-marketing spot.
setEmsName
public void setEmsName(java.lang.String name)
- Sets the e-marketing spot name.
- Specified by:
setEmsName
in interface CampaignEmsCreateCmd
- 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 CampaignEmsCreateCmd
- Parameters:
supportedTypes
- The supported types of the e-marketing spot.