Class TripFinderPageController


@Controller @RequestMapping("/trip-finder") public class TripFinderPageController extends AbstractSearchPageController
Controller for Trip Finder page
  • Constructor Details

    • TripFinderPageController

      public TripFinderPageController()
  • Method Details

    • getTripFinderPage

      @RequestMapping(method=GET) public String getTripFinderPage(org.springframework.ui.Model model, @RequestParam("activity") String activity, @RequestParam(value="city",required=false) String city) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Parameters:
      model -
      activity -
      city -
      Returns:
      String
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • searchByCurrentPosition

      @ResponseBody @RequestMapping(value="/get-nearest-airport", method={GET,POST}) public String searchByCurrentPosition(@RequestParam("activity") String activity, @RequestParam("latitude") double latitude, @RequestParam("longitude") double longitude) throws de.hybris.platform.storelocator.exception.GeoLocatorException, de.hybris.platform.storelocator.exception.MapServiceException
      Parameters:
      latitude -
      longitude -
      Returns:
      String
      Throws:
      de.hybris.platform.storelocator.exception.GeoLocatorException
      de.hybris.platform.storelocator.exception.MapServiceException
    • getDestinationLocations

      @RequestMapping(value="/get-destination-locations", method=POST, produces="application/json") public String getDestinationLocations(org.springframework.ui.Model model, @RequestParam("activity") String activity, @RequestParam(value="origin",required=false) String originLocationCode, @RequestParam(value="originType",required=false) String originType, @RequestParam(value="city",required=false) String city) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      Parameters:
      model -
      activity -
      originLocationCode -
      city -
      Returns:
      List
      Throws:
      de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
    • validateFieldPattern

      protected Boolean validateFieldPattern(String attribute, String pattern)