public class CategoryManager extends Object
| Constructor and Description |
|---|
CategoryManager() |
public static CategoryManager getInstance()
public Category createCategory(String code)
code - code for the new category@Deprecated public Category createCategory(String code, boolean root)
code - code for the new categoryroot - not used any morepublic Collection<Category> getAllRootCategories()
public Collection<Category> getCategoriesByCode(String code)
code - categories with this code will be found; you can use SQL wildcards in the code ('%')@Deprecated public Category getCategoryByCode(String code)
null.code - code of the category to be foundnull if no categories foundpublic Collection<Category> getCategoriesByProduct(Product product)
public Collection<Category> getCategoriesByProduct(Product product, SessionContext ctx)
getSupercategories(SessionContext, Product)@Deprecated public boolean isCreatorDisabled()
DataCreator interface. Returns falsefalse@Deprecated public void createEssentialData(Map params, JspContext jspc) throws Exception
Exceptionpublic Collection<Category> getSupercategories(Product item)
public Collection<Category> getSupercategories(SessionContext ctx, Product item)
public Category createCategory(SessionContext ctx, Map attributeValues)
public long getSupercategoriesCount(SessionContext ctx, Product item)
public long getSupercategoriesCount(Product item)
public void setSupercategories(SessionContext ctx, Product item, Collection<Category> value)
public void setSupercategories(Product item, Collection<Category> value)
public void addToSupercategories(SessionContext ctx, Product item, Category value)
public void removeFromSupercategories(SessionContext ctx, Product item, Category value)
public Collection<Category> getSupercategories(SessionContext ctx, Media item)
public Collection<Category> getSupercategories(Media item)
public long getSupercategoriesCount(SessionContext ctx, Media item)
public long getSupercategoriesCount(Media item)
public void setSupercategories(SessionContext ctx, Media item, Collection<Category> value)
public void setSupercategories(Media item, Collection<Category> value)
public void addToSupercategories(SessionContext ctx, Media item, Category value)
public void removeFromSupercategories(SessionContext ctx, Media item, Category value)
Copyright © 2017 SAP SE. All Rights Reserved.