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
-
Method Details
-
validate
Map<String,CmsValidationResult> validate(CmsObject cms, Map<String, CmsValidationQuery> queries, Map<String, throws ExceptionString> values, String config) 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:
Exception
- if something goes wrong
-