Class JpaTenantMarketplaceApplicationCatalog

java.lang.Object
com.broadleafcommerce.tenant.provider.jpa.domain.JpaTenantMarketplaceApplicationCatalog
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.Temporal, com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>, com.broadleafcommerce.data.tracking.core.Trackable, com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>, Serializable

@Entity @PolicyVariance(TENANT_TRACKABLE_APP_CONTEXT) public class JpaTenantMarketplaceApplicationCatalog extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.Temporal
Reference structure for a Application to its individually assigned Catalog instances. This relationship is specific to catalogs belonging to vendors in the marketplace use case.
Author:
Jeff Fischer
See Also:
  • Constructor Details

    • JpaTenantMarketplaceApplicationCatalog

      public JpaTenantMarketplaceApplicationCatalog()
  • Method Details

    • getBusinessDomainType

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

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

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

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

      public String getCatalog()
      The id of the related Catalog
      Returns:
      The id of the related Catalog
    • getImplicit

      public String getImplicit()
      The id of the implicit catalog for the application that will contain the application's overrides of items from catalog.
      Returns:
      The id of the implicit catalog for the application
    • getApplication

      public String getApplication()
      The id of the related Application
      Returns:
      The id of the related Application
    • getVendorRef

      public String getVendorRef()
      See Also:
    • getCatalogStatus

      public String getCatalogStatus()
      The status of the catalog's visibility for this assignment.
      Returns:
      The status of the catalog's visibility for this assignment.
    • getPropagationType

      public String getPropagationType()
      The PropagationType of the how changes from a vendor will be received into the marketplace application. The default is PropagationType.DIRECT.
      Returns:
      The PropagationType of the how changes from a vendor will be received into the marketplace application.
    • getTimestamp

      public Instant getTimestamp()
      Temporal state describing the time at which this item was last updated. Relates to the Temporal interface and is primarily used during consumption of messages regarding changes in state to this domain. For example, a service consuming a change notification for this domain can compare the current persisted timestamp to this timestamp to determine if it already has a newer version, in which case, it can ignore. This is primarily a measure to ensure that ordering is not required for messages related to state change.
      Specified by:
      getTimestamp in interface com.broadleafcommerce.data.tracking.core.Temporal
      Returns:
      Temporal state describing the time at which this item was last updated
    • getTracking

      public com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking getTracking()
      Retrieve the tracking information from the entity
      Specified by:
      getTracking in interface com.broadleafcommerce.data.tracking.core.Trackable
      Returns:
      Tracking information
    • setContextId

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

      public void setCatalog(String catalog)
      The id of the related Catalog
      Parameters:
      The - id of the related Catalog
    • setImplicit

      public void setImplicit(String implicit)
      The id of the implicit catalog for the application that will contain the application's overrides of items from catalog.
      Parameters:
      implicit - The id of the implicit catalog for the application
    • setApplication

      public void setApplication(String application)
      The id of the related Application
      Parameters:
      The - id of the related Application
    • setVendorRef

      public void setVendorRef(String vendorRef)
      See Also:
    • setCatalogStatus

      public void setCatalogStatus(String catalogStatus)
      The status of the catalog's visibility for this assignment.
      Parameters:
      catalogStatus - The status of the catalog's visibility for this assignment.
    • setPropagationType

      public void setPropagationType(String propagationType)
      The PropagationType of the how changes from a vendor will be received into the marketplace application. The default is PropagationType.DIRECT.
      Parameters:
      propagationType - The PropagationType of the how changes from a vendor will be received into the marketplace application.
    • setTimestamp

      public void setTimestamp(Instant timestamp)
      Temporal state describing the time at which this item was last updated. Relates to the Temporal interface and is primarily used during consumption of messages regarding changes in state to this domain. For example, a service consuming a change notification for this domain can compare the current persisted timestamp to this timestamp to determine if it already has a newer version, in which case, it can ignore. This is primarily a measure to ensure that ordering is not required for messages related to state change.
      Specified by:
      setTimestamp in interface com.broadleafcommerce.data.tracking.core.Temporal
      Parameters:
      timestamp - Temporal state describing the time at which this item was last updated
    • setTracking

      public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking)
      Retrieve the tracking information from the entity
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
      Parameters:
      tracking - Tracking information
    • 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