java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.tools.campaigns.CampaignInitiativeCreateCmdImpl
This class implements the CampaignInitiativeCreateCmd
interface
to provide the task command that creates a campaign initiative. Different
implementations of this interface can be provided for different stores.
Field Summary | |
---|---|
protected
java.lang.Integer |
_initiativeCampaignId Campaign ID of the initiative. |
protected
java.lang.String |
_initiativeDescription Campaign initiative description. |
protected
java.lang.String |
_initiativeField1 Campaign initiative custom field. |
protected
java.lang.Integer |
_initiativeId Campaign initiative ID. |
protected
java.lang.String |
_initiativeName Campaign initiative name. |
protected
java.lang.String |
_initiativeResultType Campaign initiative result type. |
protected
java.lang.String |
_initiativeRule Campaign initiative rule. |
protected
java.util.Vector |
_initiativeSegments Campaign initiative segments. |
protected
java.lang.Integer |
_initiativeSellType Campaign initiative sell type. |
protected
java.lang.String |
_initiativeStatus Campaign initiative status. |
protected
java.lang.Integer |
_initiativeType Campaign initiative 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. CampaignInitiativeCreateCmd |
defaultCommandClassName,
Name |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
CampaignInitiativeCreateCmdImpl() |
Method Summary | |
---|---|
java.lang.Integer |
getInitiativeId() Returns the campaign initiative ID of the newly created campaign initiative. |
boolean |
isReadyToCallExecute() Checks to see if the command is ready to call. |
void |
performExecute() Performs the execution of the command. |
void |
setInitiativeCampaignId(java.lang.Integer campaignId) Sets the campaign ID of the initiative. |
void |
setInitiativeDescription(java.lang.String description) Sets the campaign initiative description. |
void |
setInitiativeField1(java.lang.String field1) Sets the campaign initiative custom field. |
void |
setInitiativeName(java.lang.String name) Sets the campaign initiative name. |
void |
setInitiativeResultType(java.lang.String resultType) Sets the campaign initiative result type. |
void |
setInitiativeRule(java.lang.String rule) Sets the campaign initiative rule. |
void |
setInitiativeSegments(java.util.Vector segments) Sets the campaign initiative segments. |
void |
setInitiativeSellType(java.lang.Integer sellType) Sets the campaign initiative sell type. |
void |
setInitiativeStatus(java.lang.String status) Sets the campaign initiative status. |
void |
setInitiativeType(java.lang.Integer type) Sets the campaign initiative 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 _initiativeId
protected java.lang.String _initiativeName
protected java.lang.String _initiativeDescription
protected java.lang.Integer _initiativeCampaignId
protected java.lang.Integer _initiativeType
protected java.lang.String _initiativeStatus
protected java.lang.String _initiativeField1
protected java.lang.String _initiativeRule
protected java.util.Vector _initiativeSegments
protected java.lang.Integer _initiativeSellType
protected java.lang.String _initiativeResultType
Constructor Detail |
---|
public CampaignInitiativeCreateCmdImpl()
Method Detail |
---|
public java.lang.Integer getInitiativeId()
getInitiativeId
in interface
CampaignInitiativeCreateCmd
public boolean isReadyToCallExecute()
false
if the campaign initiative 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 setInitiativeCampaignId(java.lang.Integer campaignId)
setInitiativeCampaignId
in interface
CampaignInitiativeCreateCmd
campaignId
- The campaign ID of the
initiative.public void setInitiativeDescription(java.lang.String description)
setInitiativeDescription
in interface
CampaignInitiativeCreateCmd
description
- The description of the campaign
initiative.public void setInitiativeField1(java.lang.String field1)
setInitiativeField1
in interface
CampaignInitiativeCreateCmd
field1
- The custom field of the campaign
initiative.public void setInitiativeName(java.lang.String name)
setInitiativeName
in interface
CampaignInitiativeCreateCmd
name
- The name of the campaign
initiative.public void setInitiativeResultType(java.lang.String resultType)
setInitiativeResultType
in interface
CampaignInitiativeCreateCmd
resultType
- The result type of the campaign
initiative.public void setInitiativeRule(java.lang.String rule)
setInitiativeRule
in interface
CampaignInitiativeCreateCmd
rule
- The rule of the campaign
initiative.public void setInitiativeSegments(java.util.Vector segments)
setInitiativeSegments
in interface
CampaignInitiativeCreateCmd
segments
- The segments of the campaign
initiative.public void setInitiativeSellType(java.lang.Integer sellType)
setInitiativeSellType
in interface
CampaignInitiativeCreateCmd
sellType
- The sell type of the campaign
initiative.public void setInitiativeStatus(java.lang.String status)
setInitiativeStatus
in interface
CampaignInitiativeCreateCmd
status
- The status of the campaign
initiative.public void setInitiativeType(java.lang.Integer type)
setInitiativeType
in interface
CampaignInitiativeCreateCmd
type
- The type of the campaign
initiative.