Class ProductStockPopulator<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.ProductStockPopulator<SOURCE,TARGET>
-
- All Implemented Interfaces:
Populator<SOURCE,TARGET>
public class ProductStockPopulator<SOURCE extends ProductModel,TARGET extends ProductData> extends AbstractProductPopulator<SOURCE,TARGET>
Populate the product data with stock information
-
-
Constructor Summary
Constructors Constructor Description ProductStockPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Converter<ProductModel,StockData>getStockConverter()voidpopulate(SOURCE source, TARGET target)Populate the target instance with values from the source instance.voidsetStockConverter(Converter<ProductModel,StockData> stockConverter)-
Methods inherited from class de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator
getModelService, getProductAttribute, safeToString, setModelService
-
-
-
-
Method Detail
-
getStockConverter
protected Converter<ProductModel,StockData> getStockConverter()
-
setStockConverter
public void setStockConverter(Converter<ProductModel,StockData> stockConverter)
-
populate
public void populate(SOURCE source, TARGET target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
-