Class AirlineLocationsController
java.lang.Object
de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
de.hybris.platform.coreairlineocc.controllers.AirlineLocationsController
@Controller
@RequestMapping("/{baseSiteId}")
public class AirlineLocationsController
extends AirlineBaseController
-
Field Summary
Fields inherited from class de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
BASIC_FIELD_SET, DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfilterResults(TravelLocationSuggestionData results, String location) Filter resultsorg.springframework.http.ResponseEntity<LocationSuggestionResponse>getDestinationSuggestions(String searchText, String origin) org.springframework.http.ResponseEntity<LocationSuggestionResponse>getOriginSuggestions(String searchText, String destination) Methods inherited from class de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
createPaginationData, getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
Constructor Details
-
AirlineLocationsController
public AirlineLocationsController()
-
-
Method Details
-
getOriginSuggestions
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/originSuggestions", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<LocationSuggestionResponse> getOriginSuggestions(@RequestParam("searchText") String searchText, @RequestParam(value="destination",required=false,defaultValue="") String destination) -
filterResults
Filter results- Parameters:
results- Travel Location Suggestion Datalocation- Location
-
getDestinationSuggestions
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/destinationSuggestions", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<LocationSuggestionResponse> getDestinationSuggestions(@RequestParam("searchText") String searchText, @RequestParam(value="origin",required=false,defaultValue="") String origin)
-