java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.domain.option.JpaOptionTemplate
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, com.broadleafcommerce.data.tracking.core.CatalogTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>, 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.CatalogJpaTracking>, com.broadleafcommerce.translation.domain.Translatable, Serializable

@Entity public class JpaOptionTemplate extends Object implements com.broadleafcommerce.data.tracking.core.CatalogTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, Serializable, com.broadleafcommerce.translation.domain.Translatable
Persistent counter-part to a OptionTemplate for use with a JPA datastore.
Author:
Nathan Moore (nathanmoore).
See Also:
  • Constructor Details

    • JpaOptionTemplate

      public JpaOptionTemplate()
  • Method Details

    • fromMe

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

      protected void addFromMeProductOptionMappings(org.modelmapper.ModelMapper mapper)
    • addFromMeAttributeChoiceMappings

      protected void addFromMeAttributeChoiceMappings(org.modelmapper.ModelMapper mapper)
    • addFromMeItemChoiceMappings

      protected void addFromMeItemChoiceMappings(org.modelmapper.ModelMapper mapper)
    • toMe

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

      protected void addToMeProductOptionMappings(org.modelmapper.ModelMapper mapper)
    • addToMeAttributeChoiceMappings

      protected void addToMeAttributeChoiceMappings(org.modelmapper.ModelMapper mapper)
    • addToMeItemChoiceMappings

      protected void addToMeItemChoiceMappings(org.modelmapper.ModelMapper mapper)
    • 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
    • setOverridePrice

      public void setOverridePrice(javax.money.MonetaryAmount overridePrice)
    • getOverridePrice

      public javax.money.MonetaryAmount getOverridePrice()
    • get_id

      public String get_id()
    • getContextId

      public String getContextId()
      Specified by:
      getContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
      Specified by:
      getContextId in interface com.broadleafcommerce.translation.domain.Translatable
    • getTracking

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

      public String getName()
    • isPreferAddTemplateByReference

      public boolean isPreferAddTemplateByReference()
    • getOptionSubItemIdentifier

      public String getOptionSubItemIdentifier()
    • getTemplateContextId

      public String getTemplateContextId()
    • getLabel

      public String getLabel()
    • getOptionType

      public String getOptionType()
    • getDisplayOrder

      public Integer getDisplayOrder()
    • getProductContextId

      public String getProductContextId()
    • getSearchOnOption

      public Boolean getSearchOnOption()
    • getChoiceKey

      public String getChoiceKey()
    • getTargetType

      public String getTargetType()
    • getSelectionType

      public String getSelectionType()
    • getMaximumQuantity

      public Integer getMaximumQuantity()
    • getMinimumQuantity

      @Nullable public Integer getMinimumQuantity()
    • getCurrency

      public javax.money.CurrencyUnit getCurrency()
    • getDiscountAllowed

      public Boolean getDiscountAllowed()
    • getPricingKey

      public String getPricingKey()
    • getCategoryContextId

      public String getCategoryContextId()
    • getDefaultProductInCategoryContextId

      public String getDefaultProductInCategoryContextId()
    • getDefaultProductContextId

      public String getDefaultProductContextId()
    • getDefaultVariantContextId

      public String getDefaultVariantContextId()
    • getSpecificChoices

      public List<JpaSpecificItemChoice> getSpecificChoices()
    • getSpecificItemChoice

      public JpaSpecificItemChoice getSpecificItemChoice()
    • getItemChoiceAttributes

      public Map<String,Object> getItemChoiceAttributes()
    • getAttributeName

      public String getAttributeName()
    • getChoiceType

      public String getChoiceType()
    • getRequiredChoice

      public Boolean getRequiredChoice()
    • getValidationStrategy

      public String getValidationStrategy()
    • getValidationType

      public String getValidationType()
    • getValidationRule

      public String getValidationRule()
    • getErrorMessage

      public String getErrorMessage()
    • getErrorCode

      public String getErrorCode()
    • getAllowedValues

      public List<JpaAttributeChoiceValue> getAllowedValues()
    • set_id

      public void set_id(String _id)
    • setContextId

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

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

      public void setName(String name)
    • setPreferAddTemplateByReference

      public void setPreferAddTemplateByReference(boolean preferAddTemplateByReference)
    • setOptionSubItemIdentifier

      public void setOptionSubItemIdentifier(String optionSubItemIdentifier)
    • setTemplateContextId

      public void setTemplateContextId(String templateContextId)
    • setLabel

      public void setLabel(String label)
    • setOptionType

      public void setOptionType(String optionType)
    • setDisplayOrder

      public void setDisplayOrder(Integer displayOrder)
    • setProductContextId

      public void setProductContextId(String productContextId)
    • setSearchOnOption

      public void setSearchOnOption(Boolean searchOnOption)
    • setChoiceKey

      public void setChoiceKey(String choiceKey)
    • setTargetType

      public void setTargetType(String targetType)
    • setSelectionType

      public void setSelectionType(String selectionType)
    • setMaximumQuantity

      public void setMaximumQuantity(Integer maximumQuantity)
    • setMinimumQuantity

      public void setMinimumQuantity(@Nullable Integer minimumQuantity)
    • setCurrency

      public void setCurrency(javax.money.CurrencyUnit currency)
    • setDiscountAllowed

      public void setDiscountAllowed(Boolean discountAllowed)
    • setPricingKey

      public void setPricingKey(String pricingKey)
    • setCategoryContextId

      public void setCategoryContextId(String categoryContextId)
    • setDefaultProductInCategoryContextId

      public void setDefaultProductInCategoryContextId(String defaultProductInCategoryContextId)
    • setDefaultProductContextId

      public void setDefaultProductContextId(String defaultProductContextId)
    • setDefaultVariantContextId

      public void setDefaultVariantContextId(String defaultVariantContextId)
    • setSpecificChoices

      public void setSpecificChoices(List<JpaSpecificItemChoice> specificChoices)
    • setSpecificItemChoice

      public void setSpecificItemChoice(JpaSpecificItemChoice specificItemChoice)
    • setItemChoiceAttributes

      public void setItemChoiceAttributes(Map<String,Object> itemChoiceAttributes)
    • setAttributeName

      public void setAttributeName(String attributeName)
    • setChoiceType

      public void setChoiceType(String choiceType)
    • setRequiredChoice

      public void setRequiredChoice(Boolean requiredChoice)
    • setValidationStrategy

      public void setValidationStrategy(String validationStrategy)
    • setValidationType

      public void setValidationType(String validationType)
    • setValidationRule

      public void setValidationRule(String validationRule)
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
    • setErrorCode

      public void setErrorCode(String errorCode)
    • setAllowedValues

      public void setAllowedValues(List<JpaAttributeChoiceValue> allowedValues)
    • 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