com.ibm.commerce.marketing.commands.marketingspot

Interface FilterContentTaskCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, MarketingSpotCommandBaseTaskCmd, java.io.Serializable, com.ibm.websphere.command.TargetableCommand
    All Known Implementing Classes:
    FilterContentTaskCmdImpl


    public interface FilterContentTaskCmd
    extends MarketingSpotCommandBaseTaskCmd
    This command loads the specified marketing content by calling the RetrieveContentTaskCmd command. Then this command checks if the specified marketing content qualifies for the defined filtering criteria or not. See the file samples/samples/dynacache/marketing/cachespec.xml for details about caching this command. Filters that can be cached (such as check if promotion matches the content url requirements) are evaluated in the performExecute method. Filters that cannot be cached (such as check if the promotion is active) are evaluated in the postFilter method. If a custom filter is added, and the evaluation can be cached, then extend the methods removeContent and removeContentPromotion. If a custom filter is added, and the evaluation cannot be cached, then extend the method postFilter.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      static java.lang.String defaultCommandClassName
      Default implementation class for this command.
      static java.lang.String NAME
      The name of this interface.
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        Default implementation class for this command.
    • Method Detail

      • getMarketingContent

        java.util.ArrayList getMarketingContent()
        This method returns an array of filtered marketing content data objects that will be displayed in the e-Marketing Spot.
        Returns:
        An array of filtered marketing content data objects.
      • getResultDataBeans

        EMarketingSpotDataBean[] getResultDataBeans()
        This method sets the data beans containing the results that the e-Marketing Spot displays.
        Returns:
        The data beans containing the results that the e-Marketing Spot displays.
      • setResultDataBeans

        void setResultDataBeans(EMarketingSpotDataBean[] resultDataBeans)
        This method sets the data beans containing the results that the e-Marketing Spot displays. Although this method takes an array, only one EMarketingSpotDataBean can be set. This is to allow for the appropriate command caching.
        Parameters:
        resultDataBeans - The data beans containing the results that the e-Marketing Spot displays.
      • postFilter

        boolean postFilter(MarketingSpotActivityMarketingContentDataType content)
        This method checks the filters that need to be evaluated every time and cannot be cached when this command is cached.
        Parameters:
        content - The content to check.
        Returns:
        This method returns true if the content should be removed because one of the remove filters has matched its criteria.
      • setMarketingSpotIdAndContentType

        void setMarketingSpotIdAndContentType(java.lang.Integer emsId,
                                              boolean titleContent)
        This method sets the e-Marketing Spot ID and content type associated with the content being loaded.
        Parameters:
        emsId - The e-Marketing Spot ID associated with the content being loaded.
        titleContent - True if the content is associated with an e-Marketing Spot title.