Class FlightUsersController

java.lang.Object
de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
de.hybris.platform.coreairlineocc.controllers.FlightUsersController

@Controller @RequestMapping("/{baseSiteId}/users") public class FlightUsersController extends AirlineBaseController
Web Service Controller for Flight users resource
  • Constructor Details

    • FlightUsersController

      public FlightUsersController()
  • Method Details

    • 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)
    • getSavedPassengers

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="/{userId}/savedPassengers", method=GET) @ResponseBody public org.springframework.http.ResponseEntity getSavedPassengers()
    • removeSavedPassenger

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_TRUSTED_CLIENT","ROLE_CUSTOMERMANAGERGROUP"}) @RequestMapping(value="{userId}/savedPassengers/{passengerId}", method=DELETE) public org.springframework.http.ResponseEntity removeSavedPassenger(@PathVariable String passengerId)
    • checkIfPassengerBelongsToUser

      protected boolean checkIfPassengerBelongsToUser(String passengerId, List<TravellerData> savedPassengers)