com.ibm.commerce.marketing.commands.elements
Class DisplayMarketingContentActionTaskCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.marketing.commands.elements.MarketingCampaignElementTaskCmdImpl
-
- com.ibm.commerce.marketing.commands.elements.DisplayMarketingContentActionTaskCmdImpl
-
- All Implemented Interfaces:
- DisplayMarketingContentActionTaskCmd, MarketingCampaignElementTaskCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class DisplayMarketingContentActionTaskCmdImpl extends MarketingCampaignElementTaskCmdImpl implements DisplayMarketingContentActionTaskCmd
This command sets which marketing content should be displayed in an e-Marketing Spot.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
CLASSNAME
The name of this class.static java.lang.String
COPYRIGHT
IBM copyright notice field.static java.lang.String
PARAM_COLLATERAL_ID_LIST
Constant representing the marketing content ID name value pair.-
Fields inherited from class com.ibm.commerce.marketing.commands.elements.MarketingCampaignElementTaskCmdImpl
DM_FROM_FORWARD_TRIGGERS_FOR_PROCESSING, EMLPROMO_NAME_PREFIX, GENERIC_USER_ID
-
Fields inherited from interface com.ibm.commerce.marketing.commands.elements.DisplayMarketingContentActionTaskCmd
defaultCommandClassName
-
-
Constructor Summary
Constructors Constructor and Description DisplayMarketingContentActionTaskCmdImpl()
This method is the default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getMarketingSpotBehavior(java.util.Map elementParameters)
This method returns a value of 0 to specify that this marketing campaign element is static if all the associated content is static.void
performExecute()
This method sets which marketing content should be displayed in an e-Marketing Spot.java.util.List
validateParameters(java.util.Map elementParameters)
This method validates that all the required name value pairs have been set for the campaign element.-
Methods inherited from class com.ibm.commerce.marketing.commands.elements.MarketingCampaignElementTaskCmdImpl
addEMarketingSpotDataBean, forwardTriggersForProcessing, forwardTriggersForProcessing, getActivity, getDataFromTriggerParameters, getElementId, getElementParameters, getEMarketingSpotDataBeans, getExperimentTestElements, getMarketingContent, getMemberId, getMemberId, getMemberIdsForPersonalizationId, getMemberIdsForPersonalizationId, getNewElementParameters, getPersonalizationId, getPreviewReport, getRegisteredMemberIdForPersonalizationId, getReturnValue, getStoreId, getTemporarySharedData, getTemporarySharedDataObject, getTriggerParameters, getTriggerParametersMap, getUserDataForElement, isReadyToCallExecute, putTemporarySharedDataObject, returnEMarketingSpotDataBeans, setActivity, setElementId, setElementParameters, setExperimentTestElements, setNewElementParameter, setOutputProperties, setPreviewReport, setReturnValue, setTemporarySharedData, setTriggerParameters, setTriggerParameters, validateCategory, validateCustomerSegment, validateDates, validateElementIsFirstInActivity, validateEmailTemplate, validateMarketingContent, validateMarketingContent, validateMarketingSpot, validateProduct, validatePromotion, validatePromotionCodes, validatePromotionCodesOrCoupon, validatePromotionCoupon, validatePromotionDisplay, validateSubscription, validateTimes
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, reset, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.marketing.commands.elements.MarketingCampaignElementTaskCmd
forwardTriggersForProcessing, getEMarketingSpotDataBeans, getNewElementParameters, getReturnValue, returnEMarketingSpotDataBeans, setActivity, setElementId, setElementParameters, setExperimentTestElements, setNewElementParameter, setPreviewReport, setReturnValue, setTemporarySharedData, setTriggerParameters, setTriggerParameters
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
CLASSNAME
public static final java.lang.String CLASSNAME
The name of this class.- See Also:
- Constant Field Values
-
PARAM_COLLATERAL_ID_LIST
public static final java.lang.String PARAM_COLLATERAL_ID_LIST
Constant representing the marketing content ID name value pair.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DisplayMarketingContentActionTaskCmdImpl
public DisplayMarketingContentActionTaskCmdImpl()
This method is the default constructor. It currently performs no actions.
-
-
Method Detail
-
performExecute
public void performExecute()
This method sets which marketing content should be displayed in an e-Marketing Spot.- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classMarketingCampaignElementTaskCmdImpl
-
validateParameters
public java.util.List validateParameters(java.util.Map elementParameters)
This method validates that all the required name value pairs have been set for the campaign element. It checks for collateralIdList.- Specified by:
validateParameters
in interfaceMarketingCampaignElementTaskCmd
- Overrides:
validateParameters
in classMarketingCampaignElementTaskCmdImpl
- Parameters:
elementParameters
- The name value pairs for this element.- Returns:
- This method returns a list of
ApplicationError
exceptions that contains any validation errors. The list may be empty or benull
.
-
getMarketingSpotBehavior
public java.lang.String getMarketingSpotBehavior(java.util.Map elementParameters)
This method returns a value of 0 to specify that this marketing campaign element is static if all the associated content is static. If any associated content is dynamic, then this method returns 1.- Specified by:
getMarketingSpotBehavior
in interfaceMarketingCampaignElementTaskCmd
- Overrides:
getMarketingSpotBehavior
in classMarketingCampaignElementTaskCmdImpl
- Parameters:
elementParameters
- The name value pairs for this element.- Returns:
- This method returns a value of 0 if all associated content is static, and returns 1 if any of the associated content is dynamic.
-
-