Interface ShoppingTransportOfferingFacade

All Superinterfaces:
TransportOfferingFacade
All Known Subinterfaces:
PROSTransportOfferingFacade
All Known Implementing Classes:
DefaultPROSTransportOfferingFacade, DefaultShoppingTransportOfferingFacade

public interface ShoppingTransportOfferingFacade extends TransportOfferingFacade
THe interface shopping transport offering facade
  • Method Details

    • getDestinationSuggestionData

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

      TransportFacilityData getOrigin(List<TransportOfferingData> transportOfferings)
      Gets the origin from a sorted list of transport offerings.
      Parameters:
      transportOfferings - a list of transport offerings data
      Returns:
      the origin location
    • getDestination

      TransportFacilityData getDestination(List<TransportOfferingData> transportOfferings)
      Gets the destination from a sorted list of transport offerings.
      Parameters:
      transportOfferings - a list of transport offerings data
      Returns:
      the destination location
    • getOriginList

      Set<TransportFacilityModel> getOriginList(List<AbstractOrderEntryModel> transportationEntries)
      Method for retrieving a list of distinct origins from the transportation entries. The list is composed by the origin of the outbound entries and the destination of the inbound entries.
      Parameters:
      transportationEntries - the list of transportation entries
      Returns:
      a list of distinct origins
    • getDestinationList

      Set<TransportFacilityModel> getDestinationList(List<AbstractOrderEntryModel> transportationEntries)
      Method for retrieving a list of distinct destinations from the transportation entries. The list is composed by the origin of the inbound entries and the destination of the outbound entries.
      Parameters:
      transportationEntries - the list of transportation entries
      Returns:
      a list of distinct destinations
    • getOutboundTransportOfferings

      List<TransportOfferingModel> getOutboundTransportOfferings(List<AbstractOrderEntryModel> transportationEntries)
      Gets the list of outbound transport offerings
      Parameters:
      transportationEntries - the list of transprotation entries
      Returns:
      a list of outbound transport offerings
    • getInboundTransportOfferings

      List<TransportOfferingModel> getInboundTransportOfferings(List<AbstractOrderEntryModel> transportationEntries)
      Gets the list of inbound transport offerings
      Parameters:
      transportationEntries - the list of transportation entries
      Returns:
      a list of inbound tranport offerings
    • getLocationSuggestions

      TravelLocationSuggestionData getLocationSuggestions(String searchText, String location)
      Method to retrieve suggestions for the origins search text
      Parameters:
      searchText - the origin suggestion
      location - the destination to be covered from the origin or the origin code to be covered from the destination
      Returns:
      the TravelLocationSuggestionData