Class OrderEntryRequestReversePopulator
java.lang.Object
de.hybris.platform.ordermanagementfacades.order.converters.populator.OrderEntryRequestReversePopulator
- All Implemented Interfaces:
Populator<OrderEntryRequestData,OrderEntryModel>
public class OrderEntryRequestReversePopulator
extends Object
implements Populator<OrderEntryRequestData,OrderEntryModel>
Ordermanagementfacade populator for converting
OrderEntryRequestData-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCommon(OrderEntryRequestData source, OrderEntryModel target) Converts the basic properties of theOrderEntryRequestDataprotected voidaddDeliveryMode(String deliveryModeCode, OrderEntryModel target) ExtractsAbstractOrderEntryModel.DELIVERYMODEfrom the passed deliveryModeCode and assigns it to theOrderEntryModelprotected voidaddDeliveryPointOfService(String deliveryPointOfService, OrderEntryModel target) ExtractsAbstractOrderEntryModel.DELIVERYPOINTOFSERVICEfrom tOrderEntryRequestData, and assign it to theOrderEntryModel.protected voidaddTotals(OrderEntryRequestData source, OrderEntryModel target) ExtractsAbstractOrderEntryModel.TOTALPRICE&AbstractOrderEntryModel.BASEPRICEfrom tOrderEntryRequestData, and assign it to theOrderEntryModel.protected DeliveryModeServiceprotected PointOfServiceServiceprotected UnitServicevoidpopulate(OrderEntryRequestData source, OrderEntryModel target) Populate the target instance with values from the source instance.voidsetDeliveryModeService(DeliveryModeService deliveryModeService) voidsetPointOfServiceService(PointOfServiceService pointOfServiceService) voidsetUnitService(UnitService unitService)
-
Constructor Details
-
OrderEntryRequestReversePopulator
public OrderEntryRequestReversePopulator()
-
-
Method Details
-
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
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
ExtractsAbstractOrderEntryModel.TOTALPRICE&AbstractOrderEntryModel.BASEPRICEfrom tOrderEntryRequestData, and assign it to theOrderEntryModel.- Parameters:
source- theOrderEntryRequestDatatarget- theOrderEntryModel
-
addDeliveryPointOfService
ExtractsAbstractOrderEntryModel.DELIVERYPOINTOFSERVICEfrom tOrderEntryRequestData, and assign it to theOrderEntryModel.- Parameters:
deliveryPointOfService- the string equivalent ofPointOfServiceModel.NAMEtarget- theOrderEntryModel
-
addCommon
Converts the basic properties of theOrderEntryRequestData- Parameters:
source- theOrderEntryRequestDatato be convertedtarget- the convertedOrderEntryModelfromOrderEntryRequestData
-
getDeliveryModeService
-
setDeliveryModeService
-
getUnitService
-
setUnitService
-
getPointOfServiceService
-
setPointOfServiceService
-