org.opencms.gwt
Class CmsUrlNameValidationService

java.lang.Object
  extended by org.opencms.gwt.CmsUrlNameValidationService
All Implemented Interfaces:
I_CmsValidationService

public class CmsUrlNameValidationService
extends Object
implements I_CmsValidationService

Validation class which both translates a sitemap URL name and checks whether it already exists in a '|'-separated list of URL names which is passed as a configuration parameter.

Since:
8.0.0

Constructor Summary
CmsUrlNameValidationService()
           
 
Method Summary
 CmsValidationResult validate(CmsObject cms, String value, String config)
          Validates a single form field value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsUrlNameValidationService

public CmsUrlNameValidationService()
Method Detail

validate

public CmsValidationResult validate(CmsObject cms,
                                    String value,
                                    String config)
Description copied from interface: I_CmsValidationService
Validates a single form field value.

Specified by:
validate in interface I_CmsValidationService
Parameters:
cms - the CMS context
value - the value to validate
config - the configuration string for the validator
Returns:
the result of the validation
See Also:
I_CmsValidationService.validate(org.opencms.file.CmsObject, java.lang.String, java.lang.String)