Class AccommodationSuggestionsController
java.lang.Object
de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
de.hybris.platform.coreairlineaccommodationocc.controllers.AccommodationSuggestionsController
@Controller
@RequestMapping("/{baseSiteId}")
public class AccommodationSuggestionsController
extends AirlineBaseController
Web Service Accommodation Suggestion Controller for accommodation search.
-
Field Summary
Fields inherited from class de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
BASIC_FIELD_SET, DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<AccommodationSuggestionList>getAccommodationSuggestions(String salesApplication, String searchText) protected final List<AccommodationSuggestion>populateLocationSuggestionSearchedByGoogleAPI(List<GlobalSuggestionData> suggestionResults) Populate location suggestion by google list.Methods inherited from class de.hybris.platform.coreairlinecommonsocc.controllers.AirlineBaseController
createPaginationData, getAbsoluteLocationURL, getDataMapper, getErrorCode, getErrorCodeResolver, handleAccessDeniedException, handleMissingRequestHeaderException, handleTravelModelNotFoundException, sanitize, validate, validate
-
Constructor Details
-
AccommodationSuggestionsController
public AccommodationSuggestionsController()
-
-
Method Details
-
getAccommodationSuggestions
@Secured({"ROLE_CLIENT","ROLE_GUEST","ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(value="/accommodationSuggestions", method=GET) @ResponseBody public org.springframework.http.ResponseEntity<AccommodationSuggestionList> getAccommodationSuggestions(@RequestHeader(name="sap.cx-sales-application") String salesApplication, @RequestParam String searchText) -
populateLocationSuggestionSearchedByGoogleAPI
protected final List<AccommodationSuggestion> populateLocationSuggestionSearchedByGoogleAPI(List<GlobalSuggestionData> suggestionResults) Populate location suggestion by google list.- Parameters:
suggestionResults- the suggestion results- Returns:
- the list
-