Class PROSFilterDataReferencesHandler

java.lang.Object
de.hybris.platform.prosfacades.fare.search.handlers.impl.PROSFilterDataReferencesHandler
All Implemented Interfaces:
ShoppingFlightSearchHandler

public class PROSFilterDataReferencesHandler extends Object implements ShoppingFlightSearchHandler
Handler to remove the data references that are not referenced in the solution.
  • 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: ShoppingFlightSearchHandler
      Handle method
      Specified by:
      handle in interface ShoppingFlightSearchHandler
      Parameters:
      searchResponseMessage - the search response message
      fareShopMessage - the fare shop message
      flightSearchResponseData - the flightSearchResponseData
      transportOfferingDataMap - the transportOfferingDataMap
      flightIdCodeMap - the flightIdCodeMap
      flightSearchRequestData - the flight search request data
    • filterAircraft

      protected void filterAircraft(List<AircraftData> aircrafts, List<FlightData> flights)
      Filters the aircraft.
      Parameters:
      aircrafts - the aircrafts
      flights - the flights
    • filterAirports

      protected void filterAirports(List<AirportData> airports, List<FlightData> flights)
      Remove airports which are not referenced in flights.
      Parameters:
      airports - the airports
      flights - the flights
    • filterCarriers

      protected void filterCarriers(List<CarrierData> carriers, List<FlightData> flights)
      Remove the carriers which are not referenced in flights.
      Parameters:
      carriers - the carriers
      flights - 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

      protected void filterFlights(List<FlightGroupData> flightGroups, List<FlightData> flights)
      Remove the flights which are not referenced in flight groups.
      Parameters:
      flightGroups - the flight groups
      flights - the flights
    • filterFlightGroups

      protected void filterFlightGroups(List<SolutionData> solutions, List<FlightGroupData> flightGroups)
      Remove the flight groups which are not referenced in solutions.
      Parameters:
      solutions - the solutions
      flightGroups - the flight groups
    • filterFares

      protected void filterFares(List<BookingOptionData> bookingOptions, List<FareData> fares)
      Remove the fares which are not referenced in solutions.
      Parameters:
      bookingOptions - the booking options
      fares - 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 options
      fareBundles - 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 bundles
      fareBundleProducts - the fare bundle products