Class JpaOfferCode
java.lang.Object
com.broadleafcommerce.promotion.offer.provider.jpa.domain.JpaOfferCode
- 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>
,Serializable
@Entity
@TrackableExtension(APPLICATION)
public class JpaOfferCode
extends Object
implements com.broadleafcommerce.data.tracking.core.ApplicationTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>, Serializable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.filtering.ActiveAware
- Author:
- Karan Jariwala (karan-j-blc)
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@NonNull org.modelmapper.ModelMapper
fromMe()
Class<?>
getCode()
com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking
int
hashCode()
boolean
void
setActiveEndDate
(Instant activeEndDate) void
setActiveStartDate
(Instant activeStartDate) void
setAssigned
(boolean assigned) void
setAttributes
(Map<String, JpaAttribute> attributes) void
setCampaignId
(String campaignId) void
void
setContextId
(String contextId) void
setEmailRegEx
(String emailRegEx) void
setExternalId
(String externalId) void
setGeneralMaxUsageStatus
(String generalMaxUsageStatus) void
setGeneratorId
(String generatorId) void
setMaxUses
(Integer maxUses) void
setMaxUsesPerUser
(Integer maxUsesPerUser) void
setOfferId
(String offerId) void
setSegment
(String segment) void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking) @NonNull 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.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, 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
-
Field Details
-
segment
-
-
Constructor Details
-
JpaOfferCode
public JpaOfferCode()
-
-
Method Details
-
fromMe
@NonNull public @NonNull org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public @NonNull org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
- Specified by:
getDisplay
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getGeneralMaxUsageStatus
-
getContextId
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getOfferId
-
getCode
-
getExternalId
-
getActiveStartDate
- Specified by:
getActiveStartDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
-
getActiveEndDate
- Specified by:
getActiveEndDate
in interfacecom.broadleafcommerce.data.tracking.core.filtering.ActiveAware
-
getMaxUses
-
getMaxUsesPerUser
-
getEmailRegEx
-
getCampaignId
-
getGeneratorId
-
isAssigned
public boolean isAssigned() -
getSegment
-
getAttributes
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking getTracking()- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setContextId
- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setOfferId
-
setCode
-
setExternalId
-
setActiveStartDate
-
setActiveEndDate
-
setMaxUses
-
setMaxUsesPerUser
-
setGeneralMaxUsageStatus
-
setEmailRegEx
-
setCampaignId
-
setGeneratorId
-
setAssigned
public void setAssigned(boolean assigned) -
setSegment
-
setAttributes
-
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()
-