Class DefaultPPSCalculationService

  • All Implemented Interfaces:
    de.hybris.platform.order.CalculationService, java.io.Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

    public class DefaultPPSCalculationService
    extends de.hybris.platform.order.impl.DefaultCalculationService
    Order calculation service using PPS if set to active. Otherwise the Default hybris Logic is used.
    See Also:
    Serialized Form
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void calculate​(AbstractOrderModel order)  
      void calculateTotals​(AbstractOrderModel order, boolean recalculate)  
      protected de.hybris.platform.util.PriceValue findBasePrice​(AbstractOrderEntryModel entry)  
      protected java.util.List<de.hybris.platform.util.DiscountValue> findDiscountValues​(AbstractOrderEntryModel entry)  
      de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()  
      PPSConfigService getConfigService()  
      de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy getOrderRequiresCalculationStrategy()  
      PricingBackend getPricingBackend()  
      void recalculate​(AbstractOrderModel order)  
      void setCommonI18NService​(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)  
      void setConfigService​(PPSConfigService configService)  
      void setOrderRequiresCalculationStrategy​(de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy orderRequiresCalculationStrategy)  
      void setPricingBackend​(PricingBackend pricingBackend)  
      protected void updateOrderFromPPS​(AbstractOrderModel order)  
      • Methods inherited from class de.hybris.platform.order.impl.DefaultCalculationService

        addAbsoluteEntryTaxValue, addRelativeEntryTaxValue, applyGrossMixedRate, applyNetMixedRate, calculate, calculateAbsoluteTotalTaxValue, calculateDiscountValues, calculateEntries, calculateSubtotal, calculateTotals, calculateTotals, calculateTotalTaxValues, calculateTotalTaxValues, convertDiscountValues, convertPriceIfNecessary, findGlobalDiscounts, findTaxValues, getTaxCorrectionFactor, getTaxFreeEntrySupport, getTaxFreeSubTotal, getUnappliedRelativeTaxValues, hasJaloStrategies, isAllEntriesTaxed, isTaxFreeEntrySupport, mustHandleTaxFreeEntries, recalculate, recalculate, recalculateOrderEntryIfNeeded, refreshOrder, requiresCalculation, resetAdditionalCosts, resetAllValues, resetAllValues, saveOrder, setCalculatedStatus, setCalculatedStatus, setFindDeliveryCostStrategy, setFindDiscountsStrategies, setFindPaymentCostStrategy, setFindPriceStrategy, setFindTaxesStrategies, 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 Detail

      • DefaultPPSCalculationService

        public DefaultPPSCalculationService()
    • Method Detail

      • calculate

        public void calculate​(AbstractOrderModel order)
                       throws de.hybris.platform.order.exceptions.CalculationException
        Specified by:
        calculate in interface de.hybris.platform.order.CalculationService
        Overrides:
        calculate in class de.hybris.platform.order.impl.DefaultCalculationService
        Throws:
        de.hybris.platform.order.exceptions.CalculationException
      • recalculate

        public void recalculate​(AbstractOrderModel order)
                         throws de.hybris.platform.order.exceptions.CalculationException
        Specified by:
        recalculate in interface de.hybris.platform.order.CalculationService
        Overrides:
        recalculate 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
      • updateOrderFromPPS

        protected void updateOrderFromPPS​(AbstractOrderModel order)
                                   throws de.hybris.platform.order.exceptions.CalculationException
        Throws:
        de.hybris.platform.order.exceptions.CalculationException
      • findDiscountValues

        protected java.util.List<de.hybris.platform.util.DiscountValue> findDiscountValues​(AbstractOrderEntryModel entry)
                                                                                    throws de.hybris.platform.order.exceptions.CalculationException
        Overrides:
        findDiscountValues in class de.hybris.platform.order.impl.DefaultCalculationService
        Throws:
        de.hybris.platform.order.exceptions.CalculationException
      • findBasePrice

        protected de.hybris.platform.util.PriceValue findBasePrice​(AbstractOrderEntryModel entry)
                                                            throws de.hybris.platform.order.exceptions.CalculationException
        Overrides:
        findBasePrice in class de.hybris.platform.order.impl.DefaultCalculationService
        Throws:
        de.hybris.platform.order.exceptions.CalculationException
      • getCommonI18NService

        public de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
      • setCommonI18NService

        public void setCommonI18NService​(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
        Overrides:
        setCommonI18NService in class de.hybris.platform.order.impl.DefaultCalculationService
      • getOrderRequiresCalculationStrategy

        public de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy getOrderRequiresCalculationStrategy()
      • setOrderRequiresCalculationStrategy

        public void setOrderRequiresCalculationStrategy​(de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy orderRequiresCalculationStrategy)
        Overrides:
        setOrderRequiresCalculationStrategy in class de.hybris.platform.order.impl.DefaultCalculationService
      • setPricingBackend

        public void setPricingBackend​(PricingBackend pricingBackend)
      • setConfigService

        public void setConfigService​(PPSConfigService configService)