Interface AsCategoryService

  • All Known Implementing Classes:
    DefaultAsCategoryService

    public interface AsCategoryService
    Service that provides category related functionality that is required by adaptive search.
    • Method Detail

      • setCurrentCategoryPath

        void setCurrentCategoryPath​(java.util.List<CategoryModel> categoryPath)
        Sets the current category path in the session.
        Parameters:
        categoryPath - - the category path
      • getCurrentCategoryPath

        java.util.Optional<java.util.List<CategoryModel>> getCurrentCategoryPath()
        Returns the current category path in the session. If there are no current category path, an empty Optional is returned.
        Returns:
        the current category path
      • clearCurrentCategoryPath

        void clearCurrentCategoryPath()
        Clears the current category path in the session.
      • buildCategoryPath

        java.util.List<CategoryModel> buildCategoryPath​(java.util.List<java.lang.String> categoryCodes,
                                                        java.util.List<CatalogVersionModel> catalogVersions,
                                                        boolean recursive)
        Builds the category path.
        Parameters:
        categoryCodes - - the category codes
        catalogVersions - - the catalog versions
        recursive - - true if the supercategories should be considered, false otherwise
        Returns:
        the category path
      • getAllCategoriesForCatalogVersion

        java.util.List<CategoryModel> getAllCategoriesForCatalogVersion​(CatalogVersionModel catalogVersion)
        Returns all categories belonging to the specified catalog version.
        Parameters:
        catalogVersion - the catalog version
        Returns:
        all categories belonging to the specified catalog version
      • getAllCategoryRelationsForCatalogVersion

        java.util.List<java.util.List<PK>> getAllCategoryRelationsForCatalogVersion​(CatalogVersionModel catalogVersion)
        Returns all category relations belonging to the specified catalog version.
        Parameters:
        catalogVersion - the catalog version
        Returns:
        all category relations belonging to the specified catalog version