Class DefaultEvaluateChangeSolutionResponseFlightInfoHandler

java.lang.Object
de.hybris.platform.prosfacades.repricer.handler.impl.DefaultEvaluateChangeSolutionResponseFlightInfoHandler
All Implemented Interfaces:
EvaluateChangeSolutionResponseHandler

public class DefaultEvaluateChangeSolutionResponseFlightInfoHandler extends Object implements EvaluateChangeSolutionResponseHandler
Populates flight information of ChangeSolutionReferenceData from RepricerResponse.
  • Constructor Details

    • DefaultEvaluateChangeSolutionResponseFlightInfoHandler

      public DefaultEvaluateChangeSolutionResponseFlightInfoHandler()
  • Method Details

    • handle

      public void handle(AbstractOrderModel orderModel, RepricingRequestData repricingRequestData, RepricerRequest repricerRequest, RepricerResponse repricerResponse, EvaluateChangeSolutionResponseData evaluateChangeSolutionResponseData)
      Description copied from interface: EvaluateChangeSolutionResponseHandler
      Handler to populate the reference data section and the repriced solutions.
      Specified by:
      handle in interface EvaluateChangeSolutionResponseHandler
      Parameters:
      orderModel - the abstract order model
      repricingRequestData - the repricingRequestData
      repricerRequest - the repricer request
      repricerResponse - the repricer response
    • populateFlightDataList

      protected void populateFlightDataList(RepricerResponseFlight changedSolutionFlight, List<FlightData> flightDataList, Set<String> flightNumbers, List<AircraftData> aircraftDataList, List<CarrierData> carrierDataList, List<AirportData> airportDataList)
      Populates the flight data list, together with the aircraft, carrier and airport information of the transport offering.
      Parameters:
      changedSolutionFlight - the changed solution flight
      flightDataList - the flight data list
      flightNumbers - the flight numbers
      aircraftDataList - the aircraft data list
      carrierDataList - the carrier data list
      airportDataList - the airport data list
    • populateAircraftDetails

      protected void populateAircraftDetails(TransportOfferingData transportOfferingData, List<AircraftData> aircraftList)
      Populates the aircraft details
      Parameters:
      transportOfferingData - the transport offering data
      aircraftList - the aircraft list
    • populateAirportDetails

      protected void populateAirportDetails(TransportOfferingData transportOfferingData, List<AirportData> airportList)
      Populates the airport details
      Parameters:
      transportOfferingData - the transport offering data
      airportList - the airport list
    • populateCarrierDetails

      protected void populateCarrierDetails(TransportOfferingData transportOfferingData, List<CarrierData> carrierList)
      Populate the carrier details
      Parameters:
      transportOfferingData - the transport offering data
      carrierList - the carrier list
    • getProsTransportOfferingFacade

      protected PROSTransportOfferingFacade getProsTransportOfferingFacade()
      Gets pros transport offering facade.
      Returns:
      the pros transport offering facade
    • setProsTransportOfferingFacade

      public void setProsTransportOfferingFacade(PROSTransportOfferingFacade prosTransportOfferingFacade)
      Sets pros transport offering facade.
      Parameters:
      prosTransportOfferingFacade - the pros transport offering facade