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.BigDecimal
addDeliveryCost(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 PriceDataFactory
getPriceDataFactory()
protected Converter<ReturnEntryModel,ReturnEntryData>
getReturnEntryConverter()
void
populate(ReturnRequestModel source, ReturnRequestData target)
Populate the target instance with values from the source instance.void
setCancellableReturnStatusList(java.util.List<ReturnStatus> cancellableReturnStatusList)
void
setOrderConverter(Converter<OrderModel,OrderData> orderConverter)
void
setPriceDataFactory(PriceDataFactory priceDataFactory)
void
setReturnEntryConverter(Converter<ReturnEntryModel,ReturnEntryData> returnEntryConverter)
-
-
-
Method Detail
-
populate
public void populate(ReturnRequestModel source, ReturnRequestData target) throws ConversionException
Description copied from interface:Populator
Populate the target instance with values from the source instance.- Specified by:
populate
in 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 initialReturnRequestModel
target
- the targetedReturnRequestData
total
- 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)
-
-