Class JpaMarketplaceApplicationCatalog

  • 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.tenant.domain.CatalogStatusAware, com.broadleafcommerce.data.tracking.core.TenantTrackable<TenantJpaTracking>, com.broadleafcommerce.data.tracking.core.Trackable, com.broadleafcommerce.data.tracking.core.TypedTrackable<TenantJpaTracking>, Serializable

    @Entity
    public class JpaMarketplaceApplicationCatalog
    extends Object
    implements Serializable, com.broadleafcommerce.data.tracking.core.TenantTrackable<TenantJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.Temporal, com.broadleafcommerce.data.tracking.core.tenant.domain.CatalogStatusAware
    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. This is the sync counterpart to the entity of the same name in the tenant service.
    Author:
    Jeff Fischer
    See Also:
    Catalog.getVendorRef(), MarketplaceApplicationCatalog, Serialized Form
    • Constructor Detail

      • JpaMarketplaceApplicationCatalog

        public JpaMarketplaceApplicationCatalog()
    • Method Detail

      • 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
      • getVendorRef

        public String getVendorRef()
        See Also:
        Catalog.getVendorRef()
      • getApplication

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

        public String getCatalogStatus()
        The status of the catalog's visibility for this assignment.
        Specified by:
        getCatalogStatus in interface com.broadleafcommerce.data.tracking.core.tenant.domain.CatalogStatusAware
        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.
        Specified by:
        getPropagationType in interface com.broadleafcommerce.data.tracking.core.tenant.domain.CatalogStatusAware
        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 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
      • setVendorRef

        public void setVendorRef​(String vendorRef)
        See Also:
        Catalog.getVendorRef()
      • setApplication

        public void setApplication​(String application)
        The id of the related Application
        Parameters:
        The - id of the related Application
      • 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​(TenantJpaTracking tracking)
        Retrieve the tracking information from the entity
        Specified by:
        setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<TenantJpaTracking>
        Parameters:
        tracking - Tracking information
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object