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 AsCategoryData
createCategory(CategoryModel categoryModel)
protected AsCategoryData
createGlobalCategory()
CatalogVersionService
getCatalogVersionService()
AsCategoryData
getCategoryHierarchy()
Returns the category hierarchy when no catalog version is available.AsCategoryData
getCategoryHierarchy(java.lang.String catalogId, java.lang.String catalogVersionName)
Returns the category hierarchy for a given catalog version.CategoryService
getCategoryService()
L10NService
getL10nService()
protected void
populateCategoryHierarchy(AsCategoryData parentCategoryData, CategoryModel category)
void
setCatalogVersionService(CatalogVersionService catalogVersionService)
void
setCategoryService(CategoryService categoryService)
void
setL10nService(L10NService l10nService)
-
-
-
Method Detail
-
getCategoryHierarchy
public AsCategoryData getCategoryHierarchy()
Description copied from interface:AsCategoryFacade
Returns the category hierarchy when no catalog version is available.- Specified by:
getCategoryHierarchy
in interfaceAsCategoryFacade
- Returns:
- the category hierarchy
-
getCategoryHierarchy
public AsCategoryData getCategoryHierarchy(java.lang.String catalogId, java.lang.String catalogVersionName)
Description copied from interface:AsCategoryFacade
Returns the category hierarchy for a given catalog version.- Specified by:
getCategoryHierarchy
in 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:AsCategoryFacade
Returns breadcrumbs for the category path sent.- Specified by:
buildCategoryBreadcrumbs
in 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:AsCategoryFacade
Returns breadcrumbs for the category path sent.- Specified by:
buildCategoryBreadcrumbs
in 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)
-
-