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 "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2015/01/22 10:14:34 UTC

[jira] [Commented] (OAK-2423) Add PermissionProvider.canRead

    [ https://issues.apache.org/jira/browse/OAK-2423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287147#comment-14287147 ] 

Tommaso Teofili commented on OAK-2423:
--------------------------------------

hi [~anchela], I'm trying to user the new _PermissionProvider#canRead_ API, how can I obtain a _PermissionProvider_ ?

> Add PermissionProvider.canRead
> ------------------------------
>
>                 Key: OAK-2423
>                 URL: https://issues.apache.org/jira/browse/OAK-2423
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>            Reporter: angela
>            Assignee: angela
>            Priority: Minor
>         Attachments: OAK-2423.patch
>
>
> As discussed with [~tmueller] and [~teofili], it might be beneficial for query performance if it was possible to determine read-access without having to create the {{Tree}} (and thus the hierarchy). The latter (as present with {{TreePermission.canRead}}) is suited for regular repository read operations where the tree hierarchy is built anyway.
> since {{PermissionProvider.isGranted(String oakPath, String jcrActions)}} requires to resolve the path to properly deal with write operations, i would suggest to evaluate if adding {{PermissionProvider.canRead(@Nonnull String treePath, @Nullable String propertyName}} would give us some performance gain in the query case.
> initial (untested) draft attached for basic evaluation. proper unit and benchmark testing are required.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)