Class ProductConfigurationValidator
java.lang.Object
de.hybris.platform.sap.productconfig.frontend.validator.ProductConfigurationValidator
- All Implemented Interfaces:
org.springframework.validation.Validator
public class ProductConfigurationValidator
extends Object
implements org.springframework.validation.Validator
CPQ UI Validator.
Will validate the user input received via HTTP. Ensures that the partial configuration send via HHTP is merged with the complete configuration state, so that all processing can access the whole configuration.
Validation itself will be delegated to Checker classes, such as the @ NumericChecker}.
Will validate the user input received via HTTP. Ensures that the partial configuration send via HHTP is merged with the complete configuration state, so that all processing can access the whole configuration.
Validation itself will be delegated to Checker classes, such as the @ NumericChecker}.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurationFacadeprotected List<CsticValueValidator>voidsetConfigurationFacade(ConfigurationFacade configurationFacade) voidsetCsticValidators(List<CsticValueValidator> csticValidators) voidsetMergeProcessor(ConfigDataMergeProcessor mergeProcessor) booleanvoidprotected voidvalidateCstic(org.springframework.validation.Errors errorObj, CsticData csticData) protected voidvalidateCstics(List<CsticData> cstics, org.springframework.validation.Errors errorObj) protected voidvalidateGroup(UiGroupData group, org.springframework.validation.Errors errorObj) protected voidvalidateSubGroups(List<UiGroupData> subGroups, org.springframework.validation.Errors errorObj, String groupListName) protected voidvalidateWithModification(org.springframework.validation.Errors errorObj, CsticData csticData, CsticValueValidator validator)
-
Constructor Details
-
ProductConfigurationValidator
public ProductConfigurationValidator()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
validateGroup
-
validateSubGroups
protected void validateSubGroups(List<UiGroupData> subGroups, org.springframework.validation.Errors errorObj, String groupListName) -
validateCstics
-
validateCstic
-
validateWithModification
protected void validateWithModification(org.springframework.validation.Errors errorObj, CsticData csticData, CsticValueValidator validator) -
setMergeProcessor
- Parameters:
mergeProcessor- injects the merge processor, that will merge the partial configuration submitted from the UI with the complete configuration from the underlying layers
-
getConfigurationFacade
-
setConfigurationFacade
-
getCsticValidators
-
setCsticValidators
- Parameters:
csticValidators- list of cstic validators to be called for validation
-