java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.tools.campaigns.CampaignInitiativeSaveControllerCmdImpl
This class implements the CampaignInitiativeSaveControllerCmd
interface to provide the controller command that saves a campaign initiative.
Different implementations of this interface can be provided for different
stores. This controller command is mapped to the CampaignInitiativeSave
URL.
Field Summary | |
---|---|
protected
SimpleCondition.Qualifier |
_currencyQualifier An instance of SimpleCondition.Qualifier which is
generated using the supplied currencies. |
protected
java.lang.String |
_error Contains the error condition detected by this controller command. |
protected
boolean |
_forceSave This flag indicates that the controller command should try to force the save. |
protected
CampaignInitiativeDetailsDataBean |
_initiative An instance of CampaignInitiativeDetailsDataBean . |
protected
java.lang.Integer |
_initiativeId Campaign initiative ID. |
protected
java.lang.String |
_initiativeRule XML document that describes the initiative rule. |
protected
java.util.Vector |
_initiativeSegments A vector of campaign initiative segments. |
protected
SimpleCondition.Qualifier |
_languageQualifier An instance of SimpleCondition.Qualifier which is
generated using the given languages. |
protected
boolean |
_newInitiative This flag indicates that the controller command should do a create or an update. |
protected
java.lang.String |
_responseViewTaskName The view task name from the response. |
protected
java.lang.String |
_resulttype Campaign initiative result type. |
protected
java.lang.String |
_xmlFile XML document that describes the campaign initiative. |
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.tools.campaigns. CampaignInitiativeSaveControllerCmd |
defaultCommandClassName |
Fields inherited from interface com.ibm.commerce.tools.command. ToolsControllerCommand |
NAME |
Fields inherited from interface com.ibm.commerce.tools.common. ECToolsConstants |
EC_LINE_SEPARATOR,
EC_TOOLS_FULFILLMENT_CENTER_ID,
EC_TOOLS_MERCHANT_CENTER_URL,
EC_TOOLS_STORE_LANGUAGE_URL,
EC_TOOLS_STORES_ACCESS_CONTROL_REQUIRED,
EC_TOOLS_STORES_EMPTY,
EC_TOOLS_STORES_NO_ACCESS,
EC_TOOLS_STORES_NOT_ADMINISTRATOR,
EC_XML,
EC_XMLFILE,
EC_XMLFILEOBJECT,
EC_XMLOBJECT,
EC_XMLSTRING |
Constructor Summary | |
---|---|
CampaignInitiativeSaveControllerCmdImpl() |
Method Summary | |
---|---|
protected
void |
constructRule() The constructRule method is called to construct the XML document that contains all the conditions with this initiative. |
protected
SimpleCondition.Qualifier |
getCurrencyQualifier() This function generates the qualifier for the supplied currency. |
protected
SimpleCondition.Qualifier |
getLanguageQualifier() This function generates the qualifier for the given language. |
AccessVector |
getResources() Gets the resources that are accessed by this controller command. |
void |
performExecute() The performExecute method is called to when the marketing manager asks to save a campaign initiative. |
void |
validateParameters() Parses and validates the parameters passed to this controller command. |
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl |
getViewInputProperties,
setRequestProperties |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
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. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRequestProperties,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected CampaignInitiativeDetailsDataBean _initiative
CampaignInitiativeDetailsDataBean
.
protected java.lang.String _xmlFile
protected boolean _forceSave
protected boolean _newInitiative
protected java.util.Vector _initiativeSegments
protected java.lang.String _initiativeRule
protected SimpleCondition.Qualifier _languageQualifier
SimpleCondition.Qualifier
which is generated
using the given languages.
protected SimpleCondition.Qualifier _currencyQualifier
SimpleCondition.Qualifier
which is generated
using the supplied currencies.
protected java.lang.String _error
protected java.lang.Integer _initiativeId
protected java.lang.String _responseViewTaskName
protected java.lang.String _resulttype
Constructor Detail |
---|
public CampaignInitiativeSaveControllerCmdImpl()
Method Detail |
---|
public void validateParameters() throws ECException
xml
- An XML document that describes the campaign
initiative.
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException
ECCommand#validateParameters()
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
ECCommand#getResources()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
ECCommand#performExecute()
protected void constructRule()
protected SimpleCondition.Qualifier getCurrencyQualifier()
SimpleCondition.Qualifier
object of the
currency.protected SimpleCondition.Qualifier getLanguageQualifier()
SimpleCondition.Qualifier
object of the
language.