Class PROSFilterDataReferencesHandler
java.lang.Object
de.hybris.platform.prosfacades.fare.search.handlers.impl.PROSFilterDataReferencesHandler
- All Implemented Interfaces:
ShoppingFlightSearchHandler
Handler to remove the data references that are not referenced in the solution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfilterAircraft(List<AircraftData> aircrafts, List<FlightData> flights) Filters the aircraft.protected voidfilterAirports(List<AirportData> airports, List<FlightData> flights) Remove airports which are not referenced in flights.protected voidfilterBundleProducts(List<FareBundleData> fareBundles, List<BasicProductData> fareBundleProducts) Remove bundle products associated with bundles that are not referenced in fare bundles.protected voidfilterCarriers(List<CarrierData> carriers, List<FlightData> flights) Remove the carriers which are not referenced in flights.protected voidfilterFareBundles(List<BookingOptionData> bookingOptions, List<FareBundleData> fareBundles) Remove the fare bundles which are not referenced in solutions.protected voidfilterFares(List<BookingOptionData> bookingOptions, List<FareData> fares) Remove the fares which are not referenced in solutions.protected voidfilterFlightGroups(List<SolutionData> solutions, List<FlightGroupData> flightGroups) Remove the flight groups which are not referenced in solutions.protected voidfilterFlights(List<FlightGroupData> flightGroups, List<FlightData> flights) Remove the flights which are not referenced in flight groups.protected List<BookingOptionData>getBookingOptions(FlightSearchResponseData flightSearchResponseData) Get booking options from solutions.voidhandle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FlightSearchResponseData flightSearchResponseData, Map<String, TransportOfferingData> transportOfferingDataMap, Map<Integer, String> flightIdCodeMap, FlightSearchRequestData flightSearchRequestData) Handle method
-
Constructor Details
-
PROSFilterDataReferencesHandler
public PROSFilterDataReferencesHandler()
-
-
Method Details
-
handle
public void handle(SearchResponseMessage searchResponseMessage, FareShopMessage fareShopMessage, FlightSearchResponseData flightSearchResponseData, Map<String, TransportOfferingData> transportOfferingDataMap, Map<Integer, String> flightIdCodeMap, FlightSearchRequestData flightSearchRequestData) Description copied from interface:ShoppingFlightSearchHandlerHandle method- Specified by:
handlein interfaceShoppingFlightSearchHandler- Parameters:
searchResponseMessage- the search response messagefareShopMessage- the fare shop messageflightSearchResponseData- the flightSearchResponseDatatransportOfferingDataMap- the transportOfferingDataMapflightIdCodeMap- the flightIdCodeMapflightSearchRequestData- the flight search request data
-
filterAircraft
Filters the aircraft.- Parameters:
aircrafts- the aircraftsflights- the flights
-
filterAirports
Remove airports which are not referenced in flights.- Parameters:
airports- the airportsflights- the flights
-
filterCarriers
Remove the carriers which are not referenced in flights.- Parameters:
carriers- the carriersflights- the flights
-
getBookingOptions
protected List<BookingOptionData> getBookingOptions(FlightSearchResponseData flightSearchResponseData) Get booking options from solutions.- Parameters:
flightSearchResponseData- the flight search response data- Returns:
- the booking options
-
filterFlights
Remove the flights which are not referenced in flight groups.- Parameters:
flightGroups- the flight groupsflights- the flights
-
filterFlightGroups
Remove the flight groups which are not referenced in solutions.- Parameters:
solutions- the solutionsflightGroups- the flight groups
-
filterFares
Remove the fares which are not referenced in solutions.- Parameters:
bookingOptions- the booking optionsfares- the fares
-
filterFareBundles
protected void filterFareBundles(List<BookingOptionData> bookingOptions, List<FareBundleData> fareBundles) Remove the fare bundles which are not referenced in solutions.- Parameters:
bookingOptions- the booking optionsfareBundles- the fare bundles
-
filterBundleProducts
protected void filterBundleProducts(List<FareBundleData> fareBundles, List<BasicProductData> fareBundleProducts) Remove bundle products associated with bundles that are not referenced in fare bundles.- Parameters:
fareBundles- the fare bundlesfareBundleProducts- the fare bundle products
-