Class CategoryImpl
java.lang.Object
org.broadleafcommerce.core.catalog.domain.CategoryImpl
- All Implemented Interfaces:
Serializable,AdminMainEntity,MultiTenantCloneable<Category>,Status,TemplatePathContainer,Locatable,Category,CategoryAdminPresentation
@Entity
public class CategoryImpl
extends Object
implements Category, Status, AdminMainEntity, Locatable, TemplatePathContainer, CategoryAdminPresentation
- Author:
- bTaylor, Jeff Fischer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.broadleafcommerce.core.catalog.domain.CategoryAdminPresentation
CategoryAdminPresentation.FieldOrder, CategoryAdminPresentation.GroupName, CategoryAdminPresentation.GroupOrder, CategoryAdminPresentation.TabName, CategoryAdminPresentation.TabOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dateprotected Dateprotected List<CategoryXref>protected List<CategoryXref>protected List<CategoryProductXref>protected ArchiveStatusprotected List<CategoryAttribute>protected Map<String,CategoryMediaXref> Deprecated.protected List<CategoryXref>protected List<RelatedProduct>protected CategoryDeprecated.protected Stringprotected Stringprotected List<CategoryExcludedSearchFacet>protected Stringprotected static Comparator<CategorySearchFacet>protected List<FeaturedProduct>protected List<RelatedProduct>protected List<FeaturedProduct>protected List<RelatedProduct>protected Stringprotected Longprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Booleanprotected Stringprotected Stringprotected BigDecimalprotected List<CategorySearchFacet>protected static Comparatorprotected Stringprotected List<RelatedProduct>protected Stringprotected StringFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildDefaultParentCategoryPath(List<Category> currentPath) Build category hierarchy by walking the default category tree up to the root category.<G extends Category>
CreateResponse<G>booleanGets the active end date.Deprecated.Gets the active start date.Deprecated.Deprecated.Retrieve all the xref entities linking this category to parent categoriesDeprecated.Convenience method to get aCategoryAttributeby nameGets the attributes for thisCategory.Gets the attributes for thisCategory.Deprecated.Gets the category media map.Deprecated.Gets the child category ids.Deprecated.Returns a list of cross sale products that are related to this category.Returns a list of the cross sale products in this category as well as all cross sale products in all parent categories of this category.Returns a list of the featured products in this category as well as all featured products in all parent categories of this category.Returns a list of CategorySearchFacets that takes into consideration the search facets for this Category, the search facets for all parent categories, and the search facets that should be excluded from this Category.getCumulativeSearchFacets(Set<Category> categoryHierarchy) Returns a list of CategorySearchFacets that takes into consideration the search facets for this Category, the search facets for all parent categories, and the search facets that should be excluded from this Category.Returns a list of the upsale products in this category as well as all upsale products in all parent categories of this category.Deprecated.Gets the description.Gets the display template.Gets the excluded SearchFacetsIntended to hold any unique identifier not tied to the Broadleaf Database Sequence Identifier.Gets the featured products.Returns the default fulfillment type for skus in this category.Creates the SEO url starting from this category and recursing up the hierarchy of default parent categories until the topmost category is reached.getId()Gets the primary key.Used to determine availability for all of the products/skus in this categoryGets the long description.Convenience method to return theCategoryAttributes for theCategoryin an easily-consumable formGets the meta data description of the categoryGets the meta data title of the categorygetName()Gets the name.Return the category that is the parent of this category - if applicablegetParentCategoryHierarchy(List<Category> currentPath) Build the full category hierarchy by walking up the default category tree and the all parent category tree.getParentCategoryHierarchy(List<Category> currentPath, Boolean firstParent) Build the full category hierarchy by walking up the default category tree and the all parent category tree.Return the parent category xref of the default parent or first applicable parentprotected List<CategorySearchFacet>getParentFacets(Collection<SearchFacet> facets) Retrieve the displayOrder that is used if the Category does not have any parentsReturns all of the SearchFacets that are directly associated with this CategoryReturns the tax code of this category.Returns a list of cross sale products that are related to this category.getUrl()Gets the url.Gets the url key.booleanChecks for child categories.booleanChecks for child categories.inthashCode()booleanisActive()Checks if is active.voidsetActiveEndDate(Date activeEndDate) Sets the active end date.voidsetActiveStartDate(Date activeStartDate) Sets the active start date.voidsetAllChildCategories(List<Category> childCategories) Deprecated.voidsetAllChildCategoryXrefs(List<CategoryXref> childCategories) voidsetAllParentCategories(List<Category> allParentCategories) Deprecated.voidsetAllParentCategoryXrefs(List<CategoryXref> allParentCategories) Set all the xref entities linking this product to parent categoriesvoidsetAllProducts(List<Product> allProducts) Deprecated.voidsetAllProductXrefs(List<CategoryProductXref> allProducts) voidsetArchived(Character archived) voidsetCategoryAttributes(List<CategoryAttribute> categoryAttributes) Sets the attributes for thisCategory.voidsetCategoryAttributesMap(Map<String, CategoryAttribute> categoryAttributes) voidsetCategoryMedia(Map<String, Media> categoryMedia) Deprecated.voidsetCategoryMediaXref(Map<String, CategoryMediaXref> categoryMediaXref) Sets the category media.voidsetChildCategories(List<Category> childCategories) Deprecated.voidsetChildCategoryIds(List<Long> childCategoryIds) Sets the all child category ids.voidsetChildCategoryURLMap(Map<String, List<Long>> childCategoryURLMap) Deprecated.voidsetChildCategoryXrefs(List<CategoryXref> childCategories) voidsetCrossSaleProducts(List<RelatedProduct> crossSaleProducts) Sets the cross sale products that are related to this category.voidsetDefaultParentCategory(Category defaultParentCategory) Deprecated.voidsetDescription(String description) Sets the description.voidsetDisplayTemplate(String displayTemplate) Sets the display template.voidsetExcludedSearchFacets(List<CategoryExcludedSearchFacet> excludedSearchFacets) Sets the SearchFacets that should not be rendered by this Category.voidsetExternalId(String externalId) Sets a unique external IDvoidsetFeaturedProducts(List<FeaturedProduct> featuredProducts) Sets the featured products.voidsetFulfillmentType(FulfillmentType fulfillmentType) Sets the default fulfillment type for skus in this category.voidSets the primary key.voidsetInventoryType(InventoryType inventoryType) Sets the type of inventory for this categoryvoidsetLongDescription(String longDescription) Sets the long description.voidsetMetaDescription(String metaDescription) Sets the meta data description of the categoryvoidsetMetaTitle(String metaTitle) Sets the meta data title of the categoryvoidSets the name.voidsetOverrideGeneratedUrl(Boolean overrideGeneratedUrl) Sets the flag for whether or not the URL should not be generated in the adminvoidsetParentCategory(Category category) Set the parent category of this categoryvoidsetProductDescriptionPatternOverride(String productDescriptionPatternOverride) voidsetProductTitlePatternOverride(String productTitlePatternOverride) voidsetRootDisplayOrder(BigDecimal rootDisplayOrder) Set the displayOrder that is used if the Category does not have any parentsvoidsetSearchFacets(List<CategorySearchFacet> searchFacets) Sets the SearchFacets that are directly associated with this CategoryvoidsetTaxCode(String taxCode) Sets the tax code of this category.voidsetUpSaleProducts(List<RelatedProduct> upSaleProducts) Sets the upsale products that are related to this category.voidSets the url.voidSets the url key.
-
Field Details
-
facetPositionComparator
-
sequenceComparator
-
id
-
name
-
url
-
overrideGeneratedUrl
-
externalId
-
urlKey
-
description
-
taxCode
-
activeStartDate
-
activeEndDate
-
displayTemplate
-
longDescription
-
rootDisplayOrder
-
metaTitle
-
metaDescription
-
productTitlePatternOverride
-
productDescriptionPatternOverride
-
defaultParentCategory
Deprecated. -
allChildCategoryXrefs
-
allParentCategoryXrefs
-
allProductXrefs
-
categoryMedia
-
legacyCategoryMedia
-
featuredProducts
-
crossSaleProducts
-
upSaleProducts
-
searchFacets
-
excludedSearchFacets
-
categoryAttributes
-
inventoryType
-
fulfillmentType
-
archiveStatus
-
childCategoryURLMap
Deprecated. -
childCategoryIds
-
childCategoryXrefs
-
legacyChildCategories
-
allLegacyChildCategories
-
filteredFeaturedProducts
-
filteredCrossSales
-
filteredUpSales
-
-
Constructor Details
-
CategoryImpl
public CategoryImpl()
-
-
Method Details
-
getId
Description copied from interface:CategoryGets the primary key. -
setId
Description copied from interface:CategorySets the primary key. -
getName
Description copied from interface:CategoryGets the name. -
setName
Description copied from interface:CategorySets the name. -
getUrl
Description copied from interface:CategoryGets the url. The url represents the presentation layer destination for this category. For example, if using Spring MVC, you could send the user to this destination by returning"redirect:"+currentCategory.getUrl();from a controller. -
setUrl
Description copied from interface:CategorySets the url. The url represents the presentation layer destination for this category. For example, if using Spring MVC, you could send the user to this destination by returning"redirect:"+currentCategory.getUrl();from a controller. -
getOverrideGeneratedUrl
- Specified by:
getOverrideGeneratedUrlin interfaceCategory- Returns:
- the flag for whether or not the URL should not be generated in the admin
-
setOverrideGeneratedUrl
Description copied from interface:CategorySets the flag for whether or not the URL should not be generated in the admin- Specified by:
setOverrideGeneratedUrlin interfaceCategory
-
getUrlKey
Description copied from interface:CategoryGets the url key. The url key is used as part of SEO url generation for this category. Each segment of the url leading to a category is comprised of the url keys of the various associated categories in a hierarchy leading to this one. If the url key is null, the the name for the category formatted with dashes for spaces. -
setUrlKey
Description copied from interface:CategorySets the url key. The url key is used as part of SEO url generation for this category. Each segment of the url leading to a category is comprised of the url keys of the various associated categories in a hierarchy leading to this one. -
getGeneratedUrl
Description copied from interface:CategoryCreates the SEO url starting from this category and recursing up the hierarchy of default parent categories until the topmost category is reached. The url key for each category is used for each segment of the SEO url.- Specified by:
getGeneratedUrlin interfaceCategory- Returns:
- the generated SEO url for this category
-
getDescription
Description copied from interface:CategoryGets the description.- Specified by:
getDescriptionin interfaceCategory- Returns:
- the description
-
setDescription
Description copied from interface:CategorySets the description.- Specified by:
setDescriptionin interfaceCategory- Parameters:
description- the new description
-
getActiveStartDate
Description copied from interface:CategoryGets the active start date. If the current date is before activeStartDate, then this category will not be visible on the site.- Specified by:
getActiveStartDatein interfaceCategory- Returns:
- the active start date
-
setActiveStartDate
Description copied from interface:CategorySets the active start date. If the current date is before activeStartDate, then this category will not be visible on the site.- Specified by:
setActiveStartDatein interfaceCategory- Parameters:
activeStartDate- the new active start date
-
getActiveEndDate
Description copied from interface:CategoryGets the active end date. If the current date is after activeEndDate, the this category will not be visible on the site.- Specified by:
getActiveEndDatein interfaceCategory- Returns:
- the active end date
-
setActiveEndDate
Description copied from interface:CategorySets the active end date. If the current date is after activeEndDate, the this category will not be visible on the site.- Specified by:
setActiveEndDatein interfaceCategory- Parameters:
activeEndDate- the new active end date
-
isActive
public boolean isActive()Description copied from interface:CategoryChecks if is active. Returns true if the startDate is null or if the current date is after the start date, or if the endDate is null or if the current date is before the endDate. -
getDisplayTemplate
Description copied from interface:CategoryGets the display template. The display template can be used to help create a unique key that drives the presentation layer destination for this category. For example, if using Spring MVC, you might derive the view destination in this way:view = categoryTemplatePrefix + currentCategory.getDisplayTemplate();- Specified by:
getDisplayTemplatein interfaceCategory- Specified by:
getDisplayTemplatein interfaceTemplatePathContainer- Returns:
- the display template
-
setDisplayTemplate
Description copied from interface:CategorySets the display template. The display template can be used to help create a unique key that drives the presentation layer destination for this category. For example, if using Spring MVC, you might derive the view destination in this way:view = categoryTemplatePrefix + currentCategory.getDisplayTemplate();- Specified by:
setDisplayTemplatein interfaceCategory- Parameters:
displayTemplate- the new display template
-
getLongDescription
Description copied from interface:CategoryGets the long description.- Specified by:
getLongDescriptionin interfaceCategory- Returns:
- the long description
-
setLongDescription
Description copied from interface:CategorySets the long description.- Specified by:
setLongDescriptionin interfaceCategory- Parameters:
longDescription- the new long description
-
getMetaTitle
Description copied from interface:CategoryGets the meta data title of the category- Specified by:
getMetaTitlein interfaceCategory- Returns:
-
setMetaTitle
Description copied from interface:CategorySets the meta data title of the category- Specified by:
setMetaTitlein interfaceCategory
-
getMetaDescription
Description copied from interface:CategoryGets the meta data description of the category- Specified by:
getMetaDescriptionin interfaceCategory- Returns:
-
setMetaDescription
Description copied from interface:CategorySets the meta data description of the category- Specified by:
setMetaDescriptionin interfaceCategory
-
getProductTitlePatternOverride
- Specified by:
getProductTitlePatternOverridein interfaceCategory
-
setProductTitlePatternOverride
- Specified by:
setProductTitlePatternOverridein interfaceCategory
-
getProductDescriptionPatternOverride
- Specified by:
getProductDescriptionPatternOverridein interfaceCategory
-
setProductDescriptionPatternOverride
- Specified by:
setProductDescriptionPatternOverridein interfaceCategory
-
getDefaultParentCategory
Deprecated.Description copied from interface:CategoryGets the default parent category. This method will delegate toCategory.getParentCategory()by default, unless the "use.legacy.default.category.mode" property is set to true in the implementation's property file. If set to true, this method will use legacy behavior, which is to return the deprecated defaultParentCategory field.- Specified by:
getDefaultParentCategoryin interfaceCategory- Returns:
- the default parent category
-
setDefaultParentCategory
Deprecated.Description copied from interface:CategorySets the default parent category. This method will delegate toCategory.setParentCategory(Category)by default, unless the "use.legacy.default.category.mode" property is set to true in the implementation's property file. If set to true, this method will use legacy behavior, which is to set the deprecated defaultParentCategory field.- Specified by:
setDefaultParentCategoryin interfaceCategory- Parameters:
defaultParentCategory- the new default parent category
-
getParentCategory
Description copied from interface:CategoryReturn the category that is the parent of this category - if applicable- Specified by:
getParentCategoryin interfaceCategory- Returns:
-
setParentCategory
Description copied from interface:CategorySet the parent category of this category- Specified by:
setParentCategoryin interfaceCategory
-
getParentCategoryXref
Description copied from interface:CategoryReturn the parent category xref of the default parent or first applicable parent- Specified by:
getParentCategoryXrefin interfaceCategory- Returns:
-
getAllChildCategoryXrefs
- Specified by:
getAllChildCategoryXrefsin interfaceCategory
-
setAllChildCategoryXrefs
- Specified by:
setAllChildCategoryXrefsin interfaceCategory
-
getChildCategoryXrefs
- Specified by:
getChildCategoryXrefsin interfaceCategory
-
setChildCategoryXrefs
- Specified by:
setChildCategoryXrefsin interfaceCategory
-
getAllChildCategories
Deprecated.Description copied from interface:CategoryGets the child categories. This list includes all categories, regardless of whether or not they are active.- Specified by:
getAllChildCategoriesin interfaceCategory- Returns:
- the list of active and inactive child categories.
-
setAllChildCategories
Deprecated.Description copied from interface:CategorySets the list of child categories (active and inactive)- Specified by:
setAllChildCategoriesin interfaceCategory- Parameters:
childCategories- the list of child categories
-
hasAllChildCategories
public boolean hasAllChildCategories()Description copied from interface:CategoryChecks for child categories.- Specified by:
hasAllChildCategoriesin interfaceCategory- Returns:
- true, if this category has any children (active or not)
-
getChildCategories
Deprecated.Description copied from interface:CategoryGets the child categories. If child categories has not been previously set, then the list of active only categories will be returned.- Specified by:
getChildCategoriesin interfaceCategory- Returns:
- the list of active child categories
-
setChildCategories
Deprecated.Description copied from interface:CategorySets the all child categories. This should be a list of active only child categories.- Specified by:
setChildCategoriesin interfaceCategory- Parameters:
childCategories- the list of active child categories.
-
hasChildCategories
public boolean hasChildCategories()Description copied from interface:CategoryChecks for child categories.- Specified by:
hasChildCategoriesin interfaceCategory- Returns:
- true, if this category contains any active child categories.
-
getChildCategoryIds
Description copied from interface:CategoryGets the child category ids. If child categories has not been previously set, then the list of active only categories will be returned. This method is optimized with Hydrated cache, which means that the algorithm required to harvest active child categories will not need to be rebuilt as long as the parent category (this category) is not evicted from second level cache.- Specified by:
getChildCategoryIdsin interfaceCategory- Returns:
- the list of active child category ids
-
setChildCategoryIds
Description copied from interface:CategorySets the all child category ids. This should be a list of active only child categories.- Specified by:
setChildCategoryIdsin interfaceCategory- Parameters:
childCategoryIds- the list of active child category ids.
-
createChildCategoryIds
-
getChildCategoryURLMap
Deprecated.Description copied from interface:CategoryGets the child category url map. This map is keyed off of theCategory.getGeneratedUrl()values for this category and all of its child categories. By calling get on this map using the generated url for a given category, you will receive the list of immediate child categories. This is inefficient, so its use is highly discouraged.- Specified by:
getChildCategoryURLMapin interfaceCategory- Returns:
- the child category url map
-
setChildCategoryURLMap
Deprecated.Description copied from interface:CategorySet the child category url map. This approach is inefficient, so its use is highly discouraged.- Specified by:
setChildCategoryURLMapin interfaceCategory
-
createChildCategoryURLMap
-
getParentCategoryHierarchy
Description copied from interface:CategoryBuild the full category hierarchy by walking up the default category tree and the all parent category tree.- Specified by:
getParentCategoryHierarchyin interfaceCategory- Returns:
- the full hierarchy
-
getParentCategoryHierarchy
Description copied from interface:CategoryBuild the full category hierarchy by walking up the default category tree and the all parent category tree. Adds the option of only adding the first parent found.- Specified by:
getParentCategoryHierarchyin interfaceCategoryfirstParent- determines if ONLY the first parent category should be returned per hierarchy tier- Returns:
- the full hierarchy
-
buildDefaultParentCategoryPath
Description copied from interface:CategoryBuild category hierarchy by walking the default category tree up to the root category. If the passed in tree is null then create the initial list.- Specified by:
buildDefaultParentCategoryPathin interfaceCategory- Returns:
-
getAllParentCategoryXrefs
Description copied from interface:CategoryRetrieve all the xref entities linking this category to parent categories- Specified by:
getAllParentCategoryXrefsin interfaceCategory
-
setAllParentCategoryXrefs
Description copied from interface:CategorySet all the xref entities linking this product to parent categories- Specified by:
setAllParentCategoryXrefsin interfaceCategory
-
getAllParentCategories
Deprecated.Description copied from interface:CategoryRetrieve all parent categories- Specified by:
getAllParentCategoriesin interfaceCategory- Returns:
- the list of parent categories
-
setAllParentCategories
Deprecated.Description copied from interface:CategorySets the list of parent categories- Specified by:
setAllParentCategoriesin interfaceCategory- Parameters:
allParentCategories- the list of parent categories
-
getRootDisplayOrder
Description copied from interface:CategoryRetrieve the displayOrder that is used if the Category does not have any parents- Specified by:
getRootDisplayOrderin interfaceCategory
-
setRootDisplayOrder
Description copied from interface:CategorySet the displayOrder that is used if the Category does not have any parents- Specified by:
setRootDisplayOrderin interfaceCategory
-
getFeaturedProducts
Description copied from interface:CategoryGets the featured products. Featured products are a special list of products you would like to showcase for this category.- Specified by:
getFeaturedProductsin interfaceCategory- Returns:
- the featured products
-
setFeaturedProducts
Description copied from interface:CategorySets the featured products. Featured products are a special list of products you would like to showcase for this category.- Specified by:
setFeaturedProductsin interfaceCategory- Parameters:
featuredProducts- the featured products
-
getCrossSaleProducts
Description copied from interface:CategoryReturns a list of cross sale products that are related to this category.- Specified by:
getCrossSaleProductsin interfaceCategory- Returns:
- a list of cross sale products
-
setCrossSaleProducts
Description copied from interface:CategorySets the cross sale products that are related to this category.- Specified by:
setCrossSaleProductsin interfaceCategory- See Also:
-
getUpSaleProducts
Description copied from interface:CategoryReturns a list of cross sale products that are related to this category.- Specified by:
getUpSaleProductsin interfaceCategory- Returns:
- a list of cross sale products
-
setUpSaleProducts
Description copied from interface:CategorySets the upsale products that are related to this category.- Specified by:
setUpSaleProductsin interfaceCategory- See Also:
-
getCumulativeCrossSaleProducts
Description copied from interface:CategoryReturns a list of the cross sale products in this category as well as all cross sale products in all parent categories of this category.- Specified by:
getCumulativeCrossSaleProductsin interfaceCategory- Returns:
- the cumulative cross sale products
-
getCumulativeUpSaleProducts
Description copied from interface:CategoryReturns a list of the upsale products in this category as well as all upsale products in all parent categories of this category.- Specified by:
getCumulativeUpSaleProductsin interfaceCategory- Returns:
- the cumulative upsale products
-
getCumulativeFeaturedProducts
Description copied from interface:CategoryReturns a list of the featured products in this category as well as all featured products in all parent categories of this category.- Specified by:
getCumulativeFeaturedProductsin interfaceCategory- Returns:
- the cumulative featured products
-
getActiveProductXrefs
- Specified by:
getActiveProductXrefsin interfaceCategory
-
getAllProductXrefs
- Specified by:
getAllProductXrefsin interfaceCategory
-
setAllProductXrefs
- Specified by:
setAllProductXrefsin interfaceCategory
-
getActiveProducts
Deprecated.Description copied from interface:CategoryConvenience method to retrieve all of thisCategory'sProducts filtered by active. If you want all of theProducts (whether inactive or not) consider usingCategory.getAllProducts().- Specified by:
getActiveProductsin interfaceCategory- Returns:
- the list of active
Products for thisCategory
-
getAllProducts
Deprecated.Description copied from interface:CategoryRetrieve all theProductinstances associated with this category.
Note: this method does not take into account whether or not theProducts are active or not. If you need this functionality, useCategory.getActiveProducts()- Specified by:
getAllProductsin interfaceCategory- Returns:
- the list of products associated with this category.
-
setAllProducts
Deprecated.Description copied from interface:CategorySet all theProductinstances associated with this category.- Specified by:
setAllProductsin interfaceCategory- Parameters:
allProducts- the list of products to associate with this category
-
getSearchFacets
Description copied from interface:CategoryReturns all of the SearchFacets that are directly associated with this Category- Specified by:
getSearchFacetsin interfaceCategory- Returns:
- related SearchFacets
-
setSearchFacets
Description copied from interface:CategorySets the SearchFacets that are directly associated with this Category- Specified by:
setSearchFacetsin interfaceCategory
-
getExcludedSearchFacets
Description copied from interface:CategoryGets the excluded SearchFacets- Specified by:
getExcludedSearchFacetsin interfaceCategory- Returns:
- the excluded SearchFacets
-
setExcludedSearchFacets
Description copied from interface:CategorySets the SearchFacets that should not be rendered by this Category. Typically, this will include facets from parent categories that do not apply to this category.- Specified by:
setExcludedSearchFacetsin interfaceCategory
-
getInventoryType
Description copied from interface:CategoryUsed to determine availability for all of the products/skus in this category- Specified by:
getInventoryTypein interfaceCategory- Returns:
- the
InventoryTypefor this category
-
setInventoryType
Description copied from interface:CategorySets the type of inventory for this category- Specified by:
setInventoryTypein interfaceCategory- Parameters:
inventoryType- theInventoryTypefor this category
-
getFulfillmentType
Description copied from interface:CategoryReturns the default fulfillment type for skus in this category. May be null.- Specified by:
getFulfillmentTypein interfaceCategory- Returns:
-
setFulfillmentType
Description copied from interface:CategorySets the default fulfillment type for skus in this category. May return null.- Specified by:
setFulfillmentTypein interfaceCategory
-
getParentFacets
-
getCumulativeSearchFacets
Description copied from interface:CategoryReturns a list of CategorySearchFacets that takes into consideration the search facets for this Category, the search facets for all parent categories, and the search facets that should be excluded from this Category. This method will order the resulting list based on theCategorySearchFacet#getPosition()method for each category level. That is, the facets on this Category will be ordered by their position relative to each other with the ordered parent facets after that, etc.- Specified by:
getCumulativeSearchFacetsin interfaceCategory- Returns:
- the current active search facets for this category and all parent categories
-
getCumulativeSearchFacets
Description copied from interface:CategoryReturns a list of CategorySearchFacets that takes into consideration the search facets for this Category, the search facets for all parent categories, and the search facets that should be excluded from this Category. This method will order the resulting list based on theCategorySearchFacet#getPosition()method for each category level. That is, the facets on this Category will be ordered by their position relative to each other with the ordered parent facets after that, etc.Takes a Set of the categories that have been traversed in order to protect from circular dependencies.
- Specified by:
getCumulativeSearchFacetsin interfaceCategory- Returns:
- the current active search facets for this category and all parent categories *
-
getCategoryMedia
Deprecated.Description copied from interface:CategoryGets the category media map. The key is of arbitrary meaning and theMediainstance stores information about the media itself (image url, etc...)- Specified by:
getCategoryMediain interfaceCategory- Returns:
- the category Media
-
setCategoryMedia
Deprecated.Description copied from interface:CategorySets the category media. The key is of arbitrary meaning and theMediainstance stores information about the media itself (image url, etc...)- Specified by:
setCategoryMediain interfaceCategory- Parameters:
categoryMedia- the category media
-
getCategoryMediaXref
Description copied from interface:CategoryGets the category media map. The key is of arbitrary meaning and theMediainstance stores information about the media itself (image url, etc...)- Specified by:
getCategoryMediaXrefin interfaceCategory- Returns:
- the category Media
-
setCategoryMediaXref
Description copied from interface:CategorySets the category media. The key is of arbitrary meaning and theMediainstance stores information about the media itself (image url, etc...)- Specified by:
setCategoryMediaXrefin interfaceCategory- Parameters:
categoryMediaXref- the category media
-
getCategoryAttributesMap
Description copied from interface:CategoryGets the attributes for thisCategory. In smaller sites, using these attributes might be preferred to extending the domain object itself.- Specified by:
getCategoryAttributesMapin interfaceCategory- Returns:
-
setCategoryAttributesMap
- Specified by:
setCategoryAttributesMapin interfaceCategory
-
getCategoryAttributes
Description copied from interface:CategoryGets the attributes for thisCategory. In smaller sites, using these attributes might be preferred to extending the domain object itself.- Specified by:
getCategoryAttributesin interfaceCategory- Returns:
-
setCategoryAttributes
Description copied from interface:CategorySets the attributes for thisCategory. In smaller sites, using these attributes might be preferred to extending the domain object and creating a new table to store custom properties.- Specified by:
setCategoryAttributesin interfaceCategory
-
getCategoryAttributeByName
Description copied from interface:CategoryConvenience method to get aCategoryAttributeby name- Specified by:
getCategoryAttributeByNamein interfaceCategory- Returns:
-
getMappedCategoryAttributes
Description copied from interface:CategoryConvenience method to return theCategoryAttributes for theCategoryin an easily-consumable form- Specified by:
getMappedCategoryAttributesin interfaceCategory- Returns:
-
getMultiValueCategoryAttributes
- Specified by:
getMultiValueCategoryAttributesin interfaceCategory
-
getArchived
- Specified by:
getArchivedin interfaceStatus
-
setArchived
- Specified by:
setArchivedin interfaceStatus
-
hashCode
public int hashCode() -
equals
-
createOrRetrieveCopyInstance
public <G extends Category> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<Category>- Throws:
CloneNotSupportedException
-
getMainEntityName
- Specified by:
getMainEntityNamein interfaceAdminMainEntity
-
getTaxCode
Description copied from interface:CategoryReturns the tax code of this category.- Specified by:
getTaxCodein interfaceCategory- Returns:
- taxCode
-
setTaxCode
Description copied from interface:CategorySets the tax code of this category.- Specified by:
setTaxCodein interfaceCategory
-
getLocation
- Specified by:
getLocationin interfaceLocatable
-
getExternalId
Description copied from interface:CategoryIntended to hold any unique identifier not tied to the Broadleaf Database Sequence Identifier. For example, many implementations may integrate or import/export data from other systems that manage their own unique identifiers.- Specified by:
getExternalIdin interfaceCategory- Returns:
- external ID
-
setExternalId
Description copied from interface:CategorySets a unique external ID- Specified by:
setExternalIdin interfaceCategory
-