[ 
https://issues.apache.org/jira/browse/JCR-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551541
 ] 

Esteban Franqueiro commented on JCR-1154:
-----------------------------------------

Stefan,

> the said method is not public since it returns *all* workspace names, 
> regardless of user rights. please note that
> the a session must only see/know about workspaces it is actually allowed to 
> access. 

I'm working on a garbage collector for the data store. The GC doesn't care 
about user rights, or, putting it another way, it must be able to access all 
workspaces. Ideally I'd like to use a SystemSession, but you can't get one 
outside RepositoryImpl or o.a.j.c package (i.e., getSystemSession(String) is 
package private, WorkspaceInfo is protected).
I understand that these APIs shouldn't be public, but they're useful from 
within the core. In my case, for the GC.
I'm very interested in using another way to walk every workspace, but this 
other way should guarantee that the repository won't shutdown during a walk 
operation. I'll check the solution Thomas said he'll be proposing, but in the 
mean time that is what I'm using.
Still, I don't see why this APIs aren't public.
Regards

> Database Data Store
> -------------------
>
>                 Key: JCR-1154
>                 URL: https://issues.apache.org/jira/browse/JCR-1154
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: jackrabbit-core
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Blocker
>             Fix For: 1.4
>
>         Attachments: jr-1.3.1-bea.zip
>
>
> We want to have a database backed data store implementation.
> An implementation using files is already available as part of JCR-926.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to