org.opencms.gwt
Class CmsDefaultFormValidator

java.lang.Object
  extended by 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
CmsDefaultFormValidator()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface I_CmsFormValidator
Parameters:
cms - the CMS context
queries - the validation queries for the form fields, indexed by form field key
values - the form field values
config - 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)