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, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.util.PriceValueCollection<de.hybris.platform.util.TaxValue>protected de.hybris.platform.util.PriceValueprotected de.hybris.platform.servicelayer.session.SessionServiceprotected Collection<de.hybris.platform.util.TaxValue>protected TransportFacilityServiceprotected voidMethod to set parameters in the context.voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) protected voidMethod to set parameters in the context.voidsetTransportFacilityService(TransportFacilityService transportFacilityService) Methods inherited from class de.hybris.platform.subscriptionservices.subscription.impl.FindSubscriptionPricingWithCurrentPriceFactoryStrategy
createPriceValueForLastRecurringPrice, findDiscountValues, getCommercePriceService, getDiscountValuesWhenBillingFrequency, getSubscriptionProductService, setCommercePriceService, setSubscriptionProductServiceMethods inherited from class de.hybris.platform.order.strategies.calculation.impl.FindPricingWithCurrentPriceFactoryStrategy
afterPropertiesSet, findDiscountValues, getCurrentPriceFactory, getDiscountInformation, getFindDiscountValuesHooks, getFindPriceHooks, getPriceInformation, getTaxInformation, isNetUser, setApplicationContext, setFindDiscountValuesHooks, setFindPriceHooksMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getTxManager, setModelService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
getCurrentTenant, setBeanName, setCurrentTenant, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
findTaxValuesin interfacede.hybris.platform.order.strategies.calculation.FindTaxValuesStrategy- Overrides:
findTaxValuesin classde.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:
findBasePricein interfacede.hybris.platform.order.strategies.calculation.FindPriceStrategy- Overrides:
findBasePricein classde.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
Method to set parameters in the context. These will be used for querying prices in the factory class.- Parameters:
entry-
-
setTaxQueryParametersToContext
Method to set parameters in the context. These will be used for querying taxes in the factory class.- Parameters:
entry-
-
getTransportFacilityService
- Returns:
- instance of transportFacilityService
-
setTransportFacilityService
- Parameters:
transportFacilityService-
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService()- Overrides:
getSessionServicein classde.hybris.platform.servicelayer.internal.service.AbstractBusinessService- Returns:
- the sessionService
-
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) - Overrides:
setSessionServicein classde.hybris.platform.servicelayer.internal.service.AbstractBusinessService- Parameters:
sessionService- the sessionService to set
-