Interface CatalogListService

All Superinterfaces:
CatalogService
All Known Implementing Classes:
CatalogListServiceImpl

public interface CatalogListService extends CatalogService
Interface for list of categories
  • Method Details

    • assignAndRemoveProducts

      boolean assignAndRemoveProducts(Collection<TypedObject> products, CategoryModel newSuperCategory, List<CategoryModel> oldSuperCategories)
      Removes products from the list of categories and assigns them to the new one
      Parameters:
      products - collection of products to be assigned
      newSuperCategory - category to assign to
      oldSuperCategories - collection of categories from which product should be unassigned
      Returns:
      true if assignments were successfully changed
    • assignAndRemoveCategories

      boolean assignAndRemoveCategories(Collection<TypedObject> categories, CategoryModel newSuperCategory)
      Removes old categories and assigns them to the new one
      Parameters:
      categories - collection of categories to be assigned
      newSuperCategory - super category which subcategories are to be changed
      Returns:
      true if assignments were successfully changed