Class DefaultShoppingCalculationService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.order.impl.DefaultCalculationService
de.hybris.platform.shoppingservices.order.impl.DefaultShoppingCalculationService
- All Implemented Interfaces:
de.hybris.platform.order.CalculationService,ShoppingCalculationService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
DefaultPROSCalculationService
public class DefaultShoppingCalculationService
extends de.hybris.platform.order.impl.DefaultCalculationService
implements ShoppingCalculationService
The type Default shopping calculation service
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractService.SerializableDTO -
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateTotals(AbstractOrderModel order, boolean recalculate) protected de.hybris.platform.servicelayer.i18n.CommonI18NServiceGets shopping common i 18 n service.protected de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategyGets shopping order requires calculation strategy.protected Map<String,ShoppingTotalPriceCalculationStrategy> Gets total price calculation strategy map.protected voidrecalculateOrderEntryIfNeeded(AbstractOrderEntryModel entry, boolean forceRecalculation) protected MapresetAllValues(AbstractOrderModel order) voidsetShoppingCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService shoppingCommonI18NService) Sets shopping common i 18 n service.voidsetShoppingOrderRequiresCalculationStrategy(de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy shoppingOrderRequiresCalculationStrategy) Sets shopping order requires calculation strategy.voidsetTotalPriceCalculationStrategyMap(Map<String, ShoppingTotalPriceCalculationStrategy> totalPriceCalculationStrategyMap) Sets total price calculation strategy map.shoppingCalculateSubtotal(AbstractOrderModel order, boolean recalculate) Shopping calculate subtotal map.voidshoppingCalculateTotals(AbstractOrderEntryModel entry, boolean recalculate) Calculate totals.Methods inherited from class de.hybris.platform.order.impl.DefaultCalculationService
addAbsoluteEntryTaxValue, addRelativeEntryTaxValue, applyGrossMixedRate, applyNetMixedRate, calculate, calculate, calculateAbsoluteTotalTaxValue, calculateDiscountValues, calculateEntries, calculateSubtotal, calculateTotals, calculateTotals, calculateTotalTaxValues, calculateTotalTaxValues, convertDiscountValues, convertPriceIfNecessary, findBasePrice, findDiscountValues, findGlobalDiscounts, findTaxValues, getTaxCorrectionFactor, getTaxFreeEntrySupport, getTaxFreeSubTotal, getUnappliedRelativeTaxValues, hasJaloStrategies, isAllEntriesTaxed, isTaxFreeEntrySupport, mustHandleTaxFreeEntries, recalculate, recalculate, recalculate, refreshOrder, requiresCalculation, resetAdditionalCosts, resetAllValues, saveOrder, setCalculatedStatus, setCalculatedStatus, setCommonI18NService, setFindDeliveryCostStrategy, setFindDiscountsStrategies, setFindPaymentCostStrategy, setFindPriceStrategy, setFindTaxesStrategies, setOrderRequiresCalculationStrategy, setTaxFreeEntrySupportMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultShoppingCalculationService
public DefaultShoppingCalculationService()
-
-
Method Details
-
shoppingCalculateTotals
public void shoppingCalculateTotals(AbstractOrderEntryModel entry, boolean recalculate) throws de.hybris.platform.order.exceptions.CalculationException Description copied from interface:ShoppingCalculationServiceCalculate totals.- Specified by:
shoppingCalculateTotalsin interfaceShoppingCalculationService- Parameters:
entry- the entryrecalculate- the recalculate- Throws:
de.hybris.platform.order.exceptions.CalculationException- the calculation exception
-
resetAllValues
protected Map resetAllValues(AbstractOrderModel order) throws de.hybris.platform.order.exceptions.CalculationException - Overrides:
resetAllValuesin classde.hybris.platform.order.impl.DefaultCalculationService- Throws:
de.hybris.platform.order.exceptions.CalculationException
-
calculateTotals
public void calculateTotals(AbstractOrderModel order, boolean recalculate) throws de.hybris.platform.order.exceptions.CalculationException - Specified by:
calculateTotalsin interfacede.hybris.platform.order.CalculationService- Overrides:
calculateTotalsin classde.hybris.platform.order.impl.DefaultCalculationService- Throws:
de.hybris.platform.order.exceptions.CalculationException
-
shoppingCalculateSubtotal
protected Map<de.hybris.platform.util.TaxValue,Map<Set<de.hybris.platform.util.TaxValue>, shoppingCalculateSubtotalDouble>> (AbstractOrderModel order, boolean recalculate) throws de.hybris.platform.order.exceptions.CalculationException Shopping calculate subtotal map.- Parameters:
order- the orderrecalculate- the recalculate- Returns:
- the map
- Throws:
de.hybris.platform.order.exceptions.CalculationException- the calculation exception
-
recalculateOrderEntryIfNeeded
protected void recalculateOrderEntryIfNeeded(AbstractOrderEntryModel entry, boolean forceRecalculation) throws de.hybris.platform.order.exceptions.CalculationException - Overrides:
recalculateOrderEntryIfNeededin classde.hybris.platform.order.impl.DefaultCalculationService- Throws:
de.hybris.platform.order.exceptions.CalculationException
-
getTotalPriceCalculationStrategyMap
Gets total price calculation strategy map.- Returns:
- the total price calculation strategy map
-
setTotalPriceCalculationStrategyMap
public void setTotalPriceCalculationStrategyMap(Map<String, ShoppingTotalPriceCalculationStrategy> totalPriceCalculationStrategyMap) Sets total price calculation strategy map.- Parameters:
totalPriceCalculationStrategyMap- the total price calculation strategy map
-
getShoppingOrderRequiresCalculationStrategy
protected de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy getShoppingOrderRequiresCalculationStrategy()Gets shopping order requires calculation strategy.- Returns:
- the shopping order requires calculation strategy
-
setShoppingOrderRequiresCalculationStrategy
public void setShoppingOrderRequiresCalculationStrategy(de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy shoppingOrderRequiresCalculationStrategy) Sets shopping order requires calculation strategy.- Parameters:
shoppingOrderRequiresCalculationStrategy- the shopping order requires calculation strategy
-
getShoppingCommonI18NService
protected de.hybris.platform.servicelayer.i18n.CommonI18NService getShoppingCommonI18NService()Gets shopping common i 18 n service.- Returns:
- the shopping common i 18 n service
-
setShoppingCommonI18NService
public void setShoppingCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService shoppingCommonI18NService) Sets shopping common i 18 n service.- Parameters:
shoppingCommonI18NService- the shopping common i 18 n service
-