Class DefaultTripFinderFacade
java.lang.Object
de.hybris.platform.travelfacades.tripfinder.impl.DefaultTripFinderFacade
- All Implemented Interfaces:
TripFinderFacade
The Facade is used to delegate call to the TransportOfferingSearchFacade with the required object populated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<TransportOfferingData>createDistinctDestinationsList(List<TransportOfferingData> transportOfferings) protected de.hybris.platform.servicelayer.config.ConfigurationServicegetDestinationLocations(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.protected de.hybris.platform.enumeration.EnumerationServiceprotected Map<LocationType,LocationCodesResolvingStrategy> getOriginLocationSuggestion(String originLocationCode, List<TransportOfferingData> transportOfferings) Method to get the suggestions for origin locationprotected SuggestionsDisplayStrategyGets suggestions display strategy.Gets transport offering search facade.protected SearchDatapopulateSearchData(String activity, String originLocation) Method to prepare search parameters to be used during activity searchvoidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) voidsetLocationCodesResolvingStrategyMap(Map<LocationType, LocationCodesResolvingStrategy> locationCodesResolvingStrategyMap) voidsetSuggestionsDisplayStrategy(SuggestionsDisplayStrategy suggestionsDisplayStrategy) Sets suggestions display strategy.voidsetTransportOfferingSearchFacade(TransportOfferingSearchFacade<TransportOfferingData> transportOfferingSearchFacade) Sets transport offering search facade.
-
Constructor Details
-
DefaultTripFinderFacade
public DefaultTripFinderFacade()
-
-
Method Details
-
getDestinationLocations
Description copied from interface:TripFinderFacadeGets destination locations.- Specified by:
getDestinationLocationsin interfaceTripFinderFacade- Parameters:
activity- the activityoriginLocation- the origin location- Returns:
- List
list of transport offering data
-
populateSearchData
Method to prepare search parameters to be used during activity search- Parameters:
activity- the activityoriginLocation- the origin location- Returns:
- search data
-
getOriginLocationSuggestion
public Map.Entry<String,Map<String, getOriginLocationSuggestionString>> (String originLocationCode, List<TransportOfferingData> transportOfferings) Description copied from interface:TripFinderFacadeMethod to get the suggestions for origin location- Specified by:
getOriginLocationSuggestionin interfaceTripFinderFacade- Parameters:
originLocationCode- the origin location codetransportOfferings- the transport offerings- Returns:
- map entry for location
-
getDestinationLocationsSuggestion
public Map<String,Map<String, getDestinationLocationsSuggestionString>> (String originLocationCode, List<TransportOfferingData> transportOfferings) Description copied from interface:TripFinderFacadeMethod to get the suggestions for destination location- Specified by:
getDestinationLocationsSuggestionin interfaceTripFinderFacade- Parameters:
originLocationCode- the origin location codetransportOfferings- the transport offerings- Returns:
- map entry for location
-
getDestinationTransportOfferings
public List<TransportOfferingData> getDestinationTransportOfferings(String locationCode, String locationType, String activity) Description copied from interface:TripFinderFacadeReturns 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:
getDestinationTransportOfferingsin interfaceTripFinderFacade- Returns:
-
createDistinctDestinationsList
protected List<TransportOfferingData> createDistinctDestinationsList(List<TransportOfferingData> transportOfferings) -
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
Gets suggestions display strategy.- Returns:
- the suggestions display strategy
-
setSuggestionsDisplayStrategy
Sets suggestions display strategy.- Parameters:
suggestionsDisplayStrategy- the suggestions display strategy
-
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
-