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-2886) Add SessionImpl#isAdminOrSystem
Date Fri, 18 Feb 2011 18:31:38 GMT

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

angela resolved JCR-2886.

    Resolution: Fixed

while working on this i felt that it was more appropriate to distinguish the two 
cases and therefore added isAdmin() and isSystem().

the implementation of the latter in SessionImpl still has a TODO as we may have
both SessionImpl and SystemSession instances that must be treated as 'system'
in order to be compatible with the previous code.
however, i feel that at some point we should clear this up. the issue is due to the
fact that SystemSession doesn't have its own createSession method.

> Add SessionImpl#isAdminOrSystem
> -------------------------------
>                 Key: JCR-2886
>                 URL: https://issues.apache.org/jira/browse/JCR-2886
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core, security
>            Reporter: angela
>            Assignee: angela
>            Priority: Minor
>             Fix For: 2.3.0
> we have several places in jackrabbit-core where we need to find out if the executing
session is either a SystemSession or corresponds to the admin user.
> currently the same code (analysing the sessions subject) is copied throughout jackrabbit-core.
i would like to replace that by a helper method on SessionImpl.

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


View raw message