Class DefaultSLFindDeliveryCostStrategy
- java.lang.Object
-
- de.hybris.platform.order.strategies.calculation.impl.servicelayer.DefaultSLFindDeliveryCostStrategy
-
- All Implemented Interfaces:
FindDeliveryCostStrategy,ServiceLayerOnlyCalculationVerifier
- Direct Known Subclasses:
ChineseSLFindDeliveryCostStrategy
public class DefaultSLFindDeliveryCostStrategy extends java.lang.Object implements FindDeliveryCostStrategy
Service-Layer implementation ofFindDeliveryCostStrategy.
-
-
Constructor Summary
Constructors Constructor Description DefaultSLFindDeliveryCostStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublegetCalculationBaseValue(AbstractOrderModel order, java.lang.String propName)PriceValuegetDeliveryCost(AbstractOrderModel order)Returns order's delivery cost of the given order.protected PriceValuegetDeliveryCostValue(AbstractOrderModel order)booleanisSLOnly()Implement this and return true if you are using only service-layer modelsvoidsetCommonI18NService(CommonI18NService commonI18NService)voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)protected voidvalidateOrder(AbstractOrderModel order)
-
-
-
Method Detail
-
getDeliveryCost
public PriceValue getDeliveryCost(AbstractOrderModel order)
Description copied from interface:FindDeliveryCostStrategyReturns order's delivery cost of the given order.- Specified by:
getDeliveryCostin interfaceFindDeliveryCostStrategy- Parameters:
order-AbstractOrderModel- Returns:
PriceValuerepresenting delivery cost introduced in the order.
-
isSLOnly
public boolean isSLOnly()
Description copied from interface:ServiceLayerOnlyCalculationVerifierImplement this and return true if you are using only service-layer models- Specified by:
isSLOnlyin interfaceServiceLayerOnlyCalculationVerifier- Returns:
- true, if only service-layer models are used
-
getDeliveryCostValue
protected PriceValue getDeliveryCostValue(AbstractOrderModel order) throws CalculationException
- Throws:
CalculationException
-
validateOrder
protected void validateOrder(AbstractOrderModel order) throws CalculationException
- Throws:
CalculationException
-
getCalculationBaseValue
protected double getCalculationBaseValue(AbstractOrderModel order, java.lang.String propName)
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
-