java.lang.Object
com.broadleafcommerce.promotion.offer.provider.jpa.domain.JpaCodeGenerator
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 JpaCodeGenerator 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, com.broadleafcommerce.data.tracking.core.filtering.ActiveAware, Serializable
Author:
Chad Harchar (charchar)
See Also:
  • Field Details

    • segment

      protected String segment
    • createDate

      protected Instant createDate
    • updateDate

      protected Instant updateDate
    • emailRegEx

      protected String emailRegEx
    • activeStartDate

      protected Instant activeStartDate
    • activeEndDate

      protected Instant activeEndDate
  • Constructor Details

    • JpaCodeGenerator

      public JpaCodeGenerator()
  • Method Details

    • fromMe

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

      @NonNull public 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
    • getContextId

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

      public String getCodePrefix()
    • getNumberOfCodesToGenerate

      public int getNumberOfCodesToGenerate()
    • getNumberOfCodesGenerated

      public int getNumberOfCodesGenerated()
    • getCodeGenerationStatus

      public String getCodeGenerationStatus()
    • getCodeFormat

      public String getCodeFormat()
    • getCodeLength

      public Integer getCodeLength()
    • getMaxUses

      public int getMaxUses()
    • getSegment

      public String getSegment()
    • getCreateDate

      public Instant getCreateDate()
    • getUpdateDate

      public Instant getUpdateDate()
    • getCodeGenerationMessage

      public String getCodeGenerationMessage()
    • getEmailRegEx

      public String getEmailRegEx()
    • 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
    • getCampaignId

      public String getCampaignId()
    • isVoucherCodeGenerator

      public boolean isVoucherCodeGenerator()
    • getAllowedLetters

      public String getAllowedLetters()
    • getAllowedNumbers

      public String getAllowedNumbers()
    • 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
    • setCodePrefix

      public void setCodePrefix(String codePrefix)
    • setNumberOfCodesToGenerate

      public void setNumberOfCodesToGenerate(int numberOfCodesToGenerate)
    • setNumberOfCodesGenerated

      public void setNumberOfCodesGenerated(int numberOfCodesGenerated)
    • setCodeGenerationStatus

      public void setCodeGenerationStatus(String codeGenerationStatus)
    • setCodeFormat

      public void setCodeFormat(String codeFormat)
    • setCodeLength

      public void setCodeLength(Integer codeLength)
    • setMaxUses

      public void setMaxUses(int maxUses)
    • setSegment

      public void setSegment(String segment)
    • setCreateDate

      public void setCreateDate(Instant createDate)
    • setUpdateDate

      public void setUpdateDate(Instant updateDate)
    • setCodeGenerationMessage

      public void setCodeGenerationMessage(String codeGenerationMessage)
    • setEmailRegEx

      public void setEmailRegEx(String emailRegEx)
    • setActiveStartDate

      public void setActiveStartDate(Instant activeStartDate)
    • setActiveEndDate

      public void setActiveEndDate(Instant activeEndDate)
    • setCampaignId

      public void setCampaignId(String campaignId)
    • setVoucherCodeGenerator

      public void setVoucherCodeGenerator(boolean voucherCodeGenerator)
    • setAllowedLetters

      public void setAllowedLetters(String allowedLetters)
    • setAllowedNumbers

      public void setAllowedNumbers(String allowedNumbers)
    • 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