Class FareInfoHandler
java.lang.Object
de.hybris.platform.travelfacades.fare.search.handlers.impl.AbstractFareInfoHandler
de.hybris.platform.travelfacades.fare.search.handlers.impl.FareInfoHandler
- All Implemented Interfaces:
FareSearchHandler
Concrete implementation of the
FareSearchHandler interface. Handler is responsible for
populating the Fare Prices for scheduled route and populates the Passenger breakdown prices
on FareSelectionData-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TransportOfferingFacadeGets transport offering facade.protected voidpopulateProductPricesAndSort(PricedItineraryData pricedItinerary, ItineraryPricingInfoData itineraryPricingInfoData) Method to populate the price information for all the fare products and ancillary products.protected voidpopulateProductPricesForOptions(List<? extends ProductData> productList, String transportOfferingCode, String sectorCode, String routeCode, BundleTemplateModel bundleTemplate) This method populates the price information for all the fare products and ancillary products.voidsetTransportOfferingFacade(TransportOfferingFacade transportOfferingFacade) Sets transport offering facade.Methods inherited from class de.hybris.platform.travelfacades.fare.search.handlers.impl.AbstractFareInfoHandler
checkValidAncillaryProducts, createFareDetails, createFareInfo, createPriceData, createPriceData, createPTCFareBreakDownList, getBundleTemplateService, getChildFareProductBundleTemplate, getCommonI18NService, getFareProductFromBundleTemplate, getPriceDataFactory, getProductsSortStrategy, getTotalFromFareAndAncillaryProducts, getTravelCommercePriceFacade, handle, isItineraryPricingInfoAvailable, logNoPriceForSearchKey, logNoPriceForTransportOffering, populateProductPrices, populatePTCFareBreakDownData, removeUnusedFareProducts, setBundleTemplateService, setCommonI18NService, setPriceDataFactory, setProductsSortStrategy, setTravelCommercePriceFacade
-
Constructor Details
-
FareInfoHandler
public FareInfoHandler()
-
-
Method Details
-
populateProductPricesAndSort
protected void populateProductPricesAndSort(PricedItineraryData pricedItinerary, ItineraryPricingInfoData itineraryPricingInfoData) Description copied from class:AbstractFareInfoHandlerMethod to populate the price information for all the fare products and ancillary products. The retrieved products are then sorted using strategy.- Specified by:
populateProductPricesAndSortin classAbstractFareInfoHandler- Parameters:
pricedItinerary- the priced itineraryitineraryPricingInfoData- the itinerary pricing info data
-
populateProductPricesForOptions
protected void populateProductPricesForOptions(List<? extends ProductData> productList, String transportOfferingCode, String sectorCode, String routeCode, BundleTemplateModel bundleTemplate) Description copied from class:AbstractFareInfoHandlerThis method populates the price information for all the fare products and ancillary products. The prices are searched in the order of transportoffering, sector, route and default price. The first available price will be set to the product.- Specified by:
populateProductPricesForOptionsin classAbstractFareInfoHandler- Parameters:
productList- the product listtransportOfferingCode- the transport offering codesectorCode- the sector coderouteCode- the route codebundleTemplate- the bundle template
-
getTransportOfferingFacade
Gets transport offering facade.- Returns:
- the transportOfferingFacade
-
setTransportOfferingFacade
Sets transport offering facade.- Parameters:
transportOfferingFacade- the transportOfferingFacade to set
-