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, txManager

    Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

    tenant
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    calculateTotals(AbstractOrderModel order, boolean recalculate)
     
    protected de.hybris.platform.servicelayer.i18n.CommonI18NService
    Gets shopping common i 18 n service.
    protected de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy
    Gets shopping order requires calculation strategy.
    Gets total price calculation strategy map.
    protected void
    recalculateOrderEntryIfNeeded(AbstractOrderEntryModel entry, boolean forceRecalculation)
     
    protected Map
     
    void
    setShoppingCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService shoppingCommonI18NService)
    Sets shopping common i 18 n service.
    void
    setShoppingOrderRequiresCalculationStrategy(de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy shoppingOrderRequiresCalculationStrategy)
    Sets shopping order requires calculation strategy.
    void
    Sets total price calculation strategy map.
    protected Map<de.hybris.platform.util.TaxValue,Map<Set<de.hybris.platform.util.TaxValue>,Double>>
    shoppingCalculateSubtotal(AbstractOrderModel order, boolean recalculate)
    Shopping calculate subtotal map.
    void
    shoppingCalculateTotals(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, setTaxFreeEntrySupport

    Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService

    getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager

    Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

    afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: ShoppingCalculationService
      Calculate totals.
      Specified by:
      shoppingCalculateTotals in interface ShoppingCalculationService
      Parameters:
      entry - the entry
      recalculate - 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:
      resetAllValues in class de.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:
      calculateTotals in interface de.hybris.platform.order.CalculationService
      Overrides:
      calculateTotals in class de.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>,Double>> shoppingCalculateSubtotal(AbstractOrderModel order, boolean recalculate) throws de.hybris.platform.order.exceptions.CalculationException
      Shopping calculate subtotal map.
      Parameters:
      order - the order
      recalculate - 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:
      recalculateOrderEntryIfNeeded in class de.hybris.platform.order.impl.DefaultCalculationService
      Throws:
      de.hybris.platform.order.exceptions.CalculationException
    • getTotalPriceCalculationStrategyMap

      protected Map<String,ShoppingTotalPriceCalculationStrategy> 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