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 Object
implements Converter<AbstractOrderRAO,Order>
Converts
AbstractOrderRAO to Order.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(AbstractOrderRAO cartRao) Converts the source object, creating a new instance of the destination typeconvert(AbstractOrderRAO paramSOURCE, Order paramTARGET) Convert the source object by filling the prototypeprotected LineItemDiscountconvertToLineItemDiscount(DiscountRAO discountRao, AbstractOrderRAO cartRao) protected OrderDiscountconvertToOrderDiscount(DiscountRAO discountRao, AbstractOrderRAO cartRao) protected OrderChargecreates the OrderCharge of type PAYMENT based on the given cart.protected OrderChargecreates the OrderCharge of type SHIPPING based on the given cart.protected Converter<AbstractOrderRAO,Currency> protected CalculationStrategiesprotected Converter<OrderEntryRAO,NumberedLineItem> protected OrderUtilsprotected RaoUtilsprotected booleanisDiscountNotOrderLevel(AbstractOrderRAO orderRAO, DiscountRAO discount) voidsetAbstractOrderRaoToCurrencyConverter(Converter<AbstractOrderRAO, Currency> abstractOrderRaoToCurrencyConverter) voidsetCalculationStrategies(CalculationStrategies calculationStrategies) voidsetOrderEntryRaoToNumberedLineItemConverter(Converter<OrderEntryRAO, NumberedLineItem> orderEntryRaoToNumberedLineItemConverter) voidsetOrderUtils(OrderUtils orderUtils) voidsetRaoUtils(RaoUtils raoUtils) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLoggerMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
AbstractOrderRaoToOrderConverter
public AbstractOrderRaoToOrderConverter()
-
-
Method Details
-
convert
Description copied from interface:ConverterConverts the source object, creating a new instance of the destination type- Specified by:
convertin interfaceConverter<AbstractOrderRAO,Order> - Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<AbstractOrderRAO,Order> - Parameters:
cartRao- the source object- Returns:
- the converted object
-
convertEntriesToLineItems
-
isDiscountNotOrderLevel
-
convertToOrderDiscount
-
convertToLineItemDiscount
protected LineItemDiscount convertToLineItemDiscount(DiscountRAO discountRao, AbstractOrderRAO cartRao) -
convertToShippingOrderCharge
creates the OrderCharge of type SHIPPING based on the given cart. If the cart contains aShipmentRAOit 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
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
Description copied from interface:ConverterConvert the source object by filling the prototype- Specified by:
convertin interfaceConverter<AbstractOrderRAO,Order> - Parameters:
paramSOURCE- the source objectparamTARGET- the prototype to fill- Returns:
- the converted object, identical to the prototype
-
getAbstractOrderRaoToCurrencyConverter
-
setAbstractOrderRaoToCurrencyConverter
public void setAbstractOrderRaoToCurrencyConverter(Converter<AbstractOrderRAO, Currency> abstractOrderRaoToCurrencyConverter) -
getOrderEntryRaoToNumberedLineItemConverter
-
setOrderEntryRaoToNumberedLineItemConverter
public void setOrderEntryRaoToNumberedLineItemConverter(Converter<OrderEntryRAO, NumberedLineItem> orderEntryRaoToNumberedLineItemConverter) -
getCalculationStrategies
-
setCalculationStrategies
-
getOrderUtils
-
setOrderUtils
-
getRaoUtils
-
setRaoUtils
-