Class DefaultFareSearchFacade
java.lang.Object
de.hybris.platform.travelfacades.fare.search.impl.DefaultFareSearchFacade
- All Implemented Interfaces:
FareSearchFacade
- Direct Known Subclasses:
DefaultShoppingFareSearchFacade
Default implementation of FareSearchFacade
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LongchangeStockIfLower(Long stock, FareDetailsData fareDetailsData) doSearch(FareSearchRequestData fareSearchRequestData) Performs a search for fare selection options based on fare search requestprotected FareSearchPipelineManagergetRemainingSeats(FareSelectionData fareSelectionData) Returns a map representing the remaining stockLevel of the fareProduct for each bundleType and each pricedItineraries.protected LonggetStockForFare(ItineraryPricingInfoData itineraryPricingInfoData) protected TransportOfferingFacadevoidsetFareSearchPipelineManager(FareSearchPipelineManager fareSearchPipelineManager) voidsetTransportOfferingFacade(TransportOfferingFacade transportOfferingFacade)
-
Constructor Details
-
DefaultFareSearchFacade
public DefaultFareSearchFacade()
-
-
Method Details
-
doSearch
Description copied from interface:FareSearchFacadePerforms a search for fare selection options based on fare search request- Specified by:
doSearchin interfaceFareSearchFacade- Parameters:
fareSearchRequestData- the fare search request data- Returns:
- FareSelectionData object with available fare options
-
getRemainingSeats
Description copied from interface:FareSearchFacadeReturns a map representing the remaining stockLevel of the fareProduct for each bundleType and each pricedItineraries.- Specified by:
getRemainingSeatsin interfaceFareSearchFacade- Parameters:
fareSelectionData- the fare selection data- Returns:
- a Map<Integer, Map<String, Long>> where the key of the first map is the priceItineraryData.id, the key of the second map is the bundleType and the value of the second map is the remaining stockLevel.
-
getStockForFare
-
changeStockIfLower
-
getFareSearchPipelineManager
- Returns:
- the fareSearchPipelineManager
-
setFareSearchPipelineManager
- Parameters:
fareSearchPipelineManager- the fareSearchPipelineManager to set
-
getTransportOfferingFacade
- Returns:
- the transportOfferingFacade
-
setTransportOfferingFacade
- Parameters:
transportOfferingFacade- the transportOfferingFacade to set
-