Interface TripFinderFacade
- All Known Implementing Classes:
DefaultTripFinderFacade
public interface TripFinderFacade
The Facade is used to delegate call to the TransportOfferingSearchFacade with the required object populated.
-
Method Summary
Modifier and TypeMethodDescriptiongetDestinationLocations(String activity, String originLocation) Gets destination locations.getDestinationLocationsSuggestion(String originLocationCode, List<TransportOfferingData> transportOfferings) Method to get the suggestions for destination locationgetDestinationTransportOfferings(String locationCode, String locationType, String activity) Returns the list of transport offerings according with the location passed as a parameter.getOriginLocationSuggestion(String originLocationCode, List<TransportOfferingData> transportOfferings) Method to get the suggestions for origin location
-
Method Details
-
getDestinationLocations
Gets destination locations.- Parameters:
activity- the activityoriginLocation- the origin location- Returns:
- List
list of transport offering data
-
getOriginLocationSuggestion
Map.Entry<String,Map<String, getOriginLocationSuggestionString>> (String originLocationCode, List<TransportOfferingData> transportOfferings) Method to get the suggestions for origin location- Parameters:
originLocationCode- the origin location codetransportOfferings- the transport offerings- Returns:
- map entry for location
-
getDestinationLocationsSuggestion
Map<String,Map<String, getDestinationLocationsSuggestionString>> (String originLocationCode, List<TransportOfferingData> transportOfferings) Method to get the suggestions for destination location- Parameters:
originLocationCode- the origin location codetransportOfferings- the transport offerings- Returns:
- map entry for location
-
getDestinationTransportOfferings
List<TransportOfferingData> getDestinationTransportOfferings(String locationCode, String locationType, String activity) Returns the list of transport offerings according with the location passed as a parameter. If the location is already a transport offering a singleton list will be returned otherwise a list of transport offering will be returned according with the hierarchy of the locationType- Parameters:
locationCode-locationType-activity-- Returns:
-