org.opencms.gwt
Class CmsUrlNameValidationService
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CmsUrlNameValidationService
public CmsUrlNameValidationService()
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 contextvalue
- the value to validateconfig
- 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)