Class VariantOverviewController
- 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.VariantOverviewController
-
@Controller @RequestMapping public class VariantOverviewController extends AbstractConfigurationOverviewController
Controller implementation to be used, when a variant shall be displayed on the configuration overview page.- See Also:
ConfigurationOverviewController
-
-
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 VariantOverviewController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddBreadCrumb(org.springframework.ui.Model model, ProductData productData, OverviewUiData overviewUiData)voidaddVariantToCartCleanUp(java.lang.String productCodeEncoded)Cleans up the UI-State, after a variant has been added to the cartjava.lang.StringgetVariantOverview(java.lang.String productCodeEncoded, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request)Renders the product configuration overview page, using a product configuration variant as input.java.lang.StringgetVariantOverviewFromCartBoundConfig(java.lang.String productCodeEncoded, int entryNumber, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request)Renders the product configuration overview page, using an entry number and a product configuration variant as input.protected OverviewUiDatainitializeOverviewUiDataForVariant()protected OverviewUiDatainitializeOverviewUiDataForVariantFromCartBound(int entryNumber)protected ConfigurationOverviewDatapopulateConfigurationModel(java.lang.String productCode)protected ConfigurationOverviewDataprepareOverviewData(java.lang.String productCodeEncoded)protected OverviewUiDataprepareOverviewUiData(ConfigurationOverviewData configOverviewData, ProductData productData)protected voidresetUiCartConfigurationForProduct(java.lang.String productCode)org.springframework.web.servlet.ModelAndViewupdateVariantOverview(java.lang.String productCode, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request)Updates the product config overview page for variants.-
Methods inherited from class de.hybris.platform.sap.productconfig.frontend.controllers.AbstractConfigurationOverviewController
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
-
getVariantOverview
@RequestMapping(value="/**/{productCode:.*}/variantOverview", method=GET) public java.lang.String getVariantOverview(@PathVariable("productCode") java.lang.String productCodeEncoded, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws CMSItemNotFoundExceptionRenders the product configuration overview page, using a product configuration variant as input.- Parameters:
productCodeEncoded- product code of the variantmodel- view modelrequest- http request- Returns:
- view name
- Throws:
CMSItemNotFoundException
-
getVariantOverviewFromCartBoundConfig
@RequestMapping(value="/**/{productCode:.*}/{entryNumber}//variantOvFromCartBound", method=GET) public java.lang.String getVariantOverviewFromCartBoundConfig(@PathVariable("productCode") java.lang.String productCodeEncoded, @PathVariable("entryNumber") int entryNumber, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws CMSItemNotFoundExceptionRenders the product configuration overview page, using an entry number and a product configuration variant as input.- Parameters:
productCodeEncoded- product code of the variantentryNumber- entry numbermodel- view modelrequest- http request- Returns:
- view name
- Throws:
CMSItemNotFoundException
-
prepareOverviewData
protected ConfigurationOverviewData prepareOverviewData(java.lang.String productCodeEncoded)
-
addVariantToCartCleanUp
@RequestMapping(value="/**/{productCode:.*}/addVariantToCartCleanUp", method=POST) @ResponseStatus(OK) public void addVariantToCartCleanUp(@PathVariable("productCode") java.lang.String productCodeEncoded)Cleans up the UI-State, after a variant has been added to the cart- Parameters:
productCodeEncoded- product code of variant
-
initializeOverviewUiDataForVariant
protected OverviewUiData initializeOverviewUiDataForVariant()
-
initializeOverviewUiDataForVariantFromCartBound
protected OverviewUiData initializeOverviewUiDataForVariantFromCartBound(int entryNumber)
-
resetUiCartConfigurationForProduct
protected void resetUiCartConfigurationForProduct(java.lang.String productCode)
-
populateConfigurationModel
protected ConfigurationOverviewData populateConfigurationModel(java.lang.String productCode)
-
prepareOverviewUiData
protected OverviewUiData prepareOverviewUiData(ConfigurationOverviewData configOverviewData, ProductData productData)
-
addBreadCrumb
protected void addBreadCrumb(org.springframework.ui.Model model, ProductData productData, OverviewUiData overviewUiData)- Overrides:
addBreadCrumbin classAbstractConfigurationOverviewController
-
updateVariantOverview
@RequestMapping(value="/**/{productCode:.*}/variantOverview", method=POST) @ResponseBody public org.springframework.web.servlet.ModelAndView updateVariantOverview(@PathVariable("productCode") java.lang.String productCode, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request) throws CMSItemNotFoundExceptionUpdates the product config overview page for variants. For example if a filter value was changed.- Parameters:
productCode- product code of the variantmodel- view modelrequest- http request- Returns:
- view name
- Throws:
CMSItemNotFoundException
-
-