Class DefaultAsCategoryFacade
java.lang.Object
de.hybris.platform.adaptivesearchbackoffice.facades.impl.DefaultAsCategoryFacade
- All Implemented Interfaces:
AsCategoryFacade
Default implementation of
AsCategoryFacade.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCategoryBreadcrumbs(String catalogId, String catalogVersionName, List<String> categoryPath) Returns breadcrumbs for the category path sent.buildCategoryBreadcrumbs(List<String> categoryPath) Returns breadcrumbs for the category path sent.protected Map<PK,List<CategoryModel>> buildCategoryRelations(CatalogVersionModel catalogVersion) protected AsCategoryDatacreateCategory(CategoryModel categoryModel) protected AsCategoryDataprotected AsCategoryDatacreateRangeCategory(int rangeStart, int rangeEnd) Returns the category hierarchy when no catalog version is available.getCategoryHierarchy(String catalogId, String catalogVersionName) Returns the category hierarchy for a given catalog version.protected voidpopulateCategoryHierarchy(Map<PK, List<CategoryModel>> categoryRelations, AsCategoryData parentCategoryData, CategoryModel category) voidsetAsCategoryService(AsCategoryService asCategoryService) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCategoryService(CategoryService categoryService) voidsetL10nService(L10NService l10nService)
-
Field Details
-
MAX_CHILDREN_SIZE
protected static final int MAX_CHILDREN_SIZE- See Also:
-
-
Constructor Details
-
DefaultAsCategoryFacade
public DefaultAsCategoryFacade()
-
-
Method Details
-
getCategoryHierarchy
Description copied from interface:AsCategoryFacadeReturns the category hierarchy when no catalog version is available.- Specified by:
getCategoryHierarchyin interfaceAsCategoryFacade- Returns:
- the category hierarchy
-
getCategoryHierarchy
Description copied from interface:AsCategoryFacadeReturns the category hierarchy for a given catalog version.- Specified by:
getCategoryHierarchyin interfaceAsCategoryFacade- Parameters:
catalogId- - the catalog idcatalogVersionName- - the catalog version name- Returns:
- the category hierarchy
-
buildCategoryRelations
-
populateCategoryHierarchy
protected void populateCategoryHierarchy(Map<PK, List<CategoryModel>> categoryRelations, AsCategoryData parentCategoryData, CategoryModel category) -
buildCategoryBreadcrumbs
Description copied from interface:AsCategoryFacadeReturns breadcrumbs for the category path sent.- Specified by:
buildCategoryBreadcrumbsin interfaceAsCategoryFacade- Parameters:
categoryPath- - list of category codes- Returns:
- the category bread crumb
-
buildCategoryBreadcrumbs
public List<AsCategoryData> buildCategoryBreadcrumbs(String catalogId, String catalogVersionName, List<String> categoryPath) Description copied from interface:AsCategoryFacadeReturns breadcrumbs for the category path sent.- Specified by:
buildCategoryBreadcrumbsin interfaceAsCategoryFacade- Parameters:
catalogId- - the catalog idcatalogVersionName- - the catalog version namecategoryPath- - list of category codes- Returns:
- the category bread crumb
-
createGlobalCategory
-
createCategory
-
createRangeCategory
-
getL10nService
-
setL10nService
-
getCatalogVersionService
-
setCatalogVersionService
-
getCategoryService
-
setCategoryService
-
getAsCategoryService
-
setAsCategoryService
-