Class AbstractOrderRaoToOrderConverter
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.converters.AbstractOrderRaoToOrderConverter
-
- All Implemented Interfaces:
Converter<AbstractOrderRAO,Order>
,org.springframework.core.convert.converter.Converter<AbstractOrderRAO,Order>
public class AbstractOrderRaoToOrderConverter extends java.lang.Object implements Converter<AbstractOrderRAO,Order>
ConvertsAbstractOrderRAO
toOrder
.
-
-
Constructor Summary
Constructors Constructor Description AbstractOrderRaoToOrderConverter()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLogger
-
-
-
-
Method Detail
-
convert
public Order convert(AbstractOrderRAO cartRao)
Description copied from interface:Converter
Converts the source object, creating a new instance of the destination type- Specified by:
convert
in interfaceConverter<AbstractOrderRAO,Order>
- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<AbstractOrderRAO,Order>
- Parameters:
cartRao
- the source object- Returns:
- the converted object
-
convertEntriesToLineItems
protected java.util.List<LineItem> convertEntriesToLineItems(AbstractOrderRAO cartRao)
-
isDiscountNotOrderLevel
protected boolean isDiscountNotOrderLevel(AbstractOrderRAO orderRAO, DiscountRAO discount)
-
convertToOrderDiscount
protected OrderDiscount convertToOrderDiscount(DiscountRAO discountRao, AbstractOrderRAO cartRao)
-
convertToLineItemDiscount
protected LineItemDiscount convertToLineItemDiscount(DiscountRAO discountRao, AbstractOrderRAO cartRao)
-
convertToShippingOrderCharge
protected OrderCharge convertToShippingOrderCharge(AbstractOrderRAO cartRao)
creates the OrderCharge of type SHIPPING based on the given cart. If the cart contains aShipmentRAO
it will be taken for the shipping charge calculation, otherwise theAbstractOrderRAO.getDeliveryCost()
is used.- Parameters:
cartRao
- the cart to get the shipping order charge from- Returns:
- an OrderCharge of type SHIPPING or null if no shipping cost is available
-
convertToPaymentOrderCharge
protected OrderCharge convertToPaymentOrderCharge(AbstractOrderRAO cartRao)
creates the OrderCharge of type PAYMENT based on the given cart.- Parameters:
cartRao
- the cart to get the payment order charge from- Returns:
- an OrderCharge of type PAYMENT or null if no payment cost is available
-
convert
public Order convert(AbstractOrderRAO paramSOURCE, Order paramTARGET)
Description copied from interface:Converter
Convert the source object by filling the prototype- Specified by:
convert
in interfaceConverter<AbstractOrderRAO,Order>
- Parameters:
paramSOURCE
- the source objectparamTARGET
- the prototype to fill- Returns:
- the converted object, identical to the prototype
-
getAbstractOrderRaoToCurrencyConverter
protected Converter<AbstractOrderRAO,Currency> getAbstractOrderRaoToCurrencyConverter()
-
setAbstractOrderRaoToCurrencyConverter
public void setAbstractOrderRaoToCurrencyConverter(Converter<AbstractOrderRAO,Currency> abstractOrderRaoToCurrencyConverter)
-
getOrderEntryRaoToNumberedLineItemConverter
protected Converter<OrderEntryRAO,NumberedLineItem> getOrderEntryRaoToNumberedLineItemConverter()
-
setOrderEntryRaoToNumberedLineItemConverter
public void setOrderEntryRaoToNumberedLineItemConverter(Converter<OrderEntryRAO,NumberedLineItem> orderEntryRaoToNumberedLineItemConverter)
-
getCalculationStrategies
protected CalculationStrategies getCalculationStrategies()
-
setCalculationStrategies
public void setCalculationStrategies(CalculationStrategies calculationStrategies)
-
getOrderUtils
protected OrderUtils getOrderUtils()
-
setOrderUtils
public void setOrderUtils(OrderUtils orderUtils)
-
getRaoUtils
protected RaoUtils getRaoUtils()
-
setRaoUtils
public void setRaoUtils(RaoUtils raoUtils)
-
-