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
-
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 TypeMethodDescriptionprotected booleancheckIfTravellerBelongsToUser(String travellerId, List<TravellerData> savedTravellers) org.springframework.http.ResponseEntitycloseAccount(String userId) org.springframework.http.ResponseEntitygetSavedSearchesForUser(String userId) org.springframework.http.ResponseEntityGet saved travellers for user.org.springframework.http.ResponseEntityremoveSavedSearch(String userId, String savedSearchId) org.springframework.http.ResponseEntityremoveSavedtraveller(String travellerId) Methods inherited from class de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
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)
-