com.ibm.commerce.marketing.commands.elements

Class DisplayPromotionActionTaskCmdImpl

    • 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_PROMOTION_ID

        public static final java.lang.String PARAM_PROMOTION_ID
        Constant representing the marketing content ID name value pair.
        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

      • DisplayPromotionActionTaskCmdImpl

        public DisplayPromotionActionTaskCmdImpl()
        This method is the default constructor. It currently performs no actions.
    • Method Detail

      • performExecute

        public void performExecute()
        This method sets which promotion should be displayed in an e-Marketing Spot.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class MarketingCampaignElementTaskCmdImpl
      • 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 the promotionId and collateralIdList parameters.
        Specified by:
        validateParameters in interface MarketingCampaignElementTaskCmd
        Overrides:
        validateParameters in class MarketingCampaignElementTaskCmdImpl
        Parameters:
        elementParameters - The name value pairs for this element. This method validates that the click action associated with the content will work with the selected promotion.
        Returns:
        This method returns a list of ApplicationError exceptions that contains any validation errors. The list may be empty or be null.
      • 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 interface MarketingCampaignElementTaskCmd
        Overrides:
        getMarketingSpotBehavior in class MarketingCampaignElementTaskCmdImpl
        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.