Class MarketingMessageResponse<P extends MarketingMessage>

java.lang.Object
com.broadleafcommerce.promotion.offer.domain.MarketingMessageResponse<P>

public class MarketingMessageResponse<P extends MarketingMessage> extends Object
A DTO to return a list of MarketingMessages. This wrapper object is required for proper JSON serialization/deserialization.
Author:
Jon Fleschler (jfleschler)
  • Constructor Details

    • MarketingMessageResponse

      public MarketingMessageResponse()
  • Method Details

    • getCartMessages

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

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

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

      public Map<String,List<P>> 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<P>> getProductDetailMessages()
      Messages that should be displayed on product detail pages
      Returns:
      messages for product detail pages
    • setCartMessages

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

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

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

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

      public void setProductDetailMessages(Map<String,List<P>> productDetailMessages)
      Messages that should be displayed on product detail pages
    • 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