Class JpaMarketingMessage
java.lang.Object
com.broadleafcommerce.promotion.offer.provider.jpa.domain.JpaMarketingMessage
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
,com.broadleafcommerce.data.tracking.core.ApplicationTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>
,com.broadleafcommerce.data.tracking.core.filtering.ActiveAware
,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
,com.broadleafcommerce.data.tracking.core.Trackable
,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>
,ActiveDateEntity
,com.broadleafcommerce.translation.domain.Translatable
,Serializable
@Entity
public class JpaMarketingMessage
extends Object
implements com.broadleafcommerce.data.tracking.core.ApplicationTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, Serializable, com.broadleafcommerce.translation.domain.Translatable, com.broadleafcommerce.data.tracking.core.filtering.ActiveAware, ActiveDateEntity
Persistent counter-part to a
MarketingMessage
for use with a Jpa datastore.- Author:
- Nathan Moore (nathanmoore).
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
get_id()
The time at which this entity becomes inactive for storefront consumption.The time at which this entity becomes active for storefront consumption.Class<?>
javax.money.CurrencyUnit
Transient property that holds the currency used to convert price to a MonetaryAmount.protected javax.money.CurrencyUnit
getCurrencyFromLocale
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.Deprecated.javax.money.MonetaryAmount
javax.money.MonetaryAmount
getText()
com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking
int
hashCode()
void
preFromMe
(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Object businessDomain) void
void
setActiveEndDate
(Instant activeEndDate) void
setActiveStartDate
(Instant activeStartDate) void
setContextId
(String contextId) void
setCurrency
(javax.money.CurrencyUnit currency) Transient property that holds the currency used to convert price to a MonetaryAmount.void
setDisplayHint
(String displayHint) void
Deprecated.void
setLocationType
(String locationType) Deprecated.void
setLocationTypes
(List<String> locationTypes) void
setMaxCartSubtotal
(javax.money.MonetaryAmount maxCartSubtotal) void
setMinCartSubtotal
(javax.money.MonetaryAmount minCartSubtotal) void
setOfferContextId
(String offerContextId) void
setPriority
(Integer priority) void
setShowIfOfferApplied
(Boolean showIfOfferApplied) void
setTargetType
(String targetType) void
void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking) void
setUseCartSubtotal
(Boolean useCartSubtotal) org.modelmapper.ModelMapper
toMe()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.promotion.offer.domain.ActiveDateEntity
checkActiveDates, checkActiveDates
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preToMe
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
Methods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getNotificationStates, getNotificationStates, setNotificationStates
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Constructor Details
-
JpaMarketingMessage
public JpaMarketingMessage()
-
-
Method Details
-
preFromMe
public void preFromMe(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, Object businessDomain) - Specified by:
preFromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getCurrencyFromLocale
protected javax.money.CurrencyUnit getCurrencyFromLocale(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
fromMe
@NonNull public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getMinCartSubtotal
public javax.money.MonetaryAmount getMinCartSubtotal() -
setMinCartSubtotal
public void setMinCartSubtotal(javax.money.MonetaryAmount minCartSubtotal) -
getMaxCartSubtotal
public javax.money.MonetaryAmount getMaxCartSubtotal() -
setMaxCartSubtotal
public void setMaxCartSubtotal(javax.money.MonetaryAmount maxCartSubtotal) -
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
- Specified by:
getDisplay
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
get_id
-
getContextId
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Specified by:
getContextId
in interfacecom.broadleafcommerce.translation.domain.Translatable
-
getOfferContextId
-
getText
-
getPriority
-
getTargetType
-
getLocationType
Deprecated. -
getLocationTypes
-
getLocale
Deprecated. -
getActiveStartDate
Description copied from interface:ActiveDateEntity
The time at which this entity becomes active for storefront consumption. Can be null, in which case the item is always active.- Specified by:
getActiveStartDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
- Specified by:
getActiveStartDate
in interfaceActiveDateEntity
- Returns:
- The time at which this entity becomes active for storefront consumption
-
getActiveEndDate
Description copied from interface:ActiveDateEntity
The time at which this entity becomes inactive for storefront consumption. Can be null, in which case the item does not expire.- Specified by:
getActiveEndDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
- Specified by:
getActiveEndDate
in interfaceActiveDateEntity
- Returns:
- The time at which this entity becomes inactive for storefront consumption
-
getDisplayHint
-
getShowIfOfferApplied
-
getUseCartSubtotal
-
getCurrency
public javax.money.CurrencyUnit getCurrency()Transient property that holds the currency used to convert price to a MonetaryAmount. -
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking getTracking()- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
set_id
-
setContextId
- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setOfferContextId
-
setText
-
setPriority
-
setTargetType
-
setLocationType
Deprecated. -
setLocationTypes
-
setLocale
Deprecated. -
setActiveStartDate
-
setActiveEndDate
-
setDisplayHint
-
setShowIfOfferApplied
-
setUseCartSubtotal
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) Transient property that holds the currency used to convert price to a MonetaryAmount. -
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking) - Specified by:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-