Class DealPricedItineraryBundleHandler

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

public class DealPricedItineraryBundleHandler extends Object implements FareSearchHandler
Concrete implementation of the FareSearchHandler interface. Handler is responsible for populating the ItineraryPricingInfoData for each PricedItineraryData on FareSelectionData
  • Constructor Details

    • DealPricedItineraryBundleHandler

      public DealPricedItineraryBundleHandler()
  • 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
    • populateItineraryPricingInformations

      protected void populateItineraryPricingInformations(PricedItineraryData pricedItinerary, DealOriginDestinationInfoData dealOriginDestinationInfoData)
      Populates the ItineraryPricingInfo for each pricedItinerary, using the RouteBundleTemplate correponding to the id specified in the dealOriginDestinationInfoData.
      Parameters:
      pricedItinerary - the pricedItinerary
      dealOriginDestinationInfoData - the dealOriginDestinationInfoData
    • getItineraryPricingInfos

      protected List<ItineraryPricingInfoData> getItineraryPricingInfos(DealOriginDestinationInfoData dealOriginDestinationInfoData, List<TransportOfferingData> transportOfferings)
      Returns the list of ItineraryPricingInfoData populated from the BundleTemplate corresponding to the id specified in the DealOriginDestinationInfoData
      Parameters:
      dealOriginDestinationInfoData - as the dealOriginDestinationInfoData
      transportOfferings - as the transportOfferings
      Returns:
      a list of ItineraryPricingInfoData
    • populateItineraryPricingInfosFromBundle

      protected void populateItineraryPricingInfosFromBundle(BundleTemplateModel bundleTemplateModel, List<TransportOfferingData> transportOfferings, List<ItineraryPricingInfoData> itineraryPricingInfoDatas)
      Populates the list of itineraryPricingInfoDatas from the given bundleTemplateModel and transportOfferings
      Parameters:
      bundleTemplateModel - as the bundleTemplateModel
      transportOfferings - as the list of transportOfferings
      itineraryPricingInfoDatas -
    • setItineraryPricingInfoAvailability

      protected void setItineraryPricingInfoAvailability(List<ItineraryPricingInfoData> itineraryPricingInfoDatas)
      Sets the availability of the ItineraryPricingInfoData. An itineraryPricingInfo is unavailable if no bundles are populated
      Parameters:
      itineraryPricingInfoDatas - as the itineraryPricingInfoDatas
    • getTransportOfferings

      protected List<TransportOfferingData> getTransportOfferings(PricedItineraryData pricedItinerary)
      Returns the list of TransportOfferingDatas from the given PricedItinerary. The method gets the ItineraryData from the pricedItinerary and then gets a list of OriginDestinationOption from the Itinerary object. An empty list if return if the list if empty otherwise a list of Transport Offerings is returned.
      Parameters:
      pricedItinerary - as the pricedItinerary
      Returns:
      a list of TransportOfferingData
    • getTravelBundleTemplateConverter

      protected de.hybris.platform.servicelayer.dto.converter.Converter<BundleTemplateModel,TravelBundleTemplateData> getTravelBundleTemplateConverter()
      Gets travel bundle template converter.
      Returns:
      the travel bundle template converter
    • setTravelBundleTemplateConverter

      public void setTravelBundleTemplateConverter(de.hybris.platform.servicelayer.dto.converter.Converter<BundleTemplateModel,TravelBundleTemplateData> travelBundleTemplateConverter)
      Sets travel bundle template converter.
      Parameters:
      travelBundleTemplateConverter - the travel bundle template converter
    • getEnumerationService

      protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()
      Gets enumeration service.
      Returns:
      the enumeration service
    • setEnumerationService

      public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService)
      Sets enumeration service.
      Parameters:
      enumerationService - the enumeration service
    • getTravelBundleTemplateService

      protected TravelBundleTemplateService getTravelBundleTemplateService()
      Gets travel bundle template service.
      Returns:
      the travel bundle template service
    • setTravelBundleTemplateService

      public void setTravelBundleTemplateService(TravelBundleTemplateService travelBundleTemplateService)
      Sets travel bundle template service.
      Parameters:
      travelBundleTemplateService - the travel bundle template service