> Vidar Ramdal schrieb:
>> We want to render content in the "draft" workspace with scripts stored
>> in the default workspace. Since only one JCR session is created per
>> HTTP request, we're unable to access both a node in "draft" and the
>> scripts stored under /apps in the default workspace.

On Tue, Nov 11, 2008 at 2:49 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote:
> Hi Vidar,
>
> Interestingly, your request seems to be supported by my proposal for the
> ResourceResolverFactory [3]. In such a case, you would probably have two
> ResourceProviderFactory services registered: One would support the
> default workspace at "/" and the second one would support the draft
> workspace at "/content".

Exactly, that would be what I want. (Or even better, the draft
workspace would be mapped to requests with extension/selector =
".draft", but I guess that's more complicated).
So you can consider this a vote (+1) for your proposal, if I'm allowed
to vote :)

> [...]
> As an alternative -- short term -- approach, you might want to implement
> a ResourceProvider - say - for the /apps tree, which just uses
> SlingRepository.loginAdministrative() to login to the default workspace
> as an administrative user and which would serve the /apps tree from there.

Hmm, hadn't thought of that solution. But when you say implement a
ResourceProvider for /apps, would it be possible to implement a
ResourceProvider for the "draft" workspace instead?

In either case, what (in your opinion) would be the easiest approach
to implement the ResourceProvider? Extending JcrResourceProvider, or
creating one from scratch, or something completely different?


-- 
Vidar S. Ramdal <[EMAIL PROTECTED]> - http://www.idium.no
Akersgata 16, N-0158 Oslo, Norway

Reply via email to