On May 23, 2010, at 10:44 AM, Carsten Ziegeler <[email protected]> wrote:

Finally, in terms of returning the real resource resolver, this is OK with
me, but should be done soon.
Yes, I first wanted to get some feedback before doing so, but I'll do
this rsn.

I meant soon as in the next week or so, i.e. Before the next release.

Justin

As I mentioned before, one of my needs is to
get access to a session in the request-specific workspace. First I did:
session = request.getResourceResolver().adaptTo(Session.class)

then I switched to:
session = request.getResource().getResourceResolver().adaptTo (Session.class)

now I will need to:
session = request.getResource().adaptTo(Node.class).getSession()

Yes, that's true - but in the end I think this is the better way, even
if this requires more method calls :)

Regards
Carsten
--
Carsten Ziegeler
[email protected]

Reply via email to