You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Angela Schreiber (Jira)" <ji...@apache.org> on 2021/07/23 12:16:00 UTC

[jira] [Created] (OAK-9514) Add RestrictionPattern.matches(@NotNull String path, boolean isProperty)

Angela Schreiber created OAK-9514:
-------------------------------------

             Summary: Add RestrictionPattern.matches(@NotNull String path, boolean isProperty)
                 Key: OAK-9514
                 URL: https://issues.apache.org/jira/browse/OAK-9514
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: core, security-spi
            Reporter: Angela Schreiber
            Assignee: Angela Schreiber


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}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)