Class SuggestionsController

java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.shoppingaddon.controllers.misc.SuggestionsController

@Controller @RequestMapping("/suggestions") public class SuggestionsController extends AbstractController
Controller for Suggestions functionality.
  • Field Details

    • LOG

      protected static final org.apache.log4j.Logger LOG
      The constant LOG.
    • shoppingTransportOfferingFacade

      protected ShoppingTransportOfferingFacade shoppingTransportOfferingFacade
      The Shopping transport offering facade.
  • Constructor Details

    • SuggestionsController

      public SuggestionsController()
  • Method Details

    • originSuggestions

      @RequestMapping(value="/origin", method=GET, produces="application/json") public String originSuggestions(@RequestParam("text") String text, org.springframework.ui.Model model)
      Origin suggestions string.
      Parameters:
      text - search text
      model - the model
      Returns:
      json page
    • destinationSuggestions

      @RequestMapping(value="/destination", method=GET, produces="application/json") public String destinationSuggestions(@RequestParam("code") String code, @RequestParam("text") String text, org.springframework.ui.Model model)
      Destination suggestions string.
      Parameters:
      code - selected Origin location code
      text - search text
      model - the model
      Returns:
      json page
    • filterOutOriginFromResults

      protected void filterOutOriginFromResults(Map<GlobalSuggestionData,List<GlobalSuggestionData>> results, String code)
      Filter out origin from results.
      Parameters:
      results - the results
      code - the code