java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.domain.asset.JpaProductAsset
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.search.Indexable, com.broadleafcommerce.data.tracking.core.sort.domain.Sortable, 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 JpaProductAsset extends Object implements Serializable, 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, com.broadleafcommerce.data.tracking.core.sort.domain.Sortable, com.broadleafcommerce.translation.domain.Translatable, com.broadleafcommerce.data.tracking.core.search.Indexable
See Also:
  • Constructor Details

    • JpaProductAsset

      public JpaProductAsset()
  • Method Details

    • sortableBounds

      public Map<String,Object> sortableBounds()
      Specified by:
      sortableBounds in interface com.broadleafcommerce.data.tracking.core.sort.domain.Sortable
    • toMe

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

      protected org.modelmapper.Converter<Set<String>,List<JpaProductAssetTag>> tagValuesToTagEntities()
    • fromMe

      @NonNull public org.modelmapper.ModelMapper fromMe()
      Specified by:
      fromMe 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
    • 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
    • getProductContextId

      public String getProductContextId()
    • isPrimary

      public boolean isPrimary()
    • getSorting

      public String getSorting()
      Specified by:
      getSorting in interface com.broadleafcommerce.data.tracking.core.sort.domain.Sortable
    • getTenantId

      public String getTenantId()
      See Also:
      • EntityAsset.getTenantId()
    • getApplicationId

      public String getApplicationId()
      See Also:
      • EntityAsset.getApplicationId()
    • getType

      public String getType()
      See Also:
      • EntityAsset.type
    • getProvider

      public String getProvider()
      See Also:
      • EntityAsset.provider
    • getUrl

      public String getUrl()
      See Also:
      • EntityAsset.url
    • getEmbedCode

      public String getEmbedCode()
      See Also:
      • EntityAsset.embedCode
    • getAltText

      public String getAltText()
      See Also:
      • EntityAsset.altText
    • getTitle

      public String getTitle()
      See Also:
      • EntityAsset.title
    • getTags

      public List<JpaProductAssetTag> getTags()
      See Also:
      • EntityAsset.tags
    • 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>
    • setProductContextId

      public void setProductContextId(String productContextId)
    • setPrimary

      public void setPrimary(boolean primary)
    • setSorting

      public void setSorting(String sorting)
      Specified by:
      setSorting in interface com.broadleafcommerce.data.tracking.core.sort.domain.Sortable
    • setTenantId

      public void setTenantId(String tenantId)
      See Also:
      • EntityAsset.getTenantId()
    • setApplicationId

      public void setApplicationId(String applicationId)
      See Also:
      • EntityAsset.getApplicationId()
    • setType

      public void setType(String type)
      See Also:
      • EntityAsset.type
    • setProvider

      public void setProvider(String provider)
      See Also:
      • EntityAsset.provider
    • setUrl

      public void setUrl(String url)
      See Also:
      • EntityAsset.url
    • setEmbedCode

      public void setEmbedCode(String embedCode)
      See Also:
      • EntityAsset.embedCode
    • setAltText

      public void setAltText(String altText)
      See Also:
      • EntityAsset.altText
    • setTitle

      public void setTitle(String title)
      See Also:
      • EntityAsset.title
    • setTags

      public void setTags(List<JpaProductAssetTag> tags)
      See Also:
      • EntityAsset.tags
    • 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