Class OrderEntryRequestReversePopulator
- java.lang.Object
-
- de.hybris.platform.ordermanagementfacades.order.converters.populator.OrderEntryRequestReversePopulator
-
- All Implemented Interfaces:
Populator<OrderEntryRequestData,OrderEntryModel>
public class OrderEntryRequestReversePopulator extends java.lang.Object implements Populator<OrderEntryRequestData,OrderEntryModel>
Ordermanagementfacade populator for convertingOrderEntryRequestData
-
-
Constructor Summary
Constructors Constructor Description OrderEntryRequestReversePopulator()
-
Method Summary
-
-
-
Method Detail
-
populate
public void populate(OrderEntryRequestData source, OrderEntryModel target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<OrderEntryRequestData,OrderEntryModel>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
addDeliveryMode
protected void addDeliveryMode(java.lang.String deliveryModeCode, OrderEntryModel target)ExtractsAbstractOrderEntryModel.DELIVERYMODEfrom the passed deliveryModeCode and assigns it to theOrderEntryModel- Parameters:
deliveryModeCode- the string equivalent ofDeliveryModeModel.CODEtarget- theOrderEntryModel, to which this deliveryMode is assigned
-
addTotals
protected void addTotals(OrderEntryRequestData source, OrderEntryModel target)
ExtractsAbstractOrderEntryModel.TOTALPRICE&AbstractOrderEntryModel.BASEPRICEfrom tOrderEntryRequestData, and assign it to theOrderEntryModel.- Parameters:
source- theOrderEntryRequestDatatarget- theOrderEntryModel
-
addDeliveryPointOfService
protected void addDeliveryPointOfService(java.lang.String deliveryPointOfService, OrderEntryModel target)ExtractsAbstractOrderEntryModel.DELIVERYPOINTOFSERVICEfrom tOrderEntryRequestData, and assign it to theOrderEntryModel.- Parameters:
deliveryPointOfService- the string equivalent ofPointOfServiceModel.NAMEtarget- theOrderEntryModel
-
addCommon
protected void addCommon(OrderEntryRequestData source, OrderEntryModel target)
Converts the basic properties of theOrderEntryRequestData- Parameters:
source- theOrderEntryRequestDatato be convertedtarget- the convertedOrderEntryModelfromOrderEntryRequestData
-
getDeliveryModeService
protected DeliveryModeService getDeliveryModeService()
-
setDeliveryModeService
public void setDeliveryModeService(DeliveryModeService deliveryModeService)
-
getUnitService
protected UnitService getUnitService()
-
setUnitService
public void setUnitService(UnitService unitService)
-
getPointOfServiceService
protected PointOfServiceService getPointOfServiceService()
-
setPointOfServiceService
public void setPointOfServiceService(PointOfServiceService pointOfServiceService)
-
-