com.ibm.commerce.marketing.commands.elements

Class ReturnNvpActionTaskCmdImpl

  • All Implemented Interfaces:
    MarketingCampaignElementTaskCmd, ReturnNvpActionTaskCmd, 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 ReturnNvpActionTaskCmdImpl
    extends MarketingCampaignElementTaskCmdImpl
    implements ReturnNvpActionTaskCmd
    This command sets which data should be returned to an e-Marketing Spot. This can be any name value pair which provides information to the e-Marketing Spot JSP snippet. In the SDO returned in the Get MarketingSpotData service, there will be a BaseMarketingSpotActivityDataType with a data type of DM_NVP and a unique ID of DM_NVP. The name value pairs will be in the properties element. For example, if a name value pair is set with the name ABC, then the following code can retrieve the value in the e-Marketing Spot JSP snippet.
     ${marketingSpotData.properties['ABC']}
     
    See Also:
    Serialized Form
    • 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.
    • Constructor Detail

      • ReturnNvpActionTaskCmdImpl

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

      • performExecute

        public void performExecute()
        This method sets which data should be returned to 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 nvpName and nvpValue.
        Specified by:
        validateParameters in interface MarketingCampaignElementTaskCmd
        Overrides:
        validateParameters in class MarketingCampaignElementTaskCmdImpl
        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 be null.