Class OrdermanagementReturnPopulator
- java.lang.Object
-
- de.hybris.platform.ordermanagementfacades.returns.converters.populator.OrdermanagementReturnPopulator
-
- All Implemented Interfaces:
Populator<ReturnRequestModel,ReturnRequestData>
public class OrdermanagementReturnPopulator extends java.lang.Object implements Populator<ReturnRequestModel,ReturnRequestData>
Return Populator
-
-
Constructor Summary
Constructors Constructor Description OrdermanagementReturnPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.math.BigDecimaladdDeliveryCost(ReturnRequestModel source, ReturnRequestData target, java.math.BigDecimal total)Adds the delivery cost if present to the given totalprotected java.util.List<ReturnStatus>getCancellableReturnStatusList()protected Converter<OrderModel,OrderData>getOrderConverter()protected PriceDataFactorygetPriceDataFactory()protected Converter<ReturnEntryModel,ReturnEntryData>getReturnEntryConverter()voidpopulate(ReturnRequestModel source, ReturnRequestData target)Populate the target instance with values from the source instance.voidsetCancellableReturnStatusList(java.util.List<ReturnStatus> cancellableReturnStatusList)voidsetOrderConverter(Converter<OrderModel,OrderData> orderConverter)voidsetPriceDataFactory(PriceDataFactory priceDataFactory)voidsetReturnEntryConverter(Converter<ReturnEntryModel,ReturnEntryData> returnEntryConverter)
-
-
-
Method Detail
-
populate
public void populate(ReturnRequestModel source, ReturnRequestData target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ReturnRequestModel,ReturnRequestData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
addDeliveryCost
protected java.math.BigDecimal addDeliveryCost(ReturnRequestModel source, ReturnRequestData target, java.math.BigDecimal total)
Adds the delivery cost if present to the given total- Parameters:
source- the initialReturnRequestModeltarget- the targetedReturnRequestDatatotal- the current total- Returns:
- the total amount including delivery cost
-
getReturnEntryConverter
protected Converter<ReturnEntryModel,ReturnEntryData> getReturnEntryConverter()
-
setReturnEntryConverter
public void setReturnEntryConverter(Converter<ReturnEntryModel,ReturnEntryData> returnEntryConverter)
-
getOrderConverter
protected Converter<OrderModel,OrderData> getOrderConverter()
-
setOrderConverter
public void setOrderConverter(Converter<OrderModel,OrderData> orderConverter)
-
getPriceDataFactory
protected PriceDataFactory getPriceDataFactory()
-
setPriceDataFactory
public void setPriceDataFactory(PriceDataFactory priceDataFactory)
-
getCancellableReturnStatusList
protected java.util.List<ReturnStatus> getCancellableReturnStatusList()
-
setCancellableReturnStatusList
public void setCancellableReturnStatusList(java.util.List<ReturnStatus> cancellableReturnStatusList)
-
-