Class ProductCarouselComponentModelToDataPopulator
java.lang.Object
de.hybris.platform.cmsfacades.rendering.populators.ProductCarouselComponentModelToDataPopulator
- All Implemented Interfaces:
Populator<CMSItemModel,Map<String, Object>>
public class ProductCarouselComponentModelToDataPopulator
extends Object
implements Populator<CMSItemModel,Map<String,Object>>
Populator to provide product codes if they were not automatically retrieved directly from the item model.
It can happen if the item was just created (never saved) and populated from a version.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Predicate<CMSItemModel>voidpopulate(CMSItemModel cmsItemModel, Map<String, Object> stringObjectMap) Populate the target instance with values from the source instance.voidsetProductCarouselComponentCarouselPredicate(Predicate<CMSItemModel> productCarouselComponentCarouselPredicate)
-
Constructor Details
-
ProductCarouselComponentModelToDataPopulator
public ProductCarouselComponentModelToDataPopulator()
-
-
Method Details
-
populate
public void populate(CMSItemModel cmsItemModel, Map<String, Object> stringObjectMap) throws ConversionExceptionDescription copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<CMSItemModel,Map<String, Object>> - Parameters:
cmsItemModel- the source objectstringObjectMap- the target to fill- Throws:
ConversionException- if an error occurs
-
getProductCarouselComponentCarouselPredicate
-
setProductCarouselComponentCarouselPredicate
public void setProductCarouselComponentCarouselPredicate(Predicate<CMSItemModel> productCarouselComponentCarouselPredicate)
-