Interface CatalogListService

    • 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 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​(java.util.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