jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JCR-3037) Add getPath method to Authorizable interface
Date Tue, 02 Aug 2011 10:28:27 GMT

     [ https://issues.apache.org/jira/browse/JCR-3037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

angela resolved JCR-3037.

    Resolution: Fixed

added method to interface and to the implementation in jackrabbit core.
the method returns the path of the node associated with the authorizable if it is
accessible to the editing session (same workspace) and otherwise throws UnsupportedRepositoryOperationException

> Add getPath method to Authorizable interface
> --------------------------------------------
>                 Key: JCR-3037
>                 URL: https://issues.apache.org/jira/browse/JCR-3037
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-api, jackrabbit-core
>    Affects Versions: 2.3.0
>            Reporter: angela
>            Assignee: angela
>            Priority: Minor
> currently the only way to retrieve the path of the item associated with an authorizable
is to check if the
> principal obtained through Authorizable#getPrincipal() is an ItemBasedPrincipal.
> having a getPath method would provide a convenient shortcut and would in addition allow
> to determine of there is really an item associated with a authorizable that is accessible
for the editing
> session (which is not necessarily the case for ItemBasedPrincipal#getPath

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message