Class DefaultSuggestionsDisplayStrategy

java.lang.Object
de.hybris.platform.travelfacades.strategies.impl.DefaultSuggestionsDisplayStrategy
All Implemented Interfaces:
SuggestionsDisplayStrategy

public class DefaultSuggestionsDisplayStrategy extends Object implements SuggestionsDisplayStrategy
Strategy to create the display view for suggestion results.
  • Constructor Details

    • DefaultSuggestionsDisplayStrategy

      public DefaultSuggestionsDisplayStrategy()
  • Method Details

    • createStructuredView

      public Map<String,Map<String,String>> createStructuredView(SuggestionsDisplayStrategy.SuggestionType suggestionType, String searchText, List<TransportOfferingData> transportOfferingDataList)
      Description copied from interface: SuggestionsDisplayStrategy
      Method to apply the strategy on a collection.
      Specified by:
      createStructuredView in interface SuggestionsDisplayStrategy
      Parameters:
      suggestionType - the suggestion type
      searchText - the search text
      transportOfferingDataList - 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 country
      city - the city
      code - the code
      name - the name
      searchText - 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 country
      city - the city
      code - the code
      name - the name
      searchText - 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 format
      country - the country
      city - the city
      code - the code
      name - 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