Class ProductCategoriesPopulator<SOURCE extends ProductModel,TARGET extends ProductData>
- java.lang.Object
-
- de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator<SOURCE,TARGET>
-
- de.hybris.platform.commercefacades.product.converters.populator.ProductCategoriesPopulator<SOURCE,TARGET>
-
- All Implemented Interfaces:
Populator<SOURCE,TARGET>
public class ProductCategoriesPopulator<SOURCE extends ProductModel,TARGET extends ProductData> extends AbstractProductPopulator<SOURCE,TARGET>
Populate the product date with the product's categories
-
-
Constructor Summary
Constructors Constructor Description ProductCategoriesPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Converter<CategoryModel,CategoryData>getCategoryConverter()protected CommerceProductServicegetCommerceProductService()voidpopulate(SOURCE productModel, TARGET productData)Populate the target instance with values from the source instance.voidsetCategoryConverter(Converter<CategoryModel,CategoryData> categoryConverter)voidsetCommerceProductService(CommerceProductService commerceProductService)-
Methods inherited from class de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator
getModelService, getProductAttribute, safeToString, setModelService
-
-
-
-
Method Detail
-
getCategoryConverter
protected Converter<CategoryModel,CategoryData> getCategoryConverter()
-
setCategoryConverter
public void setCategoryConverter(Converter<CategoryModel,CategoryData> categoryConverter)
-
getCommerceProductService
protected CommerceProductService getCommerceProductService()
-
setCommerceProductService
public void setCommerceProductService(CommerceProductService commerceProductService)
-
populate
public void populate(SOURCE productModel, TARGET productData) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Parameters:
productModel- the source objectproductData- the target to fill- Throws:
ConversionException- if an error occurs
-
-