Class AbstractCartPageController
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractCartPageController
-
- Direct Known Subclasses:
CartPageController
public abstract class AbstractCartPageController extends AbstractPageController
-
-
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.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_8
-
Fields inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
-
-
Constructor Summary
Constructors Constructor Description AbstractCartPageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclearSessionRestorationData()Remove the session data of the cart restoration.protected voidcontinueUrl(org.springframework.ui.Model model)protected voidcreateProductEntryList(org.springframework.ui.Model model, CartData cartData)protected voidcreateProductList(org.springframework.ui.Model model)protected de.hybris.platform.commercefacades.order.CartFacadegetCartFacade()protected de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacadegetCheckoutFacade()protected de.hybris.platform.servicelayer.session.SessionServicegetSessionService()de.hybris.platform.acceleratorservices.config.SiteConfigServicegetSiteConfigService()protected voidprepareDataForPage(org.springframework.ui.Model model)voidsetupCartPageRestorationData(org.springframework.ui.Model model)Prepare the restoration data and always display any modifications on the cart page.protected booleanvalidateCart(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)-
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, getSiteName, getSiteUid, getStoreSessionFacade, getUser, getUserFacade, getViewForPage, getViewForPage, prepareNotFoundPage, setUpMetaData, setUpMetaDataForContentPage, storeCmsPageInModel, storeContentPageTitleInModel, storeContinueUrl, urlEncode
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
-
-
-
Method Detail
-
createProductList
protected void createProductList(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
createProductEntryList
protected void createProductEntryList(org.springframework.ui.Model model, CartData cartData)
-
continueUrl
protected void continueUrl(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
prepareDataForPage
protected void prepareDataForPage(org.springframework.ui.Model model) throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException- Throws:
de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
-
clearSessionRestorationData
protected void clearSessionRestorationData()
Remove the session data of the cart restoration.
-
setupCartPageRestorationData
public void setupCartPageRestorationData(org.springframework.ui.Model model)
Prepare the restoration data and always display any modifications on the cart page.- Parameters:
model- - the cart page
-
validateCart
protected boolean validateCart(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectModel)
-
getSiteConfigService
public de.hybris.platform.acceleratorservices.config.SiteConfigService getSiteConfigService()
- Overrides:
getSiteConfigServicein classAbstractPageController
-
getCartFacade
protected de.hybris.platform.commercefacades.order.CartFacade getCartFacade()
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService()
- Overrides:
getSessionServicein classAbstractPageController
-
getCheckoutFacade
protected de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacade getCheckoutFacade()
-
-