Interface CommerceCategoryService

  • All Known Implementing Classes:
    DefaultCommerceCategoryService

    public interface CommerceCategoryService
    The CommerceCategoryService supports looking up categories within the current session product catalog. Other types of session catalog, i.e. content catalogs and classification catalogs are excluded.
    • Method Detail

      • getPathsForCategory

        java.util.Collection<java.util.List<CategoryModel>> getPathsForCategory​(CategoryModel category)
        Returns all paths for this CategoryModel. Each path is a list of all categories in the path from root to this category.
        Parameters:
        category - the (sub)CategoryModel
        Returns:
        all paths for this CategoryModel, or empty collection if this category has no super-categories.
        Throws:
        java.lang.IllegalArgumentException - if parameter category is null.