Class TransportAccountPageController
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
de.hybris.platform.traveladdon.controllers.pages.TransportAccountPageController
Extended Controller for home page - adds functionality to AccountPageController
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
AbstractController.HttpNotFoundException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields 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 String[]getAdvancePassenger(APIForm apiForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model) getAdvancePassenger(org.springframework.ui.Model model) getPreferencesPage(org.springframework.ui.Model model) getRemoveSavedPassengersPage(String passengerUid, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) getRemoveSavedSearchPage(String savedSearchID, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) Method responsible for handling GET request to remove the specific saved customer search.getSavedPassengersPage(org.springframework.ui.Model model) getSavedSearchesPage(org.springframework.ui.Model model) Method responsible for handling GET request for Saved Customer Searches.saveTravellerPreferencesPage(String preferredLanguage, String transportFacilityCode, org.springframework.ui.Model model) voidsetAdultTitles(String[] adultTitles) Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
addRegistrationConsentDataToModel, checkRequestUrl, createMetaElement, decodeWithScheme, getBaseSiteService, getCheckoutRedirectUrl, getCmsPageService, getCmsPreviewService, getCmsSiteService, getConfigurationService, getConsentFacade, getContentPageForLabelOrId, getCurrencies, getCurrentCurrency, getCurrentLanguage, getCustomerFacade, getHostConfigService, getI18nService, getLanguages, getMessageSource, getPageTitleResolver, getRequestContextData, getSessionService, getSiteConfigService, getSiteName, getSiteUid, getStoreSessionFacade, getUser, getUserFacade, getViewForPage, getViewForPage, prepareNotFoundPage, setUpMetaData, setUpMetaDataForContentPage, storeCmsPageInModel, storeContentPageTitleInModel, storeContinueUrl, urlEncodeMethods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
Field Details
-
ACCOUNT_SAVED_SEARCHES_CMS_PAGE
- See Also:
-
ACCOUNT_ADVANCE_PASSENGER_CMS_PAGE
- See Also:
-
ACCOUNT_SAVED_PASSENGERS_CMS_PAGE
- See Also:
-
PREFERENCES_CMS_PAGE
- See Also:
-
SAVED_TRAVELLLERS
- See Also:
-
REMOVED_TRAVELLER
- See Also:
-
SAVED_SEARCHES
- See Also:
-
ERROR
- See Also:
-
LANGUAGES
- See Also:
-
LANGUAGE_PREFERENCE_TYPE
- See Also:
-
TRANSPORT_FACILITY_PREFERENCE_TYPE
- See Also:
-
TRANSPORT_FACILITY_PREFERENCE_CODE
- See Also:
-
COUNTRIES
- See Also:
-
NATIONALITIES
- See Also:
-
TITLES
- See Also:
-
API_FORM
- See Also:
-
ADULT
- See Also:
-
FORM_GLOBAL_CONFIRMATION
- See Also:
-
BREADCRUMBS
- See Also:
-
-
Constructor Details
-
TransportAccountPageController
public TransportAccountPageController()
-
-
Method Details
-
getPreferencesPage
@RequestMapping(value="/my-account/preferences", method=GET) public String getPreferencesPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
saveTravellerPreferencesPage
@RequestMapping(value="/my-account/save-preferences", method=POST) public String saveTravellerPreferencesPage(@RequestParam String preferredLanguage, @RequestParam String transportFacilityCode, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getSavedSearchesPage
@RequestMapping(value="/my-account/my-saved-searches", method=GET) public String getSavedSearchesPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException Method responsible for handling GET request for Saved Customer Searches.- Parameters:
model-- Returns:
- mySavedSearches page
- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getRemoveSavedSearchPage
@RequestMapping(value="/my-account/remove-saved-searches/{savedSearchID}", method=GET) public String getRemoveSavedSearchPage(@PathVariable String savedSearchID, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException Method responsible for handling GET request to remove the specific saved customer search.- Parameters:
savedSearchID-model-request-redirectModel-- Returns:
- mySavedSearches page
- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getAdvancePassenger
@RequestMapping(value="/my-account/advance-passenger", method=GET) public String getAdvancePassenger(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getAdvancePassenger
@RequestMapping(value="/my-account/advance-passenger", method=POST) public String getAdvancePassenger(@ModelAttribute("apiForm") APIForm apiForm, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getSavedPassengersPage
@RequestMapping(value="/my-account/saved-passengers", method=GET) public String getSavedPassengersPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getRemoveSavedPassengersPage
@RequestMapping(value="/my-account/remove-saved-passenger/{passengerUid}", method=GET) public String getRemoveSavedPassengersPage(@PathVariable String passengerUid, org.springframework.ui.Model model, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException - Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
getAdultTitles
- Returns:
- the adultTitles
-
setAdultTitles
- Parameters:
adultTitles- the adultTitles to set
-