Class MarketingMessageResponse

java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.marketing.MarketingMessageResponse
All Implemented Interfaces:
Serializable

public class MarketingMessageResponse extends Object implements Serializable
Represents the response from the ExternalOfferProvider containing various MarketingMessages grouped by the message location type.
Author:
Jon Fleschler (jfleschler)
See Also:
  • Constructor Details

  • Method Details

    • getCartMessages

      public List<MarketingMessage> getCartMessages()
      Messages that should be displayed on the cart page's header
      Returns:
      messages for the cart header
    • getBrowseMessages

      public List<MarketingMessage> getBrowseMessages()
      Messages that should be displayed on the product list page headers
      Returns:
      messages for product list page headers
    • getCartItemMessages

      public Map<String,List<MarketingMessage>> getCartItemMessages()
      Messages that should be displayed on individual cart items
      Returns:
      messages for individual cart items
    • getBrowseItemMessages

      public Map<String,List<MarketingMessage>> getBrowseItemMessages()
      Messages that should be displayed on individual product items shown during browse
      Returns:
      messages for individual products displayed during browse
    • getProductDetailMessages

      public Map<String,List<MarketingMessage>> getProductDetailMessages()
      Messages that should be displayed on product detail pages
      Returns:
      messages for product detail pages
    • getOtherMessagesMap

      public Map<String,List<MarketingMessage>> getOtherMessagesMap()
      Messages that should be displayed on custom locations. The custom location is denoted by the map key.
      Returns:
      messages for custom locations
    • getOtherItemMessagesMap

      public Map<String,Map<String,List<MarketingMessage>>> getOtherItemMessagesMap()
      Messages linked to individual product items that should be displayed on custom locations. The custom location is denoted by the map key.
      Returns:
      messages for custom locations
    • getContentItems

      public Map<String,ContentItem> getContentItems()
      The content items used by any marketing messages of message type CONTENT, mapped by their ID.
      Returns:
      content items related to the marketing message
    • setCartMessages

      public void setCartMessages(List<MarketingMessage> cartMessages)
      Messages that should be displayed on the cart page's header
    • setBrowseMessages

      public void setBrowseMessages(List<MarketingMessage> browseMessages)
      Messages that should be displayed on the product list page headers
    • setCartItemMessages

      public void setCartItemMessages(Map<String,List<MarketingMessage>> cartItemMessages)
      Messages that should be displayed on individual cart items
    • setBrowseItemMessages

      public void setBrowseItemMessages(Map<String,List<MarketingMessage>> browseItemMessages)
      Messages that should be displayed on individual product items shown during browse
    • setProductDetailMessages

      public void setProductDetailMessages(Map<String,List<MarketingMessage>> productDetailMessages)
      Messages that should be displayed on product detail pages
    • setOtherMessagesMap

      public void setOtherMessagesMap(Map<String,List<MarketingMessage>> otherMessagesMap)
      Messages that should be displayed on custom locations. The custom location is denoted by the map key.
    • setOtherItemMessagesMap

      public void setOtherItemMessagesMap(Map<String,Map<String,List<MarketingMessage>>> otherItemMessagesMap)
      Messages linked to individual product items that should be displayed on custom locations. The custom location is denoted by the map key.
    • setContentItems

      public void setContentItems(Map<String,ContentItem> contentItems)
      The content items used by any marketing messages of message type CONTENT, mapped by their ID.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object