Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9514

Add RestrictionPattern.matches(@NotNull String path, boolean isProperty)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.42.0
    • core, security-spi
    • None

    Description

      the existing method RestrictionPattern.matches(@NotNull String path doesn't allow to indicate to the restriction evaluation if the path points to a node or property. while this makes sense for cases where the nature of the target item is not known, there are usages of the method throughout oak where the type of the target item is known (e.g. evaluations for a parent path). for those case it would be preferrable to call RestrictionPattern.matches(@NotNull String path, boolean isProperty).
      For backwards compatibility the new method should come with a default e.g. falling back to RestrictionPattern.matches(@NotNull String path.

      Attachments

        Issue Links

          Activity

            People

              angela Angela Schreiber
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: