Class FlightController

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

@Controller @RequestMapping("/{baseSiteId}") public class FlightController extends AirlineBaseController
  • Constructor Details

    • FlightController

      public FlightController()
  • Method Details

    • getTransportOfferingByCode

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/flights/{flightCode}", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<FlightDetails> getTransportOfferingByCode(@Nonnull @PathVariable(name="flightCode") String flightCode) throws UnknownResourceWsException
      Gets flight details by code.
      Parameters:
      flightCode - the flight code
      Returns:
      the flight details by code
      Throws:
      UnknownResourceWsException
    • getFlights

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/flights", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<FlightDetailList> getFlights(@RequestParam(name="flightNumber") String flightNumber, @RequestParam(name="marketingCarrierCode") String marketingCarrierCode, @RequestParam(name="departureDate") String departureDate) throws UnknownResourceWsException
      Gets flights offering by number, departure date and marketing provider
      Parameters:
      flightNumber - The flight number
      departureDate - the departure date
      marketingCarrierCode - the marketing carrier code
      Returns:
      the flights
      Throws:
      UnknownResourceWsException