public class CampaignCreateCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements CampaignCreateCmd
CampaignCreateCmd
interface to provide the task command
that creates a campaign. Different implementations of this interface can be provided for
different stores.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, Name
Constructor and Description |
---|
CampaignCreateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getCampaignId()
Returns the campaign ID of the newly created campaign.
|
boolean |
isReadyToCallExecute()
Checks to see if the command is ready to call.
|
void |
performExecute()
Performs the execution of the command.
|
void |
setCampaignDescription(java.lang.String description)
Sets the campaign description.
|
void |
setCampaignField1(java.lang.String field1)
Sets the campaign custom field.
|
void |
setCampaignName(java.lang.String name)
Sets the campaign name.
|
void |
setCampaignObjective(java.lang.String objective)
Sets the campaign business objective.
|
void |
setCampaignOwner(java.lang.String owner)
Sets the campaign sponsor.
|
void |
setCampaignStatus(java.lang.String status)
Sets the campaign status.
|
void |
setCampaignType(java.lang.Integer type)
Sets the campaign type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public java.lang.Integer getCampaignId()
getCampaignId
in interface CampaignCreateCmd
public boolean isReadyToCallExecute()
false
if the campaign name is null.isReadyToCallExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
true
if the command is ready to go.public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
ECCommand#performExecute()
public void setCampaignDescription(java.lang.String description)
setCampaignDescription
in interface CampaignCreateCmd
description
- The description of the campaign.public void setCampaignField1(java.lang.String field1)
setCampaignField1
in interface CampaignCreateCmd
field1
- The custom field of the campaign.public void setCampaignName(java.lang.String name)
setCampaignName
in interface CampaignCreateCmd
name
- The name of the campaign.public void setCampaignObjective(java.lang.String objective)
setCampaignObjective
in interface CampaignCreateCmd
objective
- The business objective of the campaign.public void setCampaignOwner(java.lang.String owner)
setCampaignOwner
in interface CampaignCreateCmd
owner
- The sponsor of the campaign.public void setCampaignStatus(java.lang.String status)
setCampaignStatus
in interface CampaignCreateCmd
status
- The status of the campaign.public void setCampaignType(java.lang.Integer type)
setCampaignType
in interface CampaignCreateCmd
type
- The type of the campaign.