Class MarketplaceApplicationCatalog

java.lang.Object
com.broadleafcommerce.tenant.domain.MarketplaceApplicationCatalog
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable

public class MarketplaceApplicationCatalog extends Object implements com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable
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

    • MarketplaceApplicationCatalog

      public MarketplaceApplicationCatalog()
  • Method Details

    • getId

      public String getId()
      The context id of the MarketplaceApplicationCatalog instance.
      Returns:
      The context id of the MarketplaceApplicationCatalog instance
    • getCatalog

      public String getCatalog()
      The id of the related Catalog
      Returns:
      The id of the related Catalog
      See Also:
    • 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
    • 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.
    • getVendorRef

      public String getVendorRef()
      The vendor ref that this relationship is for. This is always auto-set by the system to match Catalog.getVendorRef() at the time of creation and is not intended to be mutable.

      Any value for this provided in requests should be ignored.

      Returns:
      the vendor ref that this relationship is for
    • getHydratedCatalog

      @Nullable public Catalog getHydratedCatalog()
      In specific circumstances, the system may need to return a 'hydrated' response to an API caller and will set this value to the full Catalog instance corresponding to getCatalog().

      This should never be accepted by the system in requests, and will be null in situations where hydration does not apply.

      See Also:
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Returns:
      a subset of Tracking information to expose the context state for this object
    • setId

      public void setId(String id)
      The context id of the MarketplaceApplicationCatalog instance.
      Parameters:
      id - The context id of the MarketplaceApplicationCatalog instance
    • setCatalog

      public void setCatalog(String catalog)
      The id of the related Catalog
      Parameters:
      The - id of the related Catalog
      See Also:
    • 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
    • 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.
    • setVendorRef

      public void setVendorRef(String vendorRef)
      The vendor ref that this relationship is for. This is always auto-set by the system to match Catalog.getVendorRef() at the time of creation and is not intended to be mutable.

      Any value for this provided in requests should be ignored.

      Parameters:
      vendorRef - the vendor ref that this relationship is for
    • setHydratedCatalog

      public void setHydratedCatalog(@Nullable Catalog hydratedCatalog)
      In specific circumstances, the system may need to return a 'hydrated' response to an API caller and will set this value to the full Catalog instance corresponding to getCatalog().

      This should never be accepted by the system in requests, and will be null in situations where hydration does not apply.

      See Also:
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Parameters:
      contextState - a subset of Tracking information to expose the context state for this 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
    • toString

      public String toString()
      Overrides:
      toString in class Object