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 Summary
Modifier and TypeMethodDescriptiongetDestinationLocationSuggestions(String searchText, String origin) Method to retrieve suggestions for the destinations search text that cover the specific origingetDestinationSuggestionData(String originLocation, String text) Method to retrieve suggestions for the destination search text and origin codegetDestinationSuggestions(String originLocation, String text) Method to retrieve suggestions for the destination search text and origin codeMethod to retrieve suggestions for the origin search textgetOriginSuggestions(String text) Method to retrieve suggestions for the origin search textgetOriginSuggestions(String searchText, String destination) Method to retrieve suggestions for the origins search text that cover the specific destinationgetScheduledRoutes(FareSearchRequestData fareSearchRequestData) Method uses the arrivalLocation and departureLocation formOriginDestinationInfoDataonFareSearchRequestData** to get a list ofTravelRouteModelfrom the Database.getTransportOffering(String code) Get a TransportOfferingData by code.getTransportOffering(List<TransportOfferingOption> options, String transportOfferingCode) Gets transport offering details for transportOfferingCode.getTransportOfferings(String number, Date departureDate, List<TransportOfferingOption> options) Get a list of TransportOfferingData by number and departureDate.getTransportOfferings(List<TransportOfferingOption> options, List<TransportOfferingModel> transportOfferingModelList) Get a list of TransportOfferingData for TransportOfferingModels.booleanisMultiSectorRoute(List<String> transportOfferings) Method to check if the route is multi sector
-
Method Details
-
getTransportOffering
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 offeringdepartureDate- the departure date of requested transport offeringoptions- 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 TransportOfferingDatatransportOfferingModelList- list of TransportOfferingModels- Returns:
- List
transport offerings
-
getScheduledRoutes
Method uses the arrivalLocation and departureLocation formOriginDestinationInfoDataonFareSearchRequestData** to get a list ofTravelRouteModelfrom the Database. EachTravelRouteModelis then converted to a list ofTravelRouteDataby theTravelRoutePopulator. The method then queries Solr for a list ofTransportOfferingDatafor eachTravelSectorDatawithin eachTravelRouteDataand then runs an algorithm to matchTransportOfferingDatafor eachTravelSectorDatabefore building theScheduledRouteData** consisting of validTransportOfferingDatacombinations perTravelRouteModel- Parameters:
fareSearchRequestData- the request made by the user- Returns:
- List
scheduled routes
-
getOriginSuggestions
Method to retrieve suggestions for the origin search text- Parameters:
text- the text- Returns:
- Map of suggestions results
-
getDestinationSuggestions
Method to retrieve suggestions for the destination search text and origin code- Parameters:
originLocation- the origin locationtext- the text- Returns:
- Map of suggestions results
-
getOriginSuggestionData
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 locationtext- the text- Returns:
- Map of suggestions results using GlobalSuggestionData objects
-
isMultiSectorRoute
Method to check if the route is multi sector- Parameters:
transportOfferings- the transport offerings- Returns:
- boolean boolean
-
getOriginSuggestions
Method to retrieve suggestions for the origins search text that cover the specific destination- Parameters:
searchText- the origin suggestiondestination- the destination to be covered from the origin- Returns:
- the TravelLocationSuggestionData
-
getDestinationLocationSuggestions
Method to retrieve suggestions for the destinations search text that cover the specific origin- Parameters:
searchText- the destination suggestionorigin- 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 optionstransportOfferingCode- the transport offering code- Returns:
TransportOfferingDatathe transport offering data- Throws:
de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException- the unknown identifier exception
-