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_TYPEFields 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 TypeMethodDescriptionconfigureCartEntry(int entryNumber, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) Prepares a configuration session for the given cart item.configureCartEntryOnExistingDraft(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 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, getSessionId, 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, updatePageTitleMethods 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
-
Constructor Details
-
CartConfigureProductController
public CartConfigureProductController()
-
-
Method Details
-
configureCartEntry
@RequestMapping(value="cart/{entryNumber}/configuration/CPQCONFIGURATOR", method=GET) public String configureCartEntry(@PathVariable("entryNumber") int entryNumber, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws CommerceCartModificationException Prepares 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 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
-
handleUIStatus
-
configureCartEntryOnExistingDraft
@RequestMapping(value="cart/{entryNumber}/configureOnDraft/CPQCONFIGURATOR", method=GET) public String configureCartEntryOnExistingDraft(@PathVariable("entryNumber") int entryNumber, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws CommerceCartModificationException Prepares a configuration session for the given cart item in case a configuration draft already exists. Example: User triggered configuration from cart, navigated to variant 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
-