java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.tools.campaigns.CampaignCreateCmdImpl
This class implements the CampaignCreateCmd
interface to
provide the task command that creates a campaign. Different implementations of
this interface can be provided for different stores.
Field Summary | |
---|---|
protected
java.lang.String |
_campaignDescription Campaign description. |
protected
java.lang.String |
_campaignField1 Campaign custom field. |
protected
java.lang.Integer |
_campaignId Campaign ID. |
protected
java.lang.String |
_campaignName Campaign name. |
protected
java.lang.String |
_campaignObjective Campaign business objective. |
protected
java.lang.String |
_campaignOwner Campaign sponsor. |
protected
java.lang.String |
_campaignStatus Campaign status. |
protected
java.lang.Integer |
_campaignType Campaign type. |
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.tools.campaigns. CampaignCreateCmd |
defaultCommandClassName,
Name |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
CampaignCreateCmdImpl() |
Method Summary | |
---|---|
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. |
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
protected java.lang.Integer _campaignId
protected java.lang.String _campaignName
protected java.lang.String _campaignDescription
protected java.lang.String _campaignObjective
protected java.lang.String _campaignOwner
protected java.lang.Integer _campaignType
protected java.lang.String _campaignStatus
protected java.lang.String _campaignField1
Constructor Detail |
---|
public CampaignCreateCmdImpl()
Method Detail |
---|
public java.lang.Integer getCampaignId()
getCampaignId
in interface
CampaignCreateCmd
public boolean isReadyToCallExecute()
false
if the campaign name is null.
isReadyToCallExecute
in class
AbstractECTargetableCommand
true
if the command is ready to go.public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
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.