Class AncillaryPageController
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.traveladdon.controllers.pages.steps.checkin.AbstractCheckinStepController
de.hybris.platform.traveladdon.controllers.pages.AncillaryPageController
@Controller
@RequestMapping({"/ancillary","/manage-booking/ancillary"})
public class AncillaryPageController
extends AbstractCheckinStepController
Controller for Ancillary page
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.traveladdon.controllers.pages.steps.checkin.AbstractCheckinStepController
AbstractCheckinStepController.CheckinStepsNested 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 TypeMethodDescriptionPerforms a validation on the TravelRestriction for each OfferGroup available.protected StringThis method determines the next url of checkout flow.getAmendmentAncillaryPage(org.springframework.ui.Model model) getAncillaryPage(org.springframework.ui.Model model) protected StringgetAncillaryPage(org.springframework.ui.Model model, String ancillaryCmsPage) getCheckinAncillaryPage(org.springframework.ui.Model model) protected CheckinStepgetUpgradeBundleOptionsPage(org.springframework.ui.Model model) protected booleanisUpgradeAvailable(List<PricedItineraryData> pricedItineraries) nextPage(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) Redirects user to the next checkout page which is traveller detailsMethods inherited from class de.hybris.platform.traveladdon.controllers.pages.steps.checkin.AbstractCheckinStepController
addCheckinStepsToModel, getCheckinFlowGroupMap, getCheckinStep, setCheckinStepLinksForModelMethods 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
-
AncillaryPageController
public AncillaryPageController()
-
-
Method Details
-
getAncillaryPage
@RequestMapping(method=GET) public String getAncillaryPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Parameters:
model-- Returns:
- String
- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getAmendmentAncillaryPage
@RequestMapping(value="/amendment", method=GET) public String getAmendmentAncillaryPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Parameters:
model-- Returns:
- String
- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getUpgradeBundleOptionsPage
@RequestMapping(value="/upgrade-bundle-options", method=GET, produces="application/json") public String getUpgradeBundleOptionsPage(org.springframework.ui.Model model) - Parameters:
model-- Returns:
- String
-
isUpgradeAvailable
-
getCheckinAncillaryPage
@RequestMapping(value="/checkin", method=GET) public String getCheckinAncillaryPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Parameters:
model-- Returns:
- String
- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getAncillaryPage
protected String getAncillaryPage(org.springframework.ui.Model model, String ancillaryCmsPage) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getAccommodations
@ResponseBody @RequestMapping(value="/accommodation-map", method={POST,GET}, produces="application/json") public SeatMapResponseData getAccommodations() -
determineNextUrl
This method determines the next url of checkout flow. If the context is purchase flow, then the next url is "/ancillary/next" else if the context is Amendments then the next url is "/manage-booking/ancillary/next".- Returns:
- next url
-
checkCategoryRestrictions
@RequestMapping(value="/check-offer-groups-restriction", method=GET) @ResponseBody public CategoryRestrictionResponseData checkCategoryRestrictions()Performs a validation on the TravelRestriction for each OfferGroup available.- Parameters:
model-- Returns:
- the location of the JSON object used to render the error in the front-end
-
nextPage
@RequestMapping(value="/next", method=GET) public String nextPage(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) Redirects user to the next checkout page which is traveller details- Parameters:
redirectModel-- Returns:
- traveller details page
-
getCheckinStep
-