Class OrderEntryGroupPopulator
- java.lang.Object
-
- de.hybris.platform.commercefacades.order.converters.populator.OrderEntryGroupPopulator
-
- All Implemented Interfaces:
Populator<AbstractOrderModel,AbstractOrderData>
- Direct Known Subclasses:
DeliveryOrderEntryGroupPopulator,PickupOrderEntryGroupPopulator
public class OrderEntryGroupPopulator extends java.lang.Object implements Populator<AbstractOrderModel,AbstractOrderData>
UpdatesAbstractOrderDatawith order group data. Order entry data must be already populated inAbstractOrderData.
-
-
Constructor Summary
Constructors Constructor Description OrderEntryGroupPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.DoublecalcTotalWithTax(AbstractOrderModel source)protected OrderEntryDatagetOrderEntryData(AbstractOrderData target, java.lang.Integer entryNumber)protected PriceDataFactorygetPriceDataFactory()voidpopulate(AbstractOrderModel source, AbstractOrderData target)Populate the target instance with values from the source instance.voidsetPriceDataFactory(PriceDataFactory priceDataFactory)longsumDeliveryItemsQuantity(AbstractOrderModel source)longsumOrderGroupQuantity(OrderEntryGroupData group)longsumPickupItemsQuantity(AbstractOrderModel source)protected voidupdateGroupTotalPriceWithTax(AbstractOrderEntryModel entryModel, OrderEntryGroupData groupData)
-
-
-
Method Detail
-
populate
public void populate(AbstractOrderModel source, AbstractOrderData target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AbstractOrderModel,AbstractOrderData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
updateGroupTotalPriceWithTax
protected void updateGroupTotalPriceWithTax(AbstractOrderEntryModel entryModel, OrderEntryGroupData groupData)
-
calcTotalWithTax
protected java.lang.Double calcTotalWithTax(AbstractOrderModel source)
-
getOrderEntryData
protected OrderEntryData getOrderEntryData(AbstractOrderData target, java.lang.Integer entryNumber)
-
sumOrderGroupQuantity
public long sumOrderGroupQuantity(OrderEntryGroupData group)
-
sumPickupItemsQuantity
public long sumPickupItemsQuantity(AbstractOrderModel source)
-
sumDeliveryItemsQuantity
public long sumDeliveryItemsQuantity(AbstractOrderModel source)
-
getPriceDataFactory
protected PriceDataFactory getPriceDataFactory()
-
setPriceDataFactory
public void setPriceDataFactory(PriceDataFactory priceDataFactory)
-
-