public class UpdateConfigureProductController extends AbstractProductConfigController
ConfigureProductControllerADDON_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 |
|---|
UpdateConfigureProductController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterUpdate(UpdateDataHolder updateData,
Model model) |
protected void |
beforeUpdate(UpdateDataHolder updateData) |
protected void |
checkAutoExpandMode(CPQActionType action,
UpdateDataHolder updateData) |
protected void |
checkAutoExpandModeOnValueChange(ConfigurationData configData,
String firstErrorCsticId) |
protected void |
executeUpdate(UpdateDataHolder updateData) |
protected int |
findCurrentGroupIndex(String currentGroupId,
List<UiGroupData> csticGroupsFlat) |
protected UiGroupData |
findFirstConflictGroupForCsticId(List<UiGroupData> uiGroups,
String csticId) |
protected UiGroupData |
findFirstGroupForCsticId(List<UiGroupData> uiGroups,
String csticId) |
protected String |
getCsticKeyForFocusIdPath(ConfigurationData configData) |
protected List<String> |
getCsticKeysForExpandedSingleLevelGroups(List<UiGroupData> groups) |
protected String |
getGroupIdForPrevNextButtonClick(CPQActionType prevNextButtonClicked,
String currentGroupId,
List<UiGroupData> csticGroupsFlat,
int currentGroupIndex) |
protected String |
getNextGroupId(String currentGroupId,
List<UiGroupData> csticGroupsFlat,
int currentGroupPosition) |
protected String |
getPreviousGroupId(String currentGroupId,
List<UiGroupData> csticGroupsFlat,
int currentGroupPosition) |
protected void |
handleAutoExpand(UpdateDataHolder updateData,
ConfigurationData configData) |
protected void |
handleAutoExpandAndSyncUIStatus(UpdateDataHolder updateData,
ConfigurationData configData) |
protected void |
handleCPQAction(UpdateDataHolder updateData) |
protected void |
handleCPQActionBeforeUpdate(UpdateDataHolder updateData) |
protected void |
handleGroupIdToDisplayForNavigationLinks(CPQActionType action,
UpdateDataHolder updateData) |
protected void |
handleGroupIdToDisplayWhenSolvingConflicts(CPQActionType action,
UpdateDataHolder updateData) |
protected void |
handleShowFullLongTextFlag(CPQActionType action,
UpdateDataHolder updateData)
This method handles the show long text flag consistently for all occurrences of a cstic.
The same cstic can appear in several groups (e.g. |
protected void |
handleToggleImageGallery(CPQActionType action,
UpdateDataHolder updateData) |
protected void |
identifyPrevNextGroup(CPQActionType action,
UpdateDataHolder updateData)
Checks if previous or next button has been clicked and tries to identify the previous or next group respectively.
|
protected UpdateDataHolder |
initUpdateData(ConfigurationData configData,
BindingResult bindingResult,
HttpServletRequest request) |
protected boolean |
isConfigRemoved(UpdateDataHolder updateData) |
protected boolean |
isCsticPartOfGroup(UiGroupData uiGroup,
String csticId) |
protected boolean |
isFirstErrorCurrentFocusCstic(String firstErrorCsticId,
String focusId) |
protected boolean |
isFocusIdSet(String focusId) |
protected boolean |
isOutdatedValidationError(Map.Entry<String,FieldError> entry,
List<String> csticsDisplayed) |
protected ModelAndView |
redirectToHomePage(Model model,
HttpServletRequest request) |
protected Map<String,FieldError> |
removeOutdatedValidationErrors(UpdateDataHolder updateData) |
protected ModelAndView |
render(Model model,
HttpServletRequest request,
UpdateDataHolder updateData) |
protected void |
resetCPQActionType(ConfigurationData configData) |
protected void |
updateConfiguration(UpdateDataHolder updateData,
Model model) |
ModelAndView |
updateConfigureProduct(ConfigurationData configData,
BindingResult bindingResult,
Model model,
HttpServletRequest request)
Updates a configuration based on the user inputs and renders back the changes.
|
cleanUpSessionAttribute, createKBKeyForProduct, getBindingResultForConfig, getBreadcrumbBuilder, getCartEntryNumber, getConfigCartFacade, getConfigData, getConfigFacade, getGalleryImages, getOrderEntry, getPageForProduct, 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 ModelAndView updateConfigureProduct(ConfigurationData configData, BindingResult bindingResult, Model model, HttpServletRequest request) throws CMSItemNotFoundException
configData - current configurationbindingResult - error message storemodel - view modelrequest - HTTP-RequestCMSItemNotFoundExceptionprotected ModelAndView redirectToHomePage(Model model,
HttpServletRequest request)
protected boolean isConfigRemoved(UpdateDataHolder updateData)
protected ModelAndView render(Model model,
HttpServletRequest request,
UpdateDataHolder updateData)
throws CMSItemNotFoundException
CMSItemNotFoundExceptionprotected void updateConfiguration(UpdateDataHolder updateData, Model model)
protected void afterUpdate(UpdateDataHolder updateData, Model model)
protected void handleCPQAction(UpdateDataHolder updateData)
protected void handleCPQActionBeforeUpdate(UpdateDataHolder updateData)
protected void checkAutoExpandMode(CPQActionType action, UpdateDataHolder updateData)
protected void checkAutoExpandModeOnValueChange(ConfigurationData configData, String firstErrorCsticId)
protected boolean isFirstErrorCurrentFocusCstic(String firstErrorCsticId, String focusId)
protected String getCsticKeyForFocusIdPath(ConfigurationData configData)
protected void handleToggleImageGallery(CPQActionType action, UpdateDataHolder updateData)
protected void handleGroupIdToDisplayWhenSolvingConflicts(CPQActionType action, UpdateDataHolder updateData)
protected void handleShowFullLongTextFlag(CPQActionType action, UpdateDataHolder updateData)
updateData - csticKey - action - protected void resetCPQActionType(ConfigurationData configData)
protected void identifyPrevNextGroup(CPQActionType action, UpdateDataHolder updateData)
updateData - protected String getGroupIdForPrevNextButtonClick(CPQActionType prevNextButtonClicked, String currentGroupId, List<UiGroupData> csticGroupsFlat, int currentGroupIndex)
protected int findCurrentGroupIndex(String currentGroupId, List<UiGroupData> csticGroupsFlat)
protected String getNextGroupId(String currentGroupId, List<UiGroupData> csticGroupsFlat, int currentGroupPosition)
protected String getPreviousGroupId(String currentGroupId, List<UiGroupData> csticGroupsFlat, int currentGroupPosition)
protected void handleAutoExpand(UpdateDataHolder updateData, ConfigurationData configData)
protected void handleGroupIdToDisplayForNavigationLinks(CPQActionType action, UpdateDataHolder updateData)
protected UiGroupData findFirstConflictGroupForCsticId(List<UiGroupData> uiGroups, String csticId)
protected boolean isFocusIdSet(String focusId)
protected void handleAutoExpandAndSyncUIStatus(UpdateDataHolder updateData, ConfigurationData configData)
protected void executeUpdate(UpdateDataHolder updateData)
protected void beforeUpdate(UpdateDataHolder updateData)
protected UpdateDataHolder initUpdateData(ConfigurationData configData, BindingResult bindingResult, HttpServletRequest request)
protected Map<String,FieldError> removeOutdatedValidationErrors(UpdateDataHolder updateData)
protected List<String> getCsticKeysForExpandedSingleLevelGroups(List<UiGroupData> groups)
protected boolean isOutdatedValidationError(Map.Entry<String,FieldError> entry, List<String> csticsDisplayed)
protected UiGroupData findFirstGroupForCsticId(List<UiGroupData> uiGroups, String csticId)
protected boolean isCsticPartOfGroup(UiGroupData uiGroup, String csticId)
Copyright © 2017 SAP SE. All Rights Reserved.