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.
-
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.ResponseEntity<FareSelection>doFareSearch(String salesApplication, String arrivalLocation, boolean saveSearch, String arrivalLocationType, String departureLocation, String departureLocationType, String departureDate, String returnDate, String displayOrder, String tripType, String cabinPreference, String transportOfferingType, String passengerType) Search fares products based on arrivalLocation,departureDate , trip type and other parameters and returns the result in based on the provided inputprotected FareSearchRequestprepareFareSearchRequest(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 valuesMethods inherited from class de.hybris.platform.coretravelcommonsocc.controllers.TravelBaseController
getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
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 inputBody 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:
-