Class MarketingMessage
java.lang.Object
com.broadleafcommerce.catalogbrowse.domain.marketing.MarketingMessage
- All Implemented Interfaces:
Serializable
Represents a marketing message to be displayed to the customer.
- Author:
- Jon Fleschler (jfleschler)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe ID of theContentItemto display.Any display hint needed by the front-endgetId()Determines the type of message to display, this can be HTML or CONTENT.The message's prioritygetText()The message's text to display to the customerinthashCode()voidsetContentItemId(String contentItemId) The ID of theContentItemto display.voidsetDisplayHint(String displayHint) Any display hint needed by the front-endvoidvoidsetMessageType(String messageType) Determines the type of message to display, this can be HTML or CONTENT.voidsetPriority(Integer priority) The message's priorityvoidThe message's text to display to the customertoString()
-
Constructor Details
-
MarketingMessage
public MarketingMessage()
-
-
Method Details
-
getId
-
getText
The message's text to display to the customer- Returns:
- the message text
-
getPriority
The message's priority- Returns:
- the message priority
-
getDisplayHint
Any display hint needed by the front-end- Returns:
- the display hint for the front-end
-
getMessageType
Determines the type of message to display, this can be HTML or CONTENT. If HTML, then thetextwill be displayed. If CONTENT, then thecontentItemIdwill be used to hydrate the selectedContentItem.- Returns:
- the type of message to display
-
getContentItemId
The ID of theContentItemto display. This is required for messages with CONTENTmessageType.- Returns:
- the ID of the content item to display
-
setId
-
setText
The message's text to display to the customer -
setPriority
The message's priority -
setDisplayHint
Any display hint needed by the front-end -
setMessageType
Determines the type of message to display, this can be HTML or CONTENT. If HTML, then thetextwill be displayed. If CONTENT, then thecontentItemIdwill be used to hydrate the selectedContentItem.- Parameters:
messageType- the type of message to display
-
setContentItemId
The ID of theContentItemto display. This is required for messages with CONTENTmessageType.- Parameters:
contentItemId- the ID of the content item to display
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-