Interface I_CmsValidationService

  • All Known Implementing Classes:
    CmsUrlNameValidationService

    public interface I_CmsValidationService
    This interface is the server-side counterpart to the org.opencms.gwt.client.validation.I_CmsValidator.

    It contains a method for validating a single field value.

    Since:
    8.0.0
    • Method Detail

      • validate

        CmsValidationResult validate​(CmsObject cms,
                                     java.lang.String value,
                                     java.lang.String config)
        Validates a single form field value.

        Parameters:
        cms - the CMS context
        value - the value to validate
        config - the configuration string for the validator
        Returns:
        the result of the validation