Class FindTravelPricingWithCurrentPriceFactoryStrategy

java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.order.strategies.calculation.impl.FindPricingWithCurrentPriceFactoryStrategy
de.hybris.platform.subscriptionservices.subscription.impl.FindSubscriptionPricingWithCurrentPriceFactoryStrategy
de.hybris.platform.travelservices.price.strategies.impl.FindTravelPricingWithCurrentPriceFactoryStrategy
All Implemented Interfaces:
de.hybris.platform.order.strategies.calculation.FindDiscountValuesStrategy, de.hybris.platform.order.strategies.calculation.FindPriceStrategy, de.hybris.platform.order.strategies.calculation.FindTaxValuesStrategy, de.hybris.platform.order.strategies.calculation.ServiceLayerOnlyCalculationVerifier, de.hybris.platform.servicelayer.user.UserNetCheckingStrategy, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
FindShoppingTravelPricingWithCurrentPriceFactoryStrategy

public class FindTravelPricingWithCurrentPriceFactoryStrategy extends de.hybris.platform.subscriptionservices.subscription.impl.FindSubscriptionPricingWithCurrentPriceFactoryStrategy
Travel implementation of price, taxes and discounts resolver strategies (FindPriceStrategy, FindDiscountValuesStrategy, FindTaxValuesStrategy) that resolves values for calculation from current session's price factory. If no session price factory is set it uses OrderManager.getPriceFactory() which will retrieve the default one according to system settings.
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, txManager

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

    tenant
  • Constructor Summary

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
    de.hybris.platform.util.PriceValue
     
    Collection<de.hybris.platform.util.TaxValue>
     
    protected de.hybris.platform.util.PriceValue
     
    protected de.hybris.platform.servicelayer.session.SessionService
     
    protected Collection<de.hybris.platform.util.TaxValue>
     
     
    protected void
    Method to set parameters in the context.
    void
    setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
     
    protected void
    Method to set parameters in the context.
    void
     

    Methods inherited from class de.hybris.platform.subscriptionservices.subscription.impl.FindSubscriptionPricingWithCurrentPriceFactoryStrategy

    createPriceValueForLastRecurringPrice, findDiscountValues, getCommercePriceService, getDiscountValuesWhenBillingFrequency, getSubscriptionProductService, setCommercePriceService, setSubscriptionProductService

    Methods inherited from class de.hybris.platform.order.strategies.calculation.impl.FindPricingWithCurrentPriceFactoryStrategy

    afterPropertiesSet, findDiscountValues, getCurrentPriceFactory, getDiscountInformation, getFindDiscountValuesHooks, getFindPriceHooks, getPriceInformation, getTaxInformation, isNetUser, setApplicationContext, setFindDiscountValuesHooks, setFindPriceHooks

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

    getModelService, getTxManager, setModelService, setTxManager

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

    getCurrentTenant, setBeanName, setCurrentTenant, writeReplace

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.hybris.platform.order.strategies.calculation.ServiceLayerOnlyCalculationVerifier

    isSLOnly
  • Constructor Details

    • FindTravelPricingWithCurrentPriceFactoryStrategy

      public FindTravelPricingWithCurrentPriceFactoryStrategy()
  • Method Details

    • findTaxValues

      public Collection<de.hybris.platform.util.TaxValue> findTaxValues(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException
      Specified by:
      findTaxValues in interface de.hybris.platform.order.strategies.calculation.FindTaxValuesStrategy
      Overrides:
      findTaxValues in class de.hybris.platform.order.strategies.calculation.impl.FindPricingWithCurrentPriceFactoryStrategy
      Throws:
      de.hybris.platform.order.exceptions.CalculationException
    • getTaxValues

      protected Collection<de.hybris.platform.util.TaxValue> getTaxValues(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException
      Throws:
      de.hybris.platform.order.exceptions.CalculationException
    • findBasePrice

      public de.hybris.platform.util.PriceValue findBasePrice(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException
      Specified by:
      findBasePrice in interface de.hybris.platform.order.strategies.calculation.FindPriceStrategy
      Overrides:
      findBasePrice in class de.hybris.platform.subscriptionservices.subscription.impl.FindSubscriptionPricingWithCurrentPriceFactoryStrategy
      Throws:
      de.hybris.platform.order.exceptions.CalculationException
    • getBasePrice

      protected de.hybris.platform.util.PriceValue getBasePrice(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException
      Throws:
      de.hybris.platform.order.exceptions.CalculationException
    • setPriceQueryParametersToContext

      protected void setPriceQueryParametersToContext(AbstractOrderEntryModel entry)
      Method to set parameters in the context. These will be used for querying prices in the factory class.
      Parameters:
      entry -
    • setTaxQueryParametersToContext

      protected void setTaxQueryParametersToContext(AbstractOrderEntryModel entry)
      Method to set parameters in the context. These will be used for querying taxes in the factory class.
      Parameters:
      entry -
    • getTransportFacilityService

      protected TransportFacilityService getTransportFacilityService()
      Returns:
      instance of transportFacilityService
    • setTransportFacilityService

      public void setTransportFacilityService(TransportFacilityService transportFacilityService)
      Parameters:
      transportFacilityService -
    • getSessionService

      protected de.hybris.platform.servicelayer.session.SessionService getSessionService()
      Overrides:
      getSessionService in class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
      Returns:
      the sessionService
    • setSessionService

      public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
      Overrides:
      setSessionService in class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
      Parameters:
      sessionService - the sessionService to set