Class SeatMapController

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

@Controller @RequestMapping("/{baseSiteId}/users/{userId}/carts/{cartId}") public class SeatMapController extends AirlineBaseController
Web Service Airline Carts Controller for services related to the seat in cart.
  • Constructor Details

    • SeatMapController

      public SeatMapController()
  • Method Details

    • getSeatEntry

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/seatEntries/{entryId}", method=GET) @ResponseBody public org.springframework.http.ResponseEntity getSeatEntry(@PathVariable Integer entryId)
    • removeSeatEntry

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/seatEntries/{entryId}", method=DELETE) @ResponseBody public org.springframework.http.ResponseEntity removeSeatEntry(@PathVariable Integer entryId)
      Remove seat entry response entity.
      Parameters:
      entryId - the entry number
      Returns:
      the response entity
    • getSeatMap

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/seatmap", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<SeatMapResponse> getSeatMap(@RequestParam(required=false) List<String> flightCodes, @RequestHeader(name="sap.cx-sales-application") String salesApplication)
      Gets seat map.
      Parameters:
      flightCodes - the transport offering codes
      Returns:
      the seat map
      Throws:
      FlightsNotInCartWsException - the transport offerings not in cart ws exception
    • addSeatsToCart

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/seatEntries", method=POST) @ResponseBody public org.springframework.http.ResponseEntity addSeatsToCart(@RequestBody SeatEntryRequest seatEntryRQ, @RequestHeader(name="sap.cx-sales-application") String salesApplication, javax.servlet.http.HttpServletRequest httpServletRequest) throws AirlineWebserviceException
      Throws:
      AirlineWebserviceException
    • validateIfTransportOfferingsExistInCart

      protected void validateIfTransportOfferingsExistInCart(OfferRequestData offersRequest, List<String> transportOfferingCodes) throws FlightsNotInCartWsException
      Validate if transport offerings exists in cart.
      Parameters:
      offersRequest - the offers request
      transportOfferingCodes - the transport offering codes
      Throws:
      FlightsNotInCartWsException - the transport offerings not in cart ws exception
    • filterOfferRequestByTransportOfferingCodes

      protected void filterOfferRequestByTransportOfferingCodes(List<String> flightCodes, OfferRequestData offersRequest)
      Filter offer request by removing transport offerings that doesn't contain in transportOfferingCodes.
      Parameters:
      flightCodes - the flight codes
      offersRequest - the offers request