Class CatalogListServiceImpl

    • Constructor Detail

      • CatalogListServiceImpl

        public CatalogListServiceImpl()
    • Method Detail

      • assignAndRemoveProducts

        public boolean assignAndRemoveProducts​(java.util.Collection<TypedObject> products,
                                               CategoryModel newSuperCategory,
                                               java.util.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​(java.util.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