Class AccommodationExtrasPageController
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
de.hybris.platform.travelacceleratorstorefront.controllers.pages.TravelAbstractPageController
de.hybris.platform.accommodationaddon.controllers.pages.AccommodationExtrasPageController
@Controller
@RequestMapping({"/extras","/manage-booking/extras"})
public class AccommodationExtrasPageController
extends TravelAbstractPageController
Controller for Accommodation Extras page
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException -
Field Summary
Fields inherited from class de.hybris.platform.travelacceleratorstorefront.controllers.pages.TravelAbstractPageController
FIFTY_NINE, TEN, TWENTY_THREEFields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
CMS_PAGE_MODEL, CMS_PAGE_TITLE, PAGE_ROOT, REDIRECT_TO_LOGIN_FOR_CHECKOUT, REDIRECT_TO_MULTISTEP_CHECKOUT, REGISTRATION_CONSENT_ID, UTF_8Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<Integer,List<RoomPreferenceData>> createAccommodationRoomPreferenceMap(AccommodationReservationData accommodationReservationData) protected StringThis method determines the next url of checkout flow.getAccommodationExtrasPage(Integer roomStayRefNumberToUpdate, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) nextPage()Redirects user to the next checkout page which is guest details (or checkout login)Methods inherited from class de.hybris.platform.travelacceleratorstorefront.controllers.pages.TravelAbstractPageController
getConfigurationService, getDisableCurrencySelector, getJson, getReservationCode, getSiteUid, getTravelCartFacade, getTravelCustomerFacade, populateHours, populateMinutesMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
addRegistrationConsentDataToModel, checkRequestUrl, createMetaElement, decodeWithScheme, getBaseSiteService, getCheckoutRedirectUrl, getCmsPageService, getCmsPreviewService, getCmsSiteService, getConsentFacade, getContentPageForLabelOrId, getCurrencies, getCurrentCurrency, getCurrentLanguage, getCustomerFacade, getHostConfigService, getI18nService, getLanguages, getMessageSource, getPageTitleResolver, getRequestContextData, getSessionService, getSiteConfigService, getSiteName, getStoreSessionFacade, getUser, getUserFacade, getViewForPage, getViewForPage, prepareNotFoundPage, setUpMetaData, setUpMetaDataForContentPage, storeCmsPageInModel, storeContentPageTitleInModel, storeContinueUrl, urlEncodeMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
Constructor Details
-
AccommodationExtrasPageController
public AccommodationExtrasPageController()
-
-
Method Details
-
getAccommodationExtrasPage
@RequestMapping(method=GET) public String getAccommodationExtrasPage(@RequestParam(value="roomStay",required=false) Integer roomStayRefNumberToUpdate, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
determineNextUrl
This method determines the next url of checkout flow. If the context is purchase flow, then the next url is "/extras/next" else if the context is amendment then the next url is "/manage-booking/extras/next".- Returns:
- next url
-
nextPage
Redirects user to the next checkout page which is guest details (or checkout login)- Returns:
- next page
-
createAccommodationRoomPreferenceMap
protected Map<Integer,List<RoomPreferenceData>> createAccommodationRoomPreferenceMap(AccommodationReservationData accommodationReservationData)
-