Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4822

Allow to skip validation of sub resources based on arbitrary predicates

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Validation 1.0.0
    • Validation
    • 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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kwin Konrad Windszus
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment