You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Oliver Lietz (JIRA)" <ji...@apache.org> on 2017/03/18 14:29:41 UTC

[jira] [Created] (SLING-6660) Validators should expose their id and severity

Oliver Lietz created SLING-6660:
-----------------------------------

             Summary: Validators should expose their id and severity
                 Key: SLING-6660
                 URL: https://issues.apache.org/jira/browse/SLING-6660
             Project: Sling
          Issue Type: Improvement
          Components: Extensions, Validation
            Reporter: Oliver Lietz


{{Validator}}s should expose their {{id}} and {{severity}} (maybe from service properties, but haven't to be service properties at all) by their own:

{noformat}
[...]
public interface Validator <T> {

[...]

    String getId(); // validator.id

    int getSeverity(); // validator.severity

[...]
}
{noformat}

This addition allows less code in {{ValidationModelRetrieverImpl}} and makes {{ValidatorAndSeverity}} obsolete.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)