Interface AsCategoryService

All Known Implementing Classes:
DefaultAsCategoryService

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

    • setCurrentCategoryPath

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

      Optional<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

      List<CategoryModel> buildCategoryPath(List<String> categoryCodes, 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

      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

      List<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