Package de.hybris.platform.category.jalo
Class CategoryManager
java.lang.Object
de.hybris.platform.category.jalo.CategoryManager
This is the extension manager of the category extension.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToSupercategories(Media item, Category value) voidaddToSupercategories(Product item, Category value) voidaddToSupercategories(SessionContext ctx, Media item, Category value) voidaddToSupercategories(SessionContext ctx, Product item, Category value) createCategory(SessionContext ctx, Map attributeValues) Generated methods from old GenGeneratedCategoryManager startscreateCategory(String code) Creates a new Category with the given code.createCategory(String code, boolean root) Deprecated.since ages - the root flag is calculated dynamically nowcreateCategory(Map attributeValues) voidcreateEssentialData(Map params, JspContext jspc) Deprecated.since agesReturns all root categories.getCategoriesByCode(String code) Searches for categories with the given code.getCategoriesByProduct(Product product) Returns all categories the given product is in.getCategoriesByProduct(Product product, SessionContext ctx) Returns all categories the given product is in.getCategoryByCode(String code) Deprecated.since ages - please use getCategoriesByCode instead as the value of code depends on the session contextstatic CategoryManagergetSupercategories(Media item) getSupercategories(Product item) getSupercategories(SessionContext ctx, Media item) getSupercategories(SessionContext ctx, Product item) longgetSupercategoriesCount(Media item) longlonggetSupercategoriesCount(SessionContext ctx, Media item) longgetSupercategoriesCount(SessionContext ctx, Product item) booleanDeprecated.since agesvoidremoveFromSupercategories(Media item, Category value) voidremoveFromSupercategories(Product item, Category value) voidremoveFromSupercategories(SessionContext ctx, Media item, Category value) voidremoveFromSupercategories(SessionContext ctx, Product item, Category value) voidsetSupercategories(Media item, Collection<Category> value) voidsetSupercategories(Product item, Collection<Category> value) voidsetSupercategories(SessionContext ctx, Media item, Collection<Category> value) voidsetSupercategories(SessionContext ctx, Product item, Collection<Category> value)
-
Constructor Details
-
CategoryManager
public CategoryManager()
-
-
Method Details
-
getInstance
- Returns:
- instance of this manager
-
createCategory
Creates a new Category with the given code. This new category will not be a root category.- Parameters:
code- code for the new category- Returns:
- the newly created category
-
createCategory
@Deprecated(since="ages", forRemoval=false) public Category createCategory(String code, boolean root) Deprecated.since ages - the root flag is calculated dynamically nowCreates a new Category with the given code.- Parameters:
code- code for the new categoryroot- not used any more- Returns:
- the newly created category
-
getAllRootCategories
Returns all root categories.- Returns:
- all root categories
-
getCategoriesByCode
Searches for categories with the given code.- Parameters:
code- categories with this code will be found; you can use SQL wildcards in the code ('%')- Returns:
- found categories
-
getCategoryByCode
Deprecated.since ages - please use getCategoriesByCode instead as the value of code depends on the session contextSearches for category with the given code. Warning: If one or more categories with that code are found, one of them will be returned randomly, otherwise this method returnsnull.- Parameters:
code- code of the category to be found- Returns:
- one of found categories or
nullif no categories found
-
getCategoriesByProduct
Returns all categories the given product is in.- Returns:
- all categories the given product is in
-
getCategoriesByProduct
Returns all categories the given product is in. The same asgetSupercategories(SessionContext, Product)- Returns:
- all categories the given product is in
-
isCreatorDisabled
Deprecated.since agesPart ofDataCreatorinterface. Returnsfalse- Returns:
false
-
createEssentialData
@Deprecated(since="ages", forRemoval=false) public void createEssentialData(Map params, JspContext jspc) throws Exception Deprecated.since agesCreates a saved query for finding all root categories.- Throws:
Exception- Since:
- 1.31
-
getSupercategories
-
getSupercategories
-
createCategory
Generated methods from old GenGeneratedCategoryManager starts -
createCategory
-
getSupercategoriesCount
-
getSupercategoriesCount
-
setSupercategories
-
setSupercategories
-
addToSupercategories
-
addToSupercategories
-
removeFromSupercategories
-
removeFromSupercategories
-
getSupercategories
-
getSupercategories
-
getSupercategoriesCount
-
getSupercategoriesCount
-
setSupercategories
-
setSupercategories
-
addToSupercategories
-
addToSupercategories
-
removeFromSupercategories
-
removeFromSupercategories
-