Class SpecialServicesController
java.lang.Object
de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
de.hybris.platform.coretransportocc.controllers.SpecialServicesController
@Controller
@RequestMapping("/{baseSiteId}")
public class SpecialServicesController
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.ResponseEntityaddSpecialServiceToPassenger(String salesApplication, String travellerID, String specialServiceRequestId) org.springframework.http.ResponseEntity<SpecialServiceRequestList>org.springframework.http.ResponseEntity<SpecialServiceRequestList>findSpecialServiceRequestFromOrderAndTraveller(String orderId, String travellerId) org.springframework.http.ResponseEntity<SpecialServiceRequestList>findSpecialServiceRequestFromTraveller(String travellerId) org.springframework.http.ResponseEntityremoveSpecialServiceFromPassenger(String travellerId, String specialServiceRequestId) Methods inherited from class de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
Constructor Details
-
SpecialServicesController
public SpecialServicesController()
-
-
Method Details
-
addSpecialServiceToPassenger
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/users/{userId}/carts/{cartId}/travellers/{travellerId}/specialServiceRequests", method=POST) @ResponseBody public org.springframework.http.ResponseEntity addSpecialServiceToPassenger(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @PathVariable(name="travellerId") String travellerID, @RequestParam(name="specialServiceRequestId",required=true) String specialServiceRequestId) -
removeSpecialServiceFromPassenger
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/users/{userId}/carts/{cartId}/travellers/{travellerId}/specialServiceRequests/{specialServiceRequestId}", method=DELETE) @ResponseBody public org.springframework.http.ResponseEntity removeSpecialServiceFromPassenger(@PathVariable(name="travellerId",required=true) String travellerId, @PathVariable(name="specialServiceRequestId",required=true) String specialServiceRequestId) -
findSpecialServiceRequestFromTraveller
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/users/{userId}/carts/{cartId}/travellers/{travellerId}/specialServiceRequests", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<SpecialServiceRequestList> findSpecialServiceRequestFromTraveller(@PathVariable(name="travellerId",required=true) String travellerId) -
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() -
findSpecialServiceRequestFromOrderAndTraveller
@Secured({"ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/users/{userId}/orders/{orderId}/travellers/{travellerId}/specialServiceRequests", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<SpecialServiceRequestList> findSpecialServiceRequestFromOrderAndTraveller(@PathVariable(name="orderId",required=true) String orderId, @PathVariable(name="travellerId",required=true) String travellerId)
-