Class DefaultTripFinderFacade

java.lang.Object
de.hybris.platform.travelfacades.tripfinder.impl.DefaultTripFinderFacade
All Implemented Interfaces:
TripFinderFacade

public class DefaultTripFinderFacade extends Object implements TripFinderFacade
The Facade is used to delegate call to the TransportOfferingSearchFacade with the required object populated.
  • Constructor Details

    • DefaultTripFinderFacade

      public DefaultTripFinderFacade()
  • Method Details

    • getDestinationLocations

      public List<TransportOfferingData> getDestinationLocations(String activity, String originLocation)
      Description copied from interface: TripFinderFacade
      Gets destination locations.
      Specified by:
      getDestinationLocations in interface TripFinderFacade
      Parameters:
      activity - the activity
      originLocation - the origin location
      Returns:
      List list of transport offering data
    • populateSearchData

      protected SearchData populateSearchData(String activity, String originLocation)
      Method to prepare search parameters to be used during activity search
      Parameters:
      activity - the activity
      originLocation - the origin location
      Returns:
      search data
    • getOriginLocationSuggestion

      public Map.Entry<String,Map<String,String>> getOriginLocationSuggestion(String originLocationCode, List<TransportOfferingData> transportOfferings)
      Description copied from interface: TripFinderFacade
      Method to get the suggestions for origin location
      Specified by:
      getOriginLocationSuggestion in interface TripFinderFacade
      Parameters:
      originLocationCode - the origin location code
      transportOfferings - the transport offerings
      Returns:
      map entry for location
    • getDestinationLocationsSuggestion

      public Map<String,Map<String,String>> getDestinationLocationsSuggestion(String originLocationCode, List<TransportOfferingData> transportOfferings)
      Description copied from interface: TripFinderFacade
      Method to get the suggestions for destination location
      Specified by:
      getDestinationLocationsSuggestion in interface TripFinderFacade
      Parameters:
      originLocationCode - the origin location code
      transportOfferings - the transport offerings
      Returns:
      map entry for location
    • getDestinationTransportOfferings

      public List<TransportOfferingData> getDestinationTransportOfferings(String locationCode, String locationType, String activity)
      Description copied from interface: TripFinderFacade
      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
      Specified by:
      getDestinationTransportOfferings in interface TripFinderFacade
      Returns:
    • createDistinctDestinationsList

      protected List<TransportOfferingData> createDistinctDestinationsList(List<TransportOfferingData> transportOfferings)
    • getTransportOfferingSearchFacade

      protected TransportOfferingSearchFacade<TransportOfferingData> getTransportOfferingSearchFacade()
      Gets transport offering search facade.
      Returns:
      the transportOfferingSearchFacade
    • setTransportOfferingSearchFacade

      public void setTransportOfferingSearchFacade(TransportOfferingSearchFacade<TransportOfferingData> transportOfferingSearchFacade)
      Sets transport offering search facade.
      Parameters:
      transportOfferingSearchFacade - the transportOfferingSearchFacade to set
    • getSuggestionsDisplayStrategy

      protected SuggestionsDisplayStrategy getSuggestionsDisplayStrategy()
      Gets suggestions display strategy.
      Returns:
      the suggestions display strategy
    • setSuggestionsDisplayStrategy

      public void setSuggestionsDisplayStrategy(SuggestionsDisplayStrategy suggestionsDisplayStrategy)
      Sets suggestions display strategy.
      Parameters:
      suggestionsDisplayStrategy - the suggestions display strategy
    • getLocationCodesResolvingStrategyMap

      protected Map<LocationType,LocationCodesResolvingStrategy> getLocationCodesResolvingStrategyMap()
      Returns:
      the locationCodesResolvingStrategyMap
    • setLocationCodesResolvingStrategyMap

      public void setLocationCodesResolvingStrategyMap(Map<LocationType,LocationCodesResolvingStrategy> locationCodesResolvingStrategyMap)
      Parameters:
      locationCodesResolvingStrategyMap - the locationCodesResolvingStrategyMap to set
    • getEnumerationService

      protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()
      Returns:
      the enumerationService
    • setEnumerationService

      public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService)
      Parameters:
      enumerationService - the enumerationService to set
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Returns:
      the configurationService
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Parameters:
      configurationService - the configurationService to set