You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2015/06/29 15:39:04 UTC
[jira] [Commented] (SLING-4822) Allow to skip validation of sub
resources based on arbitrary predicates
[ https://issues.apache.org/jira/browse/SLING-4822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14605616#comment-14605616 ]
Konrad Windszus commented on SLING-4822:
----------------------------------------
Fixed in r1688209. Also renamed {{ValidationService.validateAllResourceTypesInResource}} to {{ValidationService.validateResourceRecursively}} as this reflects much better what the method is actually doing.
> Allow to skip validation of sub resources based on arbitrary predicates
> -----------------------------------------------------------------------
>
> Key: SLING-4822
> URL: https://issues.apache.org/jira/browse/SLING-4822
> Project: Sling
> Issue Type: Bug
> Components: Validation
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
>
> Sometimes it is useful to skip some resources in {{ValidationMessage.validateAllResourceTypesInResource}} not only depending on the actual resource type but based on some other condition. To keep things simple I would suggest to replace the {{ignoredResourceTypes}} parameter with just a {{org.apache.commons.collection.Predicate}} parameter which acts as filter.
> Only resources which fulfill the given predicate are validated.
> Then either filtering based on a resource type or based on any other property of the resource could be easily done.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)