Interface CatalogListService
-
- All Superinterfaces:
CatalogService
- All Known Implementing Classes:
CatalogListServiceImpl
public interface CatalogListService extends CatalogService
Interface for list of categories
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanassignAndRemoveCategories(java.util.Collection<TypedObject> categories, CategoryModel newSuperCategory)Removes old categories and assigns them to the new onebooleanassignAndRemoveProducts(java.util.Collection<TypedObject> products, CategoryModel newSuperCategory, java.util.List<CategoryModel> oldSuperCategories)Removes products from the list of categories and assigns them to the new one-
Methods inherited from interface de.hybris.platform.productcockpit.services.catalog.CatalogService
addToCategories, assignProduct, assignProduct, assignProducts, getAllCatalogVersions, getAvailableCatalogs, getAvailableCatalogVersions, getCatalog, getCatalogVersion, getCatalogVersion, getCatalogVersions, getCatalogVersionTypedObject, getCategories, getCategories, getCategoryCount, getCategoryCount, getCategoryPath, getItemCount, getItems, getSortedCatalogVersions, getSubcategoriesHavingSubcategories, getSupercategories, isAssignProductPermitted, isMoveCategoriesPermitted, isMoveCategoryPermitted, moveCategories, moveCategory, removeFromCategories, setAsRootCategory, wrapCatalogVersion, wrapCategory
-
-
-
-
Method Detail
-
assignAndRemoveProducts
boolean assignAndRemoveProducts(java.util.Collection<TypedObject> products, CategoryModel newSuperCategory, java.util.List<CategoryModel> oldSuperCategories)
Removes products from the list of categories and assigns them to the new one- Parameters:
products- collection of products to be assignednewSuperCategory- category to assign tooldSuperCategories- collection of categories from which product should be unassigned- Returns:
trueif assignments were successfully changed
-
assignAndRemoveCategories
boolean assignAndRemoveCategories(java.util.Collection<TypedObject> categories, CategoryModel newSuperCategory)
Removes old categories and assigns them to the new one- Parameters:
categories- collection of categories to be assignednewSuperCategory- super category which subcategories are to be changed- Returns:
trueif assignments were successfully changed
-
-