Interface TransportOfferingFacade

All Known Subinterfaces:
PROSTransportOfferingFacade, ShoppingTransportOfferingFacade
All Known Implementing Classes:
DefaultPROSTransportOfferingFacade, DefaultShoppingTransportOfferingFacade, DefaultTransportOfferingFacade

public interface TransportOfferingFacade
Facade that exposes Transport Offering specific services
  • Method Details

    • getTransportOffering

      TransportOfferingData getTransportOffering(String code)
      Get a TransportOfferingData by code.
      Parameters:
      code - the unique code for a transport offering
      Returns:
      TransportOfferingData transport offering
    • getTransportOfferings

      List<TransportOfferingData> getTransportOfferings(String number, Date departureDate, List<TransportOfferingOption> options)
      Get a list of TransportOfferingData by number and departureDate.
      Parameters:
      number - the number of requested transport offering
      departureDate - the departure date of requested transport offering
      options - the options for populating the TransportOfferingData
      Returns:
      List transport offerings
    • getTransportOfferings

      List<TransportOfferingData> getTransportOfferings(List<TransportOfferingOption> options, List<TransportOfferingModel> transportOfferingModelList)
      Get a list of TransportOfferingData for TransportOfferingModels.
      Parameters:
      options - the options for populating the TransportOfferingData
      transportOfferingModelList - list of TransportOfferingModels
      Returns:
      List transport offerings
    • getScheduledRoutes

      List<ScheduledRouteData> getScheduledRoutes(FareSearchRequestData fareSearchRequestData)
      Method uses the arrivalLocation and departureLocation form OriginDestinationInfoData on FareSearchRequestData** to get a list of TravelRouteModel from the Database. Each TravelRouteModel is then converted to a list of TravelRouteData by the TravelRoutePopulator. The method then queries Solr for a list of TransportOfferingData for each TravelSectorData within each TravelRouteData and then runs an algorithm to match TransportOfferingData for each TravelSectorData before building the ScheduledRouteData** consisting of valid TransportOfferingData combinations per TravelRouteModel
      Parameters:
      fareSearchRequestData - the request made by the user
      Returns:
      List scheduled routes
    • getOriginSuggestions

      Map<String,Map<String,String>> getOriginSuggestions(String text)
      Method to retrieve suggestions for the origin search text
      Parameters:
      text - the text
      Returns:
      Map of suggestions results
    • getDestinationSuggestions

      Map<String,Map<String,String>> getDestinationSuggestions(String originLocation, String text)
      Method to retrieve suggestions for the destination search text and origin code
      Parameters:
      originLocation - the origin location
      text - the text
      Returns:
      Map of suggestions results
    • getOriginSuggestionData

      Map<GlobalSuggestionData,List<GlobalSuggestionData>> getOriginSuggestionData(String text)
      Method to retrieve suggestions for the origin search text
      Parameters:
      text - the text
      Returns:
      Map of suggestions results using GlobalSuggestionData objects
    • getDestinationSuggestionData

      Map<GlobalSuggestionData,List<GlobalSuggestionData>> getDestinationSuggestionData(String originLocation, String text)
      Method to retrieve suggestions for the destination search text and origin code
      Parameters:
      originLocation - the origin location
      text - the text
      Returns:
      Map of suggestions results using GlobalSuggestionData objects
    • isMultiSectorRoute

      boolean isMultiSectorRoute(List<String> transportOfferings)
      Method to check if the route is multi sector
      Parameters:
      transportOfferings - the transport offerings
      Returns:
      boolean boolean
    • getOriginSuggestions

      TravelLocationSuggestionData getOriginSuggestions(String searchText, String destination)
      Method to retrieve suggestions for the origins search text that cover the specific destination
      Parameters:
      searchText - the origin suggestion
      destination - the destination to be covered from the origin
      Returns:
      the TravelLocationSuggestionData
    • getDestinationLocationSuggestions

      TravelLocationSuggestionData getDestinationLocationSuggestions(String searchText, String origin)
      Method to retrieve suggestions for the destinations search text that cover the specific origin
      Parameters:
      searchText - the destination suggestion
      origin - the origin to be covered from the destination
      Returns:
      TravelLocationSuggestionData of Location suggestions
    • getTransportOffering

      TransportOfferingData getTransportOffering(List<TransportOfferingOption> options, String transportOfferingCode) throws de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException
      Gets transport offering details for transportOfferingCode.
      Parameters:
      options - the transport offering options
      transportOfferingCode - the transport offering code
      Returns:
      TransportOfferingData the transport offering data
      Throws:
      de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException - the unknown identifier exception