Class SelectedFareBundlesHandler

java.lang.Object
de.hybris.platform.travelfacades.fare.search.handlers.impl.SelectedFareBundlesHandler
All Implemented Interfaces:
FareSearchHandler

public class SelectedFareBundlesHandler extends Object implements FareSearchHandler
Concrete implementation of the FareSearchHandler interface. Handler is responsible to mark as selected the ItineraryPricingInfoData in the FareSelectionData based of the ItineraryPricingInfoData of the ReservationData
  • Constructor Details

    • SelectedFareBundlesHandler

      public SelectedFareBundlesHandler()
  • Method Details

    • handle

      public void handle(List<ScheduledRouteData> scheduledRoutes, FareSearchRequestData fareSearchRequestData, FareSelectionData fareSelectionData)
      Description copied from interface: FareSearchHandler
      Handle method.
      Specified by:
      handle in interface FareSearchHandler
      Parameters:
      scheduledRoutes - the scheduled routes
      fareSearchRequestData - the fare search request data
      fareSelectionData - the fare selection data
    • populateSelectedBundles

      protected void populateSelectedBundles(FareSelectionData fareSelectionData, ReservationData reservationData)
      Populates the selected attribute of the ItineraryPricingInfo for the selected bundleType
      Parameters:
      fareSelectionData - as the fare selection data
      reservationData - as the reservation data
    • isSamePricedItinerary

      protected boolean isSamePricedItinerary(ItineraryData itinerary, ItineraryData reservationItinerary)
      Checks if the two itinerary given as input parameters are the same one. First it checks if the size of the list of OriginDestinationOptionData is the same; if it is the same, it then checks if the list of TransportOfferingData codes is the same.
      Parameters:
      itinerary - as the itinerary of the fareSelectionData
      reservationItinerary - as the itinerary of the reservationData
      Returns:
      true if the two itineraries are the same, false otherwise
    • getTransportOfferingCodes

      protected List<String> getTransportOfferingCodes(List<TransportOfferingData> transportOfferings)
      Returns a list of Strings representing the transportOffering codes from the given list of TransportOfferingData.
      Parameters:
      transportOfferings - as the list of transport offerings
      Returns:
      the list of the transport offering codes
    • getCartService

      protected de.hybris.platform.order.CartService getCartService()
      Returns:
      the cartService
    • setCartService

      public void setCartService(de.hybris.platform.order.CartService cartService)
      Parameters:
      cartService - the cartService to set
    • getTransportReservationSummaryPipelineManager

      protected ReservationPipelineManager getTransportReservationSummaryPipelineManager()
      Returns:
      the transportReservationSummaryPipelineManager
    • setTransportReservationSummaryPipelineManager

      public void setTransportReservationSummaryPipelineManager(ReservationPipelineManager transportReservationSummaryPipelineManager)
      Parameters:
      transportReservationSummaryPipelineManager - the transportReservationSummaryPipelineManager to set