Class CartConfigureProductController
- java.lang.Object
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
-
- de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController
-
- de.hybris.platform.sap.productconfig.frontend.controllers.AbstractProductConfigController
-
- de.hybris.platform.sap.productconfig.frontend.controllers.CartConfigureProductController
-
@Controller @RequestMapping public class CartConfigureProductController extends AbstractProductConfigController
Controller for Cart-Configuration integration
-
-
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.sap.productconfig.frontend.controllers.AbstractProductConfigController
CMS_PAGE_TYPE, CMS_PC_PAGE_ID, CMS_PC_PAGE_TYPE
-
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 CartConfigureProductController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringconfigureCartEntry(int entryNumber, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request)Prepares a configuration session for the given cart item.java.lang.StringconfigureCartEntryOnExistingDraft(int entryNumber, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request)Prepares a configuration session for the given cart item in case a configuration draft already exists.protected voiddetermineGroupToDisplay(ConfigurationData configData, UiStatus uiStatus)protected OrderEntryDatagetCartEntry(int entryNumber, CartData sessionCart)protected UiStatushandleUIStatus(ConfigurationData configData)protected voidpopulateConfigurationModel(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, OrderEntryData currentEntry, ConfigurationData configData)protected java.lang.StringpopulateModelAndGetNextPage(org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, OrderEntryData currentEntry, ConfigurationData configData)-
Methods inherited from class de.hybris.platform.sap.productconfig.frontend.controllers.AbstractProductConfigController
afterReloadConfiguration, cleanUpSessionAttribute, getAbstractOrderEntryLinkStrategy, getBindingResultForConfigAndSaveUiStatus, getBindingResultForConfiguration, getBreadcrumbBuilder, getCartEntryNumber, getCartEntryNumber, getCartFacade, getCartItemByConfigId, getCartItemByProductCode, getConfigCartFacade, getConfigFacade, getConfigurationErrorHandler, getGalleryImages, getOrderEntry, getOrderEntry, getPageId, getPageType, getProductCodeForCartItem, getProductConfigurationConflictChecker, getProductConfigurationValidator, getProductDataForProductCode, getProductFacade, getProductLinkStrategy, getProductService, getSessionAccessFacade, getUiRecorder, getUiStateHandler, getUiStatusForConfig, getUiStatusForConfigId, getUiStatusSync, handleRequestContext, initBinderConfigData, initializeUiStatus, isConfigLinkedToCart, isConfigRemoved, loadNewConfiguration, logConfigurationCheckDeviation, logLoadConfig, logModelmetaData, logRequestMetaData, populateCMSAttributes, populateProductData, populateProductData, populateProductDetailForDisplay, reloadConfigurationById, reloadConfigurationByKBKey, removeNullCstics, removeNullCsticsFromGroup, setAbstractOrderEntryLinkStrategy, setBreadcrumbBuilder, setCartEntryLinks, setCartFacade, setConfigCartFacade, setConfigFacade, setConfigurationErrorHandler, setProductConfigurationConflictChecker, setProductConfigurationValidator, setProductFacade, setProductLinkStrategy, setProductService, setSessionAccessFacade, setUiRecorder, setUiStateHandler, setUiStatusForConfig, setUiStatusSync, updatePageTitle
-
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, urlEncode
-
Methods inherited from class de.hybris.platform.acceleratorstorefrontcommons.controllers.AbstractController
addRequestToModel, getBean
-
-
-
-
Method Detail
-
configureCartEntry
@RequestMapping("cart/{entryNumber}/configuration/CPQCONFIGURATOR") public java.lang.String configureCartEntry(@PathVariable("entryNumber") int entryNumber, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws CommerceCartModificationExceptionPrepares a configuration session for the given cart item. This includes re-creation of the configuration sessions, in case it was already releases, as well as restoring of the UI-State.- Parameters:
entryNumber- of the configurable cart itemmodel- view modelrequest- http request- Returns:
- view name
- Throws:
CommerceCartModificationException
-
populateModelAndGetNextPage
protected java.lang.String populateModelAndGetNextPage(org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, OrderEntryData currentEntry, ConfigurationData configData) throws CommerceCartModificationException
-
getCartEntry
protected OrderEntryData getCartEntry(int entryNumber, CartData sessionCart) throws CommerceCartModificationException
-
populateConfigurationModel
protected void populateConfigurationModel(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, OrderEntryData currentEntry, ConfigurationData configData) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
determineGroupToDisplay
protected void determineGroupToDisplay(ConfigurationData configData, UiStatus uiStatus)
-
handleUIStatus
protected UiStatus handleUIStatus(ConfigurationData configData)
-
configureCartEntryOnExistingDraft
@RequestMapping("cart/{entryNumber}/configureOnDraft/CPQCONFIGURATOR") public java.lang.String configureCartEntryOnExistingDraft(@PathVariable("entryNumber") int entryNumber, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws CommerceCartModificationExceptionPrepares a configuration session for the given cart item in case a configuration draft already exists. Example: User triggered configuration from cart, navigated to vaariant display and afterwards returns to the configuration page- Parameters:
entryNumber- Entry number of the configurable cart itemmodel- View modelrequest- Http request- Returns:
- view name
- Throws:
CommerceCartModificationException
-
-