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 Details

    • getDestinationLocations

      List<TransportOfferingData> getDestinationLocations(String activity, String originLocation)
      Gets destination locations.
      Parameters:
      activity - the activity
      originLocation - the origin location
      Returns:
      List list of transport offering data
    • getOriginLocationSuggestion

      Map.Entry<String,Map<String,String>> getOriginLocationSuggestion(String originLocationCode, List<TransportOfferingData> transportOfferings)
      Method to get the suggestions for origin location
      Parameters:
      originLocationCode - the origin location code
      transportOfferings - the transport offerings
      Returns:
      map entry for location
    • getDestinationLocationsSuggestion

      Map<String,Map<String,String>> getDestinationLocationsSuggestion(String originLocationCode, List<TransportOfferingData> transportOfferings)
      Method to get the suggestions for destination location
      Parameters:
      originLocationCode - the origin location code
      transportOfferings - 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: