Class ConfigurationOverviewController
- 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.AbstractConfigurationOverviewController
-
- de.hybris.platform.sap.productconfig.frontend.controllers.ConfigurationOverviewController
-
@Controller @RequestMapping public class ConfigurationOverviewController extends AbstractConfigurationOverviewController
Default Controller implementation to be used for the configuration overview page.- See Also:
VariantOverviewController
-
-
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.AbstractConfigurationOverviewController
ALLOWED_FIELDS_OVERVIEWUIDATA, CMS_OV_PAGE_ID, CMS_OV_PAGE_TYPE
-
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 ConfigurationOverviewController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConfigurationOverview(java.lang.String configIdEncoded, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request)Renders the product config overview page.protected UiStatusgetOrCreateUiStatusForCartEntry(java.lang.String cartItemKey)protected voidhandleCPQAction(OverviewUiData overviewUIData, ConfigurationOverviewData configOverviewData, UiStatus uiStatus)protected OverviewUiDatainitializeOverviewUiDataForConfiguration()protected ConfigurationOverviewDatapopulateConfigurationModel(java.lang.String productCode, java.lang.String configId, ConfigurationOverviewData overview)protected voidupdateAppliedFilters(UiStatus uiStatus, ConfigurationOverviewData configOverviewData)org.springframework.web.servlet.ModelAndViewupdateConfiguationOverview(OverviewUiData overviewUIData, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request)Updates the product config overview page.protected voidupdateCsticFilterList(OverviewUiData overviewUIData, UiStatus uiStatus)protected voidupdateGroupFilterList(OverviewUiData overviewUIData, UiStatus uiStatus)protected voidupdateGroups(UiStatus uiStatus, ConfigurationOverviewData configOverviewData)-
Methods inherited from class de.hybris.platform.sap.productconfig.frontend.controllers.AbstractConfigurationOverviewController
addBreadCrumb, computeUiGroupFilterList, generateCsticFilterDataList, getCartItemPk, getConfigurationErrorHandler, getConfigurationOverviewFacade, getErrorCountForUi, getOrderFacade, getOrderItemPk, getPageId, getPageType, getQuantity, getQuoteFacade, getQuoteItemPk, getSaveCartFacade, getUiStatusForOverview, initBinderConfigOverviewUiData, initializeFilterListsInUiStatus, initializeGroupFilterDataList, needConfigurationDetails, prepareOverviewUiData, prepareOverviewUiData, prepareUiModel, prepareUiModel, setConfigurationErrorHandler, setConfigurationOverviewFacade, setOrderFacade, setQuoteFacade, setSaveCartFacade, setUiStatusForOverviewInSession, updateUiStatusForOverviewInSession
-
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, getGalleryImages, getOrderEntry, getOrderEntry, 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, 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
-
getConfigurationOverview
@RequestMapping(value="/**/{configId:.*}/configOverview", method=GET) public java.lang.String getConfigurationOverview(@PathVariable("configId") java.lang.String configIdEncoded, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws BusinessExceptionRenders the product config overview page.- Parameters:
configIdEncoded- product code of the configurable productmodel- view modelrequest- http request- Returns:
- view name
- Throws:
BusinessException
-
getOrCreateUiStatusForCartEntry
protected UiStatus getOrCreateUiStatusForCartEntry(java.lang.String cartItemKey)
-
initializeOverviewUiDataForConfiguration
protected OverviewUiData initializeOverviewUiDataForConfiguration()
-
updateConfiguationOverview
@RequestMapping(value="/cpq/configOverview", method=POST) @ResponseBody public org.springframework.web.servlet.ModelAndView updateConfiguationOverview(@ModelAttribute("overviewUiData") OverviewUiData overviewUIData, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws BusinessExceptionUpdates the product config overview page. For example if a filter value was changed.- Parameters:
overviewUIData- data currently displayed on overview pagemodel- view modelrequest- http request- Returns:
- view name
- Throws:
BusinessException
-
handleCPQAction
protected void handleCPQAction(OverviewUiData overviewUIData, ConfigurationOverviewData configOverviewData, UiStatus uiStatus) throws BusinessException
- Throws:
BusinessException
-
updateGroups
protected void updateGroups(UiStatus uiStatus, ConfigurationOverviewData configOverviewData)
-
updateGroupFilterList
protected void updateGroupFilterList(OverviewUiData overviewUIData, UiStatus uiStatus)
-
populateConfigurationModel
protected ConfigurationOverviewData populateConfigurationModel(java.lang.String productCode, java.lang.String configId, ConfigurationOverviewData overview)
-
updateCsticFilterList
protected void updateCsticFilterList(OverviewUiData overviewUIData, UiStatus uiStatus)
-
updateAppliedFilters
protected void updateAppliedFilters(UiStatus uiStatus, ConfigurationOverviewData configOverviewData)
-
-