Class DefaultSuggestionsDisplayStrategy
java.lang.Object
de.hybris.platform.travelfacades.strategies.impl.DefaultSuggestionsDisplayStrategy
- All Implemented Interfaces:
SuggestionsDisplayStrategy
Strategy to create the display view for suggestion results.
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.travelfacades.strategies.SuggestionsDisplayStrategy
SuggestionsDisplayStrategy.SuggestionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateStructuredView(SuggestionsDisplayStrategy.SuggestionType suggestionType, String searchText, List<TransportOfferingData> transportOfferingDataList) Method to apply the strategy on a collection.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected StringMethod to create the formatted stringprotected StringGets header.protected StringGets option.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.
-
Constructor Details
-
DefaultSuggestionsDisplayStrategy
public DefaultSuggestionsDisplayStrategy()
-
-
Method Details
-
createStructuredView
public Map<String,Map<String, createStructuredViewString>> (SuggestionsDisplayStrategy.SuggestionType suggestionType, String searchText, List<TransportOfferingData> transportOfferingDataList) Description copied from interface:SuggestionsDisplayStrategyMethod to apply the strategy on a collection.- Specified by:
createStructuredViewin interfaceSuggestionsDisplayStrategy- Parameters:
suggestionType- the suggestion typesearchText- the search texttransportOfferingDataList- the transport offering data list- Returns:
- map
-
getHeader
protected String getHeader(String country, String city, String code, String name, String searchText) Gets header.- Parameters:
country- the countrycity- the citycode- the codename- the namesearchText- the search text- Returns:
- formatted header value
-
getOption
protected String getOption(String country, String city, String code, String name, String searchText) Gets option.- Parameters:
country- the countrycity- the citycode- the codename- the namesearchText- the search text- Returns:
- formatted option value
-
getFormattedValue
protected String getFormattedValue(String format, String country, String city, String code, String name) Method to create the formatted string- Parameters:
format- the formatcountry- the countrycity- the citycode- the codename- the name- Returns:
- formatted string
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()Gets configuration service.- Returns:
- the configuration service
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.- Parameters:
configurationService- the configuration service
-