[
https://issues.apache.org/jira/browse/OAK-2490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14312579#comment-14312579
]
Chetan Mehrotra commented on OAK-2490:
--------------------------------------
Currently {{Query}} interface has a method
{{org.apache.jackrabbit.oak.query.Query#getTree(String path)}} which returns a
tree instance for a given path if its accessible. For ACL check requirements in
current usecases within Indexes just need to check if a given path is
accessible via {{ContentSession}} associated with the Query. So if QueryEngine
can provide a method like below (in Filter or any other instance passed to
Index while query evaluation) then that should be sufficient
{code}
boolean isAccessible(String path)
{code}
[~teofili] wdyt
> Make it possible to use the PermissionProvider from within query indexes
> ------------------------------------------------------------------------
>
> Key: OAK-2490
> URL: https://issues.apache.org/jira/browse/OAK-2490
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core
> Reporter: Tommaso Teofili
> Assignee: Tommaso Teofili
> Fix For: 1.1.7
>
>
> As discussed on OAK-2423 and OAK-2473 it's useful to have a
> {{PermissionProvider}} down into {{QueryIndex}} implementations and/or
> {{SelectorImpl}}, depending on wether the ACL checks have to be done on an
> implementation base or generally.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)