Class DefaultProductCarouselRendererService
java.lang.Object
de.hybris.platform.acceleratorcms.productcarousel.impl.DefaultProductCarouselRendererService
- All Implemented Interfaces:
ProductCarouselRendererService
public class DefaultProductCarouselRendererService
extends Object
implements ProductCarouselRendererService
Service to fetch full list of products and categories of a product carousel component in preview mode.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CatalogVersionServicegetDisplayableProducts(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.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.getListOfCategories(ProductCarouselComponentModel component) Returns the full list categories without the session catalog version filtering out the ones from different versions.protected ModelServiceprotected ProductServiceprotected List<ProductModel>retrieveProductsForVersionsInSession(List<ProductModel> persistentProducts) When in preview mode, we will swap the given products for their counterpart in the catalog version in session for their respective catalogs.voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetModelService(ModelService modelService) voidsetProductService(ProductService productService)
-
Constructor Details
-
DefaultProductCarouselRendererService
public DefaultProductCarouselRendererService()
-
-
Method Details
-
getDisplayableProducts
Description copied from interface:ProductCarouselRendererServiceWhen 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.- Specified by:
getDisplayableProductsin interfaceProductCarouselRendererService- Parameters:
component- the product carousel component model- Returns:
- a list of
ProductModelfor the catalog versions in session
-
getDisplayableProducts
Description copied from interface:ProductCarouselRendererServiceWhen 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.- Specified by:
getDisplayableProductsin interfaceProductCarouselRendererService- Parameters:
category- theProductModelgo retrieve the products- Returns:
- a list of
ProductModelfor the catalog versions in session
-
getListOfCategories
Description copied from interface:ProductCarouselRendererServiceReturns 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- Specified by:
getListOfCategoriesin interfaceProductCarouselRendererService- Parameters:
component- the product carousel component model- Returns:
- a list of
CategoryModelfor the catalog versions in session
-
retrieveProductsForVersionsInSession
protected List<ProductModel> retrieveProductsForVersionsInSession(List<ProductModel> persistentProducts) When in preview mode, we will swap the given products 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 -
getProductService
-
setProductService
-
getModelService
-
setModelService
-
getCatalogVersionService
-
setCatalogVersionService
-