Class DefaultAsCategoryFacade
- java.lang.Object
-
- de.hybris.platform.adaptivesearchbackoffice.facades.impl.DefaultAsCategoryFacade
-
- All Implemented Interfaces:
AsCategoryFacade
public class DefaultAsCategoryFacade extends java.lang.Object implements AsCategoryFacade
Default implementation ofAsCategoryFacade.
-
-
Constructor Summary
Constructors Constructor Description DefaultAsCategoryFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AsCategoryData>buildCategoryBreadcrumbs(java.lang.String catalogId, java.lang.String catalogVersionName, java.util.List<java.lang.String> categoryPath)Returns breadcrumbs for the category path sent.java.util.List<AsCategoryData>buildCategoryBreadcrumbs(java.util.List<java.lang.String> categoryPath)Returns breadcrumbs for the category path sent.protected AsCategoryDatacreateCategory(CategoryModel categoryModel)protected AsCategoryDatacreateGlobalCategory()CatalogVersionServicegetCatalogVersionService()AsCategoryDatagetCategoryHierarchy()Returns the category hierarchy when no catalog version is available.AsCategoryDatagetCategoryHierarchy(java.lang.String catalogId, java.lang.String catalogVersionName)Returns the category hierarchy for a given catalog version.CategoryServicegetCategoryService()L10NServicegetL10nService()protected voidpopulateCategoryHierarchy(AsCategoryData parentCategoryData, CategoryModel category)voidsetCatalogVersionService(CatalogVersionService catalogVersionService)voidsetCategoryService(CategoryService categoryService)voidsetL10nService(L10NService l10nService)
-
-
-
Method Detail
-
getCategoryHierarchy
public AsCategoryData getCategoryHierarchy()
Description copied from interface:AsCategoryFacadeReturns the category hierarchy when no catalog version is available.- Specified by:
getCategoryHierarchyin interfaceAsCategoryFacade- Returns:
- the category hierarchy
-
getCategoryHierarchy
public AsCategoryData getCategoryHierarchy(java.lang.String catalogId, java.lang.String catalogVersionName)
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
-
populateCategoryHierarchy
protected void populateCategoryHierarchy(AsCategoryData parentCategoryData, CategoryModel category)
-
buildCategoryBreadcrumbs
public java.util.List<AsCategoryData> buildCategoryBreadcrumbs(java.util.List<java.lang.String> categoryPath)
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 java.util.List<AsCategoryData> buildCategoryBreadcrumbs(java.lang.String catalogId, java.lang.String catalogVersionName, java.util.List<java.lang.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
-
createCategory
protected AsCategoryData createCategory(CategoryModel categoryModel)
-
createGlobalCategory
protected AsCategoryData createGlobalCategory()
-
getL10nService
public L10NService getL10nService()
-
setL10nService
public void setL10nService(L10NService l10nService)
-
getCatalogVersionService
public CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
getCategoryService
public CategoryService getCategoryService()
-
setCategoryService
public void setCategoryService(CategoryService categoryService)
-
-