Package org.opencms.gwt
Interface I_CmsFormValidator
-
- All Known Implementing Classes:
CmsDefaultFormValidator
public interface I_CmsFormValidator
Interface for handling the server-side validation of a whole form.- Since:
- 8.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,CmsValidationResult>
validate(CmsObject cms, java.util.Map<java.lang.String,CmsValidationQuery> queries, java.util.Map<java.lang.String,java.lang.String> values, java.lang.String config)
Validates the form and returns the validation result.
-
-
-
Method Detail
-
validate
java.util.Map<java.lang.String,CmsValidationResult> validate(CmsObject cms, java.util.Map<java.lang.String,CmsValidationQuery> queries, java.util.Map<java.lang.String,java.lang.String> values, java.lang.String config) throws java.lang.Exception
Validates the form and returns the validation result.Implementations of this interface may or may not use the validators in the validation queries passed as an argument.
- Parameters:
cms
- the CMS contextqueries
- the validation queries for the form fields, indexed by form field keyvalues
- the form field valuesconfig
- the configuration for the form validator- Returns:
- a map of the validation results, indexed by form field key
- Throws:
java.lang.Exception
- if something goes wrong
-
-