Class DefaultCategorySource
java.lang.Object
de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.DefaultCategorySource
- All Implemented Interfaces:
CategorySource
- Direct Known Subclasses:
MarketplaceCategorySource,VariantCategorySource
Source of categories for CategoryCodeValueProvider. Does not include ClassificationClasses by default. Optional root
category is used to restrict categories found to categories that have a path to the root.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcatalogVersionsToString(Collection<CatalogVersionModel> catalogVersions) protected StringcatalogVersionToString(CatalogVersionModel catalogVersion) protected Set<CategoryModel>collectSuperCategories(CategoryModel category, Set<CategoryModel> rootCategories, Set<CategoryModel> path) protected Collection<CategoryModel>getAllCategories(CategoryModel directCategory, Set<CategoryModel> rootCategories) getCategoriesForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) Returns a collection ofCategoryModelof a given indexedProperty that are fetched from the model based on the indexConfig.protected Stringprotected CategoryServiceprotected Set<CategoryModel>getDirectSuperCategories(Set<ProductModel> products) protected ModelServiceprotected Set<ProductModel>getProducts(Object model) protected Stringprotected booleanisBlockedCategory(CategoryModel category) booleanprotected Set<CategoryModel>lookupRootCategories(Collection<CatalogVersionModel> catalogVersions) voidsetCategoriesQualifier(String categoriesQualifier) voidsetCategoryService(CategoryService categoryService) voidsetIncludeClassificationClasses(boolean includeClassificationClasses) voidsetModelService(ModelService modelService) voidsetRootCategory(String rootCategory)
-
Constructor Details
-
DefaultCategorySource
public DefaultCategorySource()
-
-
Method Details
-
getModelService
-
setModelService
-
getCategoriesQualifier
-
setCategoriesQualifier
-
isIncludeClassificationClasses
public boolean isIncludeClassificationClasses() -
setIncludeClassificationClasses
public void setIncludeClassificationClasses(boolean includeClassificationClasses) -
getRootCategory
-
setRootCategory
-
getCategoryService
-
setCategoryService
-
getCategoriesForConfigAndProperty
public Collection<CategoryModel> getCategoriesForConfigAndProperty(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) Description copied from interface:CategorySourceReturns a collection ofCategoryModelof a given indexedProperty that are fetched from the model based on the indexConfig.- Specified by:
getCategoriesForConfigAndPropertyin interfaceCategorySource- Parameters:
indexConfig- index configindexedProperty- indexed propertymodel- model- Returns:
- Collection of categories
-
getProducts
-
getDirectSuperCategories
-
getAllCategories
protected Collection<CategoryModel> getAllCategories(CategoryModel directCategory, Set<CategoryModel> rootCategories) -
isBlockedCategory
-
collectSuperCategories
protected Set<CategoryModel> collectSuperCategories(CategoryModel category, Set<CategoryModel> rootCategories, Set<CategoryModel> path) -
lookupRootCategories
-
catalogVersionToString
-
catalogVersionsToString
-