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 Details

    • segment

      protected String segment
  • Constructor Details

    • JpaOfferCode

      public JpaOfferCode()
  • Method Details

    • fromMe

      @NonNull public @NonNull org.modelmapper.ModelMapper fromMe()
      Specified by:
      fromMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • toMe

      @NonNull public @NonNull org.modelmapper.ModelMapper toMe()
      Specified by:
      toMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • getBusinessDomainType

      public Class<?> getBusinessDomainType()
      Specified by:
      getBusinessDomainType in interface com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
    • getDisplay

      public Optional<String> getDisplay()
      Specified by:
      getDisplay in interface com.broadleafcommerce.data.tracking.core.Trackable
    • getGeneralMaxUsageStatus

      public String getGeneralMaxUsageStatus()
    • getContextId

      public String getContextId()
      Specified by:
      getContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
    • getOfferId

      public String getOfferId()
    • getCode

      public String getCode()
    • getExternalId

      public String getExternalId()
    • getActiveStartDate

      public Instant getActiveStartDate()
      Specified by:
      getActiveStartDate in interface com.broadleafcommerce.data.tracking.core.filtering.ActiveAware
    • getActiveEndDate

      public Instant getActiveEndDate()
      Specified by:
      getActiveEndDate in interface com.broadleafcommerce.data.tracking.core.filtering.ActiveAware
    • getMaxUses

      public Integer getMaxUses()
    • getMaxUsesPerUser

      public Integer getMaxUsesPerUser()
    • getEmailRegEx

      public String getEmailRegEx()
    • getCampaignId

      public String getCampaignId()
    • getGeneratorId

      public String getGeneratorId()
    • isAssigned

      public boolean isAssigned()
    • getSegment

      public String getSegment()
    • getAttributes

      public Map<String,JpaAttribute> getAttributes()
    • getTracking

      public com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking getTracking()
      Specified by:
      getTracking in interface com.broadleafcommerce.data.tracking.core.Trackable
    • setContextId

      public void setContextId(String contextId)
      Specified by:
      setContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
    • setOfferId

      public void setOfferId(String offerId)
    • setCode

      public void setCode(String code)
    • setExternalId

      public void setExternalId(String externalId)
    • setActiveStartDate

      public void setActiveStartDate(Instant activeStartDate)
    • setActiveEndDate

      public void setActiveEndDate(Instant activeEndDate)
    • setMaxUses

      public void setMaxUses(Integer maxUses)
    • setMaxUsesPerUser

      public void setMaxUsesPerUser(Integer maxUsesPerUser)
    • setGeneralMaxUsageStatus

      public void setGeneralMaxUsageStatus(String generalMaxUsageStatus)
    • setEmailRegEx

      public void setEmailRegEx(String emailRegEx)
    • setCampaignId

      public void setCampaignId(String campaignId)
    • setGeneratorId

      public void setGeneratorId(String generatorId)
    • setAssigned

      public void setAssigned(boolean assigned)
    • setSegment

      public void setSegment(String segment)
    • setAttributes

      public void setAttributes(Map<String,JpaAttribute> attributes)
    • setTracking

      public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking)
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object