Class TransportSearchController

java.lang.Object
de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
de.hybris.platform.coretransportocc.controllers.TransportSearchController

@Controller @RequestMapping("/{baseSiteId}/fares") public class TransportSearchController extends TravelBaseController
Web Service Controller for transport offering search requests.
  • Constructor Details

    • TransportSearchController

      public TransportSearchController()
  • Method Details

    • doFareSearch

      @Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(method=GET, produces={"application/json","application/xml"}) @ResponseBody public org.springframework.http.ResponseEntity<FareSelection> doFareSearch(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @RequestParam String arrivalLocation, @RequestParam(required=false) boolean saveSearch, @RequestParam String arrivalLocationType, @RequestParam String departureLocation, @RequestParam String departureLocationType, @RequestParam String departureDate, @RequestParam(required=false) String returnDate, @RequestParam(required=false) String displayOrder, @RequestParam String tripType, @RequestParam(required=true) String cabinPreference, @RequestParam(required=false) String transportOfferingType, @RequestParam String passengerType)
      Search fares products based on arrivalLocation,departureDate , trip type and other parameters and returns the result in based on the provided input

      Body request

      Returns:
      FareSelection
    • prepareFareSearchRequest

      protected FareSearchRequest prepareFareSearchRequest(String arrivalLocation, String arrivalLocationType, String departureLocation, String departureLocationType, String departureDate, String returnDate, String displayOrder, String tripType, String cabinPreference, String transportOfferingType, String passengerType)
      Prepare the FareSearchRequest object based on given values
      Parameters:
      arrivalLocation -
      arrivalLocationType -
      departureLocation -
      departureLocationType -
      departureDate -
      returnDate -
      displayOrder -
      tripType -
      cabinPreference -
      transportOfferingType -
      passengerType -
      Returns: