Class DefaultPriceAdjustmentStrategy
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.calculation.impl.DefaultPriceAdjustmentStrategy
-
- All Implemented Interfaces:
PriceAdjustmentStrategy<OrderEntryRAO>
public class DefaultPriceAdjustmentStrategy extends java.lang.Object implements PriceAdjustmentStrategy<OrderEntryRAO>
Default implementation ofPriceAdjustmentStrategyforOrderEntryRAOentities
-
-
Constructor Summary
Constructors Constructor Description DefaultPriceAdjustmentStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalget(OrderEntryRAO orderEntryRao, int quantity)Performs calculation of the adjusted price for the provided entry with respect to quantity valueprotected Converter<AbstractOrderRAO,Order>getAbstractOrderRaoToOrderConverter()protected NumberedLineItemLookupStrategygetLineItemLookupStrategy()voidsetAbstractOrderRaoToOrderConverter(Converter<AbstractOrderRAO,Order> abstractOrderRaoToOrderConverter)voidsetLineItemLookupStrategy(NumberedLineItemLookupStrategy lineItemLookupStrategy)
-
-
-
Method Detail
-
get
public java.math.BigDecimal get(OrderEntryRAO orderEntryRao, int quantity)
Description copied from interface:PriceAdjustmentStrategyPerforms calculation of the adjusted price for the provided entry with respect to quantity value- Specified by:
getin interfacePriceAdjustmentStrategy<OrderEntryRAO>- Parameters:
orderEntryRao- an entry to perform price correction on, e.g.OrderEntryRAOquantity- quantity value to be used in price correction related calculations- Returns:
- adjusted price value
-
getAbstractOrderRaoToOrderConverter
protected Converter<AbstractOrderRAO,Order> getAbstractOrderRaoToOrderConverter()
-
setAbstractOrderRaoToOrderConverter
public void setAbstractOrderRaoToOrderConverter(Converter<AbstractOrderRAO,Order> abstractOrderRaoToOrderConverter)
-
getLineItemLookupStrategy
protected NumberedLineItemLookupStrategy getLineItemLookupStrategy()
-
setLineItemLookupStrategy
public void setLineItemLookupStrategy(NumberedLineItemLookupStrategy lineItemLookupStrategy)
-
-