Interface ProductCarouselRendererService

All Known Implementing Classes:
DefaultProductCarouselRendererService

public interface ProductCarouselRendererService
Service to fetch full list of products and categories of a product carousel component in preview mode.
  • Method Details

    • getDisplayableProducts

      List<ProductModel> getDisplayableProducts(ProductCarouselComponentModel component)
      When in preview mode, we will swap the given products of a product carousel component for their counterpart in the catalog version in session for their respective catalogs. The session catalog version is not always the active version when used in CMS tooling.
      Parameters:
      component - the product carousel component model
      Returns:
      a list of ProductModel for the catalog versions in session
    • getDisplayableProducts

      List<ProductModel> getDisplayableProducts(CategoryModel category)
      When in preview mode, we will swap the given products of a product category for their counterpart in the catalog version in session for their respective catalogs. The session catalog version is not always the active version when used in CMS tooling.
      Parameters:
      category - the ProductModel go retrieve the products
      Returns:
      a list of ProductModel for the catalog versions in session
    • getListOfCategories

      List<CategoryModel> getListOfCategories(ProductCarouselComponentModel component)
      Returns the full list categories without the session catalog version filtering out the ones from different versions. This is needed when the session catalog version is not the active version. This is possible through CMS tooling
      Parameters:
      component - the product carousel component model
      Returns:
      a list of CategoryModel for the catalog versions in session