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, Map<String, List<MarketingMessage>> otherMessagesMap, Map<String, Map<String, List<MarketingMessage>>> otherItemMessagesMap, Map<String, ContentItem> contentItems) -
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 headerThe content items used by any marketing messages of message typeCONTENT, mapped by their ID.Messages linked to individual product items that should be displayed on custom locations.Messages that should be displayed on custom locations.Messages 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 headervoidsetContentItems(Map<String, ContentItem> contentItems) The content items used by any marketing messages of message typeCONTENT, mapped by their ID.voidsetOtherItemMessagesMap(Map<String, Map<String, List<MarketingMessage>>> otherItemMessagesMap) Messages linked to individual product items that should be displayed on custom locations.voidsetOtherMessagesMap(Map<String, List<MarketingMessage>> otherMessagesMap) Messages that should be displayed on custom locations.voidsetProductDetailMessages(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, Map<String, List<MarketingMessage>> otherMessagesMap, Map<String, Map<String, List<MarketingMessage>>> otherItemMessagesMap, Map<String, ContentItem> contentItems)
-
-
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
-
getOtherMessagesMap
Messages that should be displayed on custom locations. The custom location is denoted by the map key.- Returns:
- messages for custom locations
-
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
The content items used by any marketing messages of message typeCONTENT, mapped by their ID.- Returns:
- content items related to the marketing message
-
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 -
setOtherMessagesMap
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
The content items used by any marketing messages of message typeCONTENT, mapped by their ID. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-