Class MarketingMessageResponse<P extends MarketingMessage>
java.lang.Object
com.broadleafcommerce.promotion.offer.domain.MarketingMessageResponse<P>
A DTO to return a list of
MarketingMessages. This wrapper object is
required for proper JSON serialization/deserialization.- Author:
- Jon Fleschler (jfleschler)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMessages that should be displayed on individual product items shown during browseMessages that should be displayed on the product list page headersMessages that should be displayed on individual cart itemsMessages that should be displayed on the cart page's headerMessages that should be displayed on product detail pagesinthashCode()voidsetBrowseItemMessages(Map<String, List<P>> browseItemMessages) Messages that should be displayed on individual product items shown during browsevoidsetBrowseMessages(List<P> browseMessages) Messages that should be displayed on the product list page headersvoidsetCartItemMessages(Map<String, List<P>> cartItemMessages) Messages that should be displayed on individual cart itemsvoidsetCartMessages(List<P> cartMessages) Messages that should be displayed on the cart page's headervoidsetProductDetailMessages(Map<String, List<P>> productDetailMessages) Messages that should be displayed on product detail pagestoString()
-
Constructor Details
-
MarketingMessageResponse
public MarketingMessageResponse()
-
-
Method Details
-
getCartMessages
Messages that should be displayed on the cart page's header- Returns:
- messages for the cart header
-
getBrowseMessages
Messages that should be displayed on the product list page headers- Returns:
- messages for product list page headers
-
getCartItemMessages
Messages that should be displayed on individual cart items- Returns:
- messages for individual cart items
-
getBrowseItemMessages
Messages that should be displayed on individual product items shown during browse- Returns:
- messages for individual products displayed during browse
-
getProductDetailMessages
Messages that should be displayed on product detail pages- Returns:
- messages for product detail pages
-
setCartMessages
Messages that should be displayed on the cart page's header -
setBrowseMessages
Messages that should be displayed on the product list page headers -
setCartItemMessages
Messages that should be displayed on individual cart items -
setBrowseItemMessages
Messages that should be displayed on individual product items shown during browse -
setProductDetailMessages
Messages that should be displayed on product detail pages -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-