|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.tools.campaigns.CampaignCreateCmdImpl
The CampaignCreateCmdImpl 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
Copyright. |
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.tools.campaigns.CampaignCreateCmd |
defaultCommandClassName, Name |
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.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 |
protected java.lang.String _campaignDescription
protected java.lang.String _campaignField1
protected java.lang.Integer _campaignId
protected java.lang.String _campaignName
protected java.lang.String _campaignObjective
protected java.lang.String _campaignOwner
protected java.lang.String _campaignStatus
protected java.lang.Integer _campaignType
public static final java.lang.String COPYRIGHT
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 AbstractECCommand
true
if the command is ready to go.public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |