Class DefaultCommerceCartCalculationStrategy
java.lang.Object
de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartCalculationStrategy
- All Implemented Interfaces:
CommerceCartCalculationStrategy
- Direct Known Subclasses:
DefaultCheckoutCartCalculationStrategy,NonTransactionalCommerceCartCalculationStrategy
public class DefaultCommerceCartCalculationStrategy
extends Object
implements CommerceCartCalculationStrategy
Default strategy to calculate the cart when not in checkout status.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterCalculate(CommerceCartParameter parameter) protected voidbeforeCalculate(CommerceCartParameter parameter) booleancalculateCart(CommerceCartParameter parameter) Calculate cart.booleancalculateCart(CartModel cartModel) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.2.protected BaseSiteServiceprotected CalculationServiceprotected List<CommerceCartCalculationMethodHook>protected ConfigurationServiceprotected FindDeliveryCostStrategyprotected Collection<PromotionGroupModel>protected PromotionsServiceprotected TimeServicebooleanbooleanrecalculateCart(CommerceCartParameter parameter) Recalculate cart.booleanrecalculateCart(CartModel cartModel) Deprecated, for removal: This API element is subject to removal in a future version.Since 5.2.protected voidresetDeliveryCostIfNecessary(CartModel cartModel) voidsetBaseSiteService(BaseSiteService baseSiteService) voidsetCalculateExternalTaxes(boolean calculateExternalTaxes) voidsetCalculationService(CalculationService calculationService) voidsetCommerceCartCalculationMethodHooks(List<CommerceCartCalculationMethodHook> commerceCartCalculationMethodHooks) voidsetConfigurationService(ConfigurationService configurationService) voidsetExternalTaxesService(ExternalTaxesService externalTaxesService) voidsetFindDeliveryCostStrategy(FindDeliveryCostStrategy findDeliveryCostStrategy) voidsetPromotionsService(PromotionsService promotionsService) voidsetTimeService(TimeService timeService)
-
Constructor Details
-
DefaultCommerceCartCalculationStrategy
public DefaultCommerceCartCalculationStrategy()
-
-
Method Details
-
calculateCart
Deprecated, for removal: This API element is subject to removal in a future version.Since 5.2.- Specified by:
calculateCartin interfaceCommerceCartCalculationStrategy
-
calculateCart
Description copied from interface:CommerceCartCalculationStrategyCalculate cart.- Specified by:
calculateCartin interfaceCommerceCartCalculationStrategy- Parameters:
parameter- the parameter- Returns:
- true, if successful
-
recalculateCart
Deprecated, for removal: This API element is subject to removal in a future version.Since 5.2.- Specified by:
recalculateCartin interfaceCommerceCartCalculationStrategy
-
recalculateCart
Description copied from interface:CommerceCartCalculationStrategyRecalculate cart.- Specified by:
recalculateCartin interfaceCommerceCartCalculationStrategy- Parameters:
parameter- the parameter- Returns:
- true, if successful
-
resetDeliveryCostIfNecessary
- Throws:
CalculationException
-
beforeCalculate
-
afterCalculate
-
getPromotionGroups
-
getCalculationService
-
setCalculationService
-
getPromotionsService
-
setPromotionsService
-
getTimeService
-
setTimeService
-
getBaseSiteService
-
setBaseSiteService
-
getCommerceCartCalculationMethodHooks
-
setCommerceCartCalculationMethodHooks
public void setCommerceCartCalculationMethodHooks(List<CommerceCartCalculationMethodHook> commerceCartCalculationMethodHooks) -
getConfigurationService
-
setConfigurationService
-
getExternalTaxesService
- Returns:
- the externalTaxesService
-
setExternalTaxesService
- Parameters:
externalTaxesService- the externalTaxesService to set
-
isCalculateExternalTaxes
public boolean isCalculateExternalTaxes()- Returns:
- the calculateExternalTaxes
-
setCalculateExternalTaxes
public void setCalculateExternalTaxes(boolean calculateExternalTaxes) - Parameters:
calculateExternalTaxes- the calculateExternalTaxes to set
-
setFindDeliveryCostStrategy
-
getFindDeliveryCostStrategy
-