Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Sometimes it is useful to skip some resources in ValidationService.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.
Attachments
Attachments
Issue Links
- is duplicated by
-
SLING-4821 Allow to skip validation of sub resources based on a property
- Resolved
- relates to
-
SLING-4387 Validation: Support validation of resource and all child resources
- Closed