public class DefaultCategoriesReader extends Object implements CategoriesReader
| Constructor and Description |
|---|
DefaultCategoriesReader() |
| Modifier and Type | Method and Description |
|---|---|
CategoryData |
findCategoriesForCatalog(String catalogId,
String catalogVersionName,
Integer level,
boolean shouldHaveProducts,
Set<String> localizations) |
CategoryData |
findCategoriesForCatalog(String catalogId,
String catalogVersionName,
String[] rootCategoryCodes,
Integer level,
boolean shouldHaveProducts,
Set<String> localizations) |
protected CategoryData |
findCategoriesForCategory(CategoryModel category,
Integer level) |
CategoryData |
findCategoriesForCategory(String catalogId,
String catalogVersionName,
String rootCategory,
Integer level) |
CatalogVersionService |
getCatalogVersionService() |
CategoryConverter |
getCategoryConverter() |
CategoryService |
getCategoryService() |
Collection<CategoryModel> |
getRootCategories(CatalogVersionModel catalogVersionModel) |
Collection<CategoryModel> |
getRootCategories(String catalogId,
String catalogVersionName) |
void |
setCatalogVersionService(CatalogVersionService catalogVersionService) |
void |
setCategoryConverter(CategoryConverter categoryConverter) |
void |
setCategoryService(CategoryService categoryService) |
public Collection<CategoryModel> getRootCategories(CatalogVersionModel catalogVersionModel)
getRootCategories in interface CategoriesReaderpublic Collection<CategoryModel> getRootCategories(String catalogId, String catalogVersionName)
getRootCategories in interface CategoriesReaderpublic CategoryData findCategoriesForCatalog(String catalogId, String catalogVersionName, Integer level, boolean shouldHaveProducts, Set<String> localizations)
findCategoriesForCatalog in interface CategoriesReadercatalogId - product catalog to get categories fromcatalogVersionName - product catalog's versionlevel - level of subcategoriespublic CategoryData findCategoriesForCatalog(String catalogId, String catalogVersionName, String[] rootCategoryCodes, Integer level, boolean shouldHaveProducts, Set<String> localizations)
findCategoriesForCatalog in interface CategoriesReadercatalogId - product catalog to get categories fromcatalogVersionName - product catalog's versionrootCategoryCodes - root categories used in navigationlevel - level of subcategoriespublic CategoryData findCategoriesForCategory(String catalogId, String catalogVersionName, String rootCategory, Integer level)
findCategoriesForCategory in interface CategoriesReadercatalogId - product catalog to get categories fromcatalogVersionName - product catalog's versionrootCategory - root category codelevel - level of subcategoriesprotected CategoryData findCategoriesForCategory(CategoryModel category, Integer level)
public CatalogVersionService getCatalogVersionService()
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
public CategoryService getCategoryService()
public void setCategoryService(CategoryService categoryService)
public CategoryConverter getCategoryConverter()
public void setCategoryConverter(CategoryConverter categoryConverter)
Copyright © 2017 SAP SE. All Rights Reserved.