Class ProductVolumePricesPopulator<SOURCE extends ProductModel,TARGET extends ProductData>
- java.lang.Object
-
- de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator<SOURCE,TARGET>
-
- de.hybris.platform.acceleratorfacades.product.converters.populator.ProductVolumePricesPopulator<SOURCE,TARGET>
-
- All Implemented Interfaces:
Populator<SOURCE,TARGET>
public class ProductVolumePricesPopulator<SOURCE extends ProductModel,TARGET extends ProductData> extends AbstractProductPopulator<SOURCE,TARGET>
Populator for product volume prices.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProductVolumePricesPopulator.VolumePriceComparator
-
Constructor Summary
Constructors Constructor Description ProductVolumePricesPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PriceDatacreatePriceData(PriceDataType priceType, PriceInformation priceInfo)protected java.util.List<PriceData>createPrices(SOURCE productModel, java.util.List<PriceInformation> pricesInfos)protected java.lang.LonggetMinQuantity(PriceInformation priceInfo)protected PriceDataFactorygetPriceDataFactory()protected PriceServicegetPriceService()protected PriceDataTypegetPriceType(ProductModel productModel)voidpopulate(SOURCE productModel, TARGET productData)Populate the target instance with values from the source instance.voidsetPriceDataFactory(PriceDataFactory priceDataFactory)voidsetPriceService(PriceService priceService)-
Methods inherited from class de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator
getModelService, getProductAttribute, safeToString, setModelService
-
-
-
-
Method Detail
-
getPriceService
protected PriceService getPriceService()
-
setPriceService
public void setPriceService(PriceService priceService)
-
getPriceDataFactory
protected PriceDataFactory getPriceDataFactory()
-
setPriceDataFactory
public void setPriceDataFactory(PriceDataFactory priceDataFactory)
-
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
-
createPrices
protected java.util.List<PriceData> createPrices(SOURCE productModel, java.util.List<PriceInformation> pricesInfos)
-
getPriceType
protected PriceDataType getPriceType(ProductModel productModel)
-
getMinQuantity
protected java.lang.Long getMinQuantity(PriceInformation priceInfo)
-
createPriceData
protected PriceData createPriceData(PriceDataType priceType, PriceInformation priceInfo)
-
-