public class VariantOverviewController extends AbstractProductConfigController
ConfigurationOverviewControllerADDON_PREFIX, AJAX_SUFFIX, CONFIG_ERROR_ROOT, CONFIG_PAGE_ROOT, CONFIGURATOR_TYPE, LOG_CONFIG_DATA, LOG_URL, OVERVIEW_PAGE_ROOT, PRODUCT_ATTRIBUTE, uiStateHandler, uiStatusSync| Constructor and Description |
|---|
VariantOverviewController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVariantToCartCleanUp(String productCode)
Cleans up the UI-State, after a varaint has been added to the cart
|
protected ConfigurationOverviewFacade |
getConfigurationOverviewFacade() |
protected AbstractPageModel |
getPageForProduct() |
protected long |
getQuantity(String baseProduct) |
String |
getVariantOverview(String productCode,
Model model,
HttpServletRequest request)
Renders the product config overview page, using a product configuration variant as input.
|
protected ConfigurationOverviewData |
populateConfigurationModel(String productCode,
ConfigurationOverviewData updatedOverview) |
protected OverviewUiData |
prepareOverviewUiData(ConfigurationOverviewData overview,
ProductData productData) |
protected void |
prepareUiModel(HttpServletRequest request,
Model model,
String productCode,
ConfigurationOverviewData overview) |
protected void |
resetUiCartConfigurationForProduct(String baseProduct) |
void |
setConfigurationOverviewFacade(ConfigurationOverviewFacade configurationOverviewFacade) |
ModelAndView |
updateVariantOverview(String productCode,
OverviewUiData overviewUIData,
Model model,
HttpServletRequest request)
Updates the product config overview page for variants.
|
cleanUpSessionAttribute, createKBKeyForProduct, getBindingResultForConfig, getBreadcrumbBuilder, getCartEntryNumber, getConfigCartFacade, getConfigData, getConfigFacade, getGalleryImages, getOrderEntry, getProductConfigurationConflictChecker, getProductConfigurationValidator, getProductDataForProductCode, getProductFacade, getProductService, getSessionAccessFacade, getUiRecorder, handleRequestContext, ifProductVariant, initBinder, isProductVariant, loadNewConfiguration, logConfigurationCheckDeviation, logModelmetaData, logRequestMetaData, populateProductData, populateProductData, populateProductDetailForDisplay, reloadConfiguration, removeNullCstics, removeNullCsticsFromGroup, setBreadcrumbBuilder, setCartItemPk, setConfigCartFacade, setConfigFacade, setProductConfigurationConflictChecker, setProductConfigurationValidator, setProductFacade, setProductService, setSessionAccessFacade, setUiRecorder, updatePageTitlepublic String getVariantOverview(String productCode, Model model, HttpServletRequest request) throws CMSItemNotFoundException
productCode - product code of the variantmodel - view modelrequest - http requestCMSItemNotFoundExceptionpublic ModelAndView updateVariantOverview(String productCode, OverviewUiData overviewUIData, Model model, HttpServletRequest request) throws CMSItemNotFoundException
productCode - product code of the variantmodel - view modelrequest - http requestoverviewUIData - data currently displayed on overview pageCMSItemNotFoundExceptionpublic void addVariantToCartCleanUp(String productCode) throws CMSItemNotFoundException
productCode - product code of variantCMSItemNotFoundExceptionprotected void resetUiCartConfigurationForProduct(String baseProduct)
protected ConfigurationOverviewData populateConfigurationModel(String productCode, ConfigurationOverviewData updatedOverview)
protected void prepareUiModel(HttpServletRequest request,
Model model,
String productCode,
ConfigurationOverviewData overview)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionprotected OverviewUiData prepareOverviewUiData(ConfigurationOverviewData overview, ProductData productData)
protected long getQuantity(String baseProduct)
protected AbstractPageModel getPageForProduct() throws CMSItemNotFoundException
getPageForProduct in class AbstractProductConfigControllerCMSItemNotFoundExceptionpublic void setConfigurationOverviewFacade(ConfigurationOverviewFacade configurationOverviewFacade)
configurationOverviewFacade - injects the facade for the variant overviewprotected ConfigurationOverviewFacade getConfigurationOverviewFacade()
Copyright © 2017 SAP SE. All Rights Reserved.