Class DefaultTransportSuggestionsDisplayStrategy
java.lang.Object
de.hybris.platform.travelfacades.strategies.impl.DefaultTransportSuggestionsDisplayStrategy
- All Implemented Interfaces:
TransportSuggestionsDisplayStrategy
public class DefaultTransportSuggestionsDisplayStrategy
extends Object
implements TransportSuggestionsDisplayStrategy
Strategy to create the display view for transport suggestion results.
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.travelfacades.strategies.TransportSuggestionsDisplayStrategy
TransportSuggestionsDisplayStrategy.LegSuggestionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GlobalSuggestionDatabuildOption(TransportOfferingData transportOfferingData, TransportSuggestionsDisplayStrategy.LegSuggestionType type) createSuggestionsMap(String searchText, List<TransportOfferingData> transportOfferingDataList, TransportSuggestionsDisplayStrategy.LegSuggestionType type) Builds a map object to store suggestionsprotected de.hybris.platform.servicelayer.config.ConfigurationServiceprotected Stringprotected voidpopulateEntry(List<TransportOfferingData> traOffList, Map<GlobalSuggestionData, List<GlobalSuggestionData>> mapToReturn, TransportSuggestionsDisplayStrategy.LegSuggestionType type) voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
-
Constructor Details
-
DefaultTransportSuggestionsDisplayStrategy
public DefaultTransportSuggestionsDisplayStrategy()
-
-
Method Details
-
createSuggestionsMap
public Map<GlobalSuggestionData,List<GlobalSuggestionData>> createSuggestionsMap(String searchText, List<TransportOfferingData> transportOfferingDataList, TransportSuggestionsDisplayStrategy.LegSuggestionType type) Description copied from interface:TransportSuggestionsDisplayStrategyBuilds a map object to store suggestions- Specified by:
createSuggestionsMapin interfaceTransportSuggestionsDisplayStrategy- Returns:
-
populateEntry
protected void populateEntry(List<TransportOfferingData> traOffList, Map<GlobalSuggestionData, List<GlobalSuggestionData>> mapToReturn, TransportSuggestionsDisplayStrategy.LegSuggestionType type) -
buildOption
protected GlobalSuggestionData buildOption(TransportOfferingData transportOfferingData, TransportSuggestionsDisplayStrategy.LegSuggestionType type) -
getFormattedValue
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()- Returns:
- configurationService
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) - Parameters:
configurationService- the configurationService to set
-