Package org.opencms.gwt
Class CmsDefaultFormValidator
- java.lang.Object
-
- org.opencms.gwt.CmsDefaultFormValidator
-
- All Implemented Interfaces:
I_CmsFormValidator
public class CmsDefaultFormValidator extends java.lang.Object implements 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
Constructors Constructor Description CmsDefaultFormValidator()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
CmsDefaultFormValidator
public CmsDefaultFormValidator()
-
-
Method Detail
-
validate
public 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
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:
java.lang.Exception
- if something goes wrong- See Also:
I_CmsFormValidator.validate(org.opencms.file.CmsObject, java.util.Map, java.util.Map, java.lang.String)
-
-