com.ibm.commerce.marketing.commands.elements

Class DisplayExternalRecommendationActionTaskCmdImpl

  • All Implemented Interfaces:
    DisplayExternalRecommendationActionTaskCmd, DisplayMerchandisingAssociationActionTaskCmd, 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 DisplayExternalRecommendationActionTaskCmdImpl
    extends DisplayMerchandisingAssociationActionTaskCmdImpl
    implements DisplayExternalRecommendationActionTaskCmd
    This command sets which content from recommendations from an external system should be displayed in an e-Marketing Spot. The default implementation of this command does not return any recommendations. This command is provided as a basis for a customization that would call an external system that can provide recommendations. The method getRecommendationsFromExternalSystem is called with the list of catalog entries for which a recommendation should be provided. A customization should implement this method to return the products recommended from the external system.
    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.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DisplayExternalRecommendationActionTaskCmdImpl

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

      • performExecute

        public void performExecute()
        This method sets which content from recommendations from an external system should be displayed in an e-Marketing Spot. A customization should implement this method to return the products recommended from the external system.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class DisplayMerchandisingAssociationActionTaskCmdImpl
      • 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 source, target, and location. If location is templateArgumentIdList, then catalogEntryIdList must be specified.
        Specified by:
        validateParameters in interface MarketingCampaignElementTaskCmd
        Overrides:
        validateParameters in class DisplayMerchandisingAssociationActionTaskCmdImpl
        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.