Class DefaultSLFindDeliveryCostStrategy
java.lang.Object
de.hybris.platform.order.strategies.calculation.impl.servicelayer.DefaultSLFindDeliveryCostStrategy
- All Implemented Interfaces:
FindDeliveryCostStrategy,ServiceLayerOnlyCalculationVerifier
- Direct Known Subclasses:
ChineseSLFindDeliveryCostStrategy
Service-Layer implementation of
FindDeliveryCostStrategy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublegetCalculationBaseValue(AbstractOrderModel order, String propName) Returns order's delivery cost of the given order.protected PriceValuebooleanisSLOnly()Implement this and return true if you are using only service-layer modelsvoidsetCommonI18NService(CommonI18NService commonI18NService) voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) protected voidvalidateOrder(AbstractOrderModel order)
-
Constructor Details
-
DefaultSLFindDeliveryCostStrategy
public DefaultSLFindDeliveryCostStrategy()
-
-
Method Details
-
getDeliveryCost
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
- Throws:
CalculationException
-
validateOrder
- Throws:
CalculationException
-
getCalculationBaseValue
-
setFlexibleSearchService
-
setCommonI18NService
-