Class TravelOrdersController

java.lang.Object
de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
de.hybris.platform.coretravelcommonsocc.controllers.TravelOrdersController

@Controller @RequestMapping("/{baseSiteId}/users/{userId}/orders") public class TravelOrdersController extends TravelBaseController
Web Service Controller for the order resource.
  • Constructor Details

    • TravelOrdersController

      public TravelOrdersController()
  • Method Details

    • placeOrder

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseStatus(CREATED) @RequestMapping(method=POST) public org.springframework.http.ResponseEntity placeOrder(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @RequestBody @Nonnull PlaceOrderRequest placeOrderRequest, javax.servlet.http.HttpServletRequest httpServletRequest)
    • getOrder

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/{code}", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<GlobalTravelReservation> getOrder(@PathVariable String code)
    • getOrders

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(method=GET) @ResponseBody public org.springframework.http.ResponseEntity getOrders(@RequestParam(required=false) boolean activeOnly, @RequestParam(defaultValue="BASIC") String fields, @RequestParam(defaultValue="0") int currentPage, @RequestParam(defaultValue="20") int pageSize)
    • cancelOrder

      @Secured({"ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/{orderId}/cancel", method=POST) @ResponseStatus(NO_CONTENT) public void cancelOrder(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @PathVariable String orderId)
    • evaluateCancelOrder

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="{orderId}/evaluateCancel", method=POST) @ResponseBody public org.springframework.http.ResponseEntity<EvaluateCancelBookingResponse> evaluateCancelOrder(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @PathVariable String orderId)
    • validateCart

      protected void validateCart(String cartId)
      Validates the cart before placing an order.
      Parameters:
      cartId - the cart id