Class CatalogListServiceImpl

All Implemented Interfaces:
CatalogListService, CatalogService

public class CatalogListServiceImpl extends CatalogServiceImpl implements CatalogListService
  • Constructor Details

    • CatalogListServiceImpl

      public CatalogListServiceImpl()
  • Method Details

    • assignAndRemoveProducts

      public boolean assignAndRemoveProducts(Collection<TypedObject> products, CategoryModel newSuperCategory, List<CategoryModel> oldSuperCategories)
      Description copied from interface: CatalogListService
      Removes products from the list of categories and assigns them to the new one
      Specified by:
      assignAndRemoveProducts in interface CatalogListService
      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

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