Class TransportLocationsController
java.lang.Object
de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
de.hybris.platform.coretransportocc.controllers.TransportLocationsController
@Controller
@RequestMapping("/{baseSiteId}")
public class TransportLocationsController
extends TravelBaseController
-
Field Summary
Fields inherited from class de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
BASIC_FIELD_SET, DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<TransportLocationSuggestionResponse>getDestinationSuggestions(String searchText, String origin) org.springframework.http.ResponseEntity<TransportLocationSuggestionResponse>getOriginSuggestions(String searchText, String destination) Methods inherited from class de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
Constructor Details
-
TransportLocationsController
public TransportLocationsController()
-
-
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<TransportLocationSuggestionResponse> getOriginSuggestions(@RequestParam("searchText") String searchText, @RequestParam(value="destination",required=false,defaultValue="") String destination) -
getDestinationSuggestions
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/destinationSuggestions", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<TransportLocationSuggestionResponse> getDestinationSuggestions(@RequestParam("searchText") String searchText, @RequestParam(value="origin",required=false,defaultValue="") String origin)
-