Class SpecialServicesController
java.lang.Object
de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
de.hybris.platform.coreairlineocc.controllers.SpecialServicesController
@Controller
@RequestMapping("/{baseSiteId}")
public class SpecialServicesController
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 TypeMethodDescriptionorg.springframework.http.ResponseEntityaddSpecialServiceToPassenger(String passengerId, String specialServiceRequestId, @NotBlank @Min(1L) Integer solutionID) org.springframework.http.ResponseEntity<SpecialServiceRequestList>org.springframework.http.ResponseEntityfindSpecialServiceRequestFromOrderAndTraveller(String orderId, String passengerId, @NotBlank @Min(1L) Integer solutionID) org.springframework.http.ResponseEntity<SpecialServiceRequestList>findSpecialServiceRequestFromTraveller(String passengerId, @NotBlank @Min(1L) Integer solutionID) org.springframework.http.ResponseEntityremoveSpecialServiceFromPassenger(String passengerId, String specialServiceRequestId, @NotBlank @Min(1L) Integer solutionID) Methods inherited from class de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
createPaginationData, getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
Constructor Details
-
SpecialServicesController
public SpecialServicesController()
-
-
Method Details
-
findAllSpecialServiceRequests
@Secured({"ROLE_CLIENT","ROLE_CUSTOMERGROUP","ROLE_GUEST","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/specialServices", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<SpecialServiceRequestList> findAllSpecialServiceRequests() -
addSpecialServiceToPassenger
@Secured({"ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/users/{userId}/carts/{cartId}/solutions/{solutionID}/passengers/{passengerId}/specialServiceRequests", method=POST) @ResponseBody public org.springframework.http.ResponseEntity addSpecialServiceToPassenger(@PathVariable(name="passengerId") String passengerId, @RequestParam(name="specialServiceRequestId") String specialServiceRequestId, @PathVariable(name="solutionID") @NotBlank @Min(1L) @NotBlank @Min(1L) Integer solutionID) -
removeSpecialServiceFromPassenger
@Secured({"ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/users/{userId}/carts/{cartId}/solutions/{solutionID}/passengers/{passengerId}/specialServiceRequests/{specialServiceRequestId}", method=DELETE) @ResponseBody public org.springframework.http.ResponseEntity removeSpecialServiceFromPassenger(@PathVariable(name="passengerId") String passengerId, @PathVariable(name="specialServiceRequestId") String specialServiceRequestId, @PathVariable(name="solutionID") @NotBlank @Min(1L) @NotBlank @Min(1L) Integer solutionID) -
findSpecialServiceRequestFromTraveller
@Secured({"ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/users/{userId}/carts/{cartId}/solutions/{solutionID}/passengers/{passengerId}/specialServiceRequests", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<SpecialServiceRequestList> findSpecialServiceRequestFromTraveller(@PathVariable(name="passengerId") String passengerId, @PathVariable(name="solutionID") @NotBlank @Min(1L) @NotBlank @Min(1L) Integer solutionID) -
findSpecialServiceRequestFromOrderAndTraveller
@Secured({"ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/users/{userId}/orders/{orderId}/solutions/{solutionID}/passengers/{passengerId}/specialServiceRequests", method=GET) @ResponseBody public org.springframework.http.ResponseEntity findSpecialServiceRequestFromOrderAndTraveller(@PathVariable(name="orderId",required=true) String orderId, @PathVariable(name="passengerId",required=true) String passengerId, @PathVariable(name="solutionID") @NotBlank @Min(1L) @NotBlank @Min(1L) Integer solutionID)
-