Class TransportUsersController

java.lang.Object
de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
de.hybris.platform.coretransportocc.controllers.TransportUsersController

@Controller @RequestMapping("/{baseSiteId}/users") public class TransportUsersController extends TravelBaseController
Web Service Controller for transport users resource
  • Constructor Details

    • TransportUsersController

      public TransportUsersController()
  • Method Details

    • getSavedTravellers

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{userId}/savedTravellers", method=GET) @ResponseBody public org.springframework.http.ResponseEntity getSavedTravellers()
      Get saved travellers for user.
      Returns:
      TravellersList
    • getSavedSearchesForUser

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{userId}/savedSearches", method=GET) @ResponseBody public org.springframework.http.ResponseEntity getSavedSearchesForUser(@PathVariable String userId)
    • removeSavedSearch

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{userId}/savedSearches/{savedSearchId}", method=DELETE) @ResponseStatus(OK) public org.springframework.http.ResponseEntity removeSavedSearch(@PathVariable String userId, @PathVariable String savedSearchId)
    • closeAccount

      @RequestMapping(value="/{userId}", method=DELETE) @ResponseStatus(OK) public org.springframework.http.ResponseEntity closeAccount(@PathVariable String userId)
    • removeSavedtraveller

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="{userId}/savedTravellers/{travellerId}", method=DELETE) @ResponseStatus(NO_CONTENT) public org.springframework.http.ResponseEntity removeSavedtraveller(@PathVariable String travellerId)
    • checkIfTravellerBelongsToUser

      protected boolean checkIfTravellerBelongsToUser(String travellerId, List<TravellerData> savedTravellers)