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 headerThe content items used by any marketing messages of message typeMarketingMessageMessageType.CONTENT, 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<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 headervoidsetContentItems(Map<String, ContentItem> contentItems) The content items used by any marketing messages of message typeMarketingMessageMessageType.CONTENT, mapped by their ID.voidMessages linked to individual product items that should be displayed on custom locations.voidsetOtherMessagesMap(Map<String, List<P>> otherMessagesMap) Messages that should be displayed on custom locations.voidsetProductDetailMessages(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
-
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 typeMarketingMessageMessageType.CONTENT, 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
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 typeMarketingMessageMessageType.CONTENT, mapped by their ID. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-