Package org.opencms.gwt
Class CmsDefaultFormValidator
java.lang.Object
org.opencms.gwt.CmsDefaultFormValidator
- All Implemented Interfaces:
I_CmsFormValidator
A form validator which does nothing special and just validates form field values independently of each other.
- Since:
- 8.0.0
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CmsDefaultFormValidator
public CmsDefaultFormValidator()
-
-
Method Details
-
validate
public Map<String,CmsValidationResult> validate(CmsObject cms, Map<String, CmsValidationQuery> queries, Map<String, throws ExceptionString> values, String config) Description copied from interface:I_CmsFormValidator
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.
- Specified by:
validate
in interfaceI_CmsFormValidator
- 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- See Also:
-