Class CatalogRef

java.lang.Object
com.broadleafcommerce.tenant.domain.CatalogRef

public class CatalogRef extends Object
Reference structure for a Catalog to one or more parent catalogs.
Author:
Jeff Fischer
  • Constructor Details

    • CatalogRef

      public CatalogRef()
  • Method Details

    • getId

      public String getId()
      The contextId for the parent catalog.
      Returns:
      The contextId for the parent catalog
    • getName

      public String getName()
      See Also:
      • Catalog.name
    • getMutabilityType

      public String getMutabilityType()
      The editing capabilities for the records inherited from the parent. See MutabilityType for more information.
      Returns:
      The editing capabilities for the records inherited from the parent
    • getInclusionFilters

      public Map<String,String> getInclusionFilters()
      Filters that should always be applied to including the items from the parent catalog, keyed by the entity type the should apply to (e.g. "PRODUCT" or "CATEGORY"). The rule value for each entry should be a valid RSQL string. Create CatalogFilterRulesMappings to map the persistent entity to the key in the appropriate service.
    • getExclusionFilters

      public Map<String,String> getExclusionFilters()
      Filters that filter out any items coming from the parent catalog, keyed by the entity that it should apply to (e.g. "PRODUCT" or "CATEGORY"). The rule value for each entry should be a valid RSQL string. Create CatalogFilterRulesMappings to map the persistent entity to the key in the appropriate service.
    • setId

      public void setId(String id)
      The contextId for the parent catalog.
      Parameters:
      id - The contextId for the parent catalog
    • setName

      public void setName(String name)
      See Also:
      • Catalog.name
    • setMutabilityType

      public void setMutabilityType(String mutabilityType)
      The editing capabilities for the records inherited from the parent. See MutabilityType for more information.
      Parameters:
      mutabilityType - The editing capabilities for the records inherited from the parent
    • setInclusionFilters

      public void setInclusionFilters(Map<String,String> inclusionFilters)
      Filters that should always be applied to including the items from the parent catalog, keyed by the entity type the should apply to (e.g. "PRODUCT" or "CATEGORY"). The rule value for each entry should be a valid RSQL string. Create CatalogFilterRulesMappings to map the persistent entity to the key in the appropriate service.
    • setExclusionFilters

      public void setExclusionFilters(Map<String,String> exclusionFilters)
      Filters that filter out any items coming from the parent catalog, keyed by the entity that it should apply to (e.g. "PRODUCT" or "CATEGORY"). The rule value for each entry should be a valid RSQL string. Create CatalogFilterRulesMappings to map the persistent entity to the key in the appropriate service.
    • 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