Class MarketingMessageResponse
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.marketing.MarketingMessageResponse
- All Implemented Interfaces:
Serializable
Represents the response from the
ExternalOfferProvider containing various
MarketingMessages grouped by the message location type.- Author:
- Jon Fleschler (jfleschler)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMarketingMessageResponse(List<MarketingMessage> cartMessages, List<MarketingMessage> browseMessages, Map<String, List<MarketingMessage>> cartItemMessages, Map<String, List<MarketingMessage>> browseItemMessages, Map<String, List<MarketingMessage>> productDetailMessages) -
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<MarketingMessage>> browseItemMessages) Messages that should be displayed on individual product items shown during browsevoidsetBrowseMessages(List<MarketingMessage> browseMessages) Messages that should be displayed on the product list page headersvoidsetCartItemMessages(Map<String, List<MarketingMessage>> cartItemMessages) Messages that should be displayed on individual cart itemsvoidsetCartMessages(List<MarketingMessage> cartMessages) Messages that should be displayed on the cart page's headervoidsetProductDetailMessages(Map<String, List<MarketingMessage>> productDetailMessages) Messages that should be displayed on product detail pagestoString()
-
Constructor Details
-
MarketingMessageResponse
public MarketingMessageResponse() -
MarketingMessageResponse
public MarketingMessageResponse(List<MarketingMessage> cartMessages, List<MarketingMessage> browseMessages, Map<String, List<MarketingMessage>> cartItemMessages, Map<String, List<MarketingMessage>> browseItemMessages, Map<String, List<MarketingMessage>> productDetailMessages)
-
-
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
-