2013/3/8 Ian Boston <[email protected]>:
sources are navigable.
>
> eg
> /a is managed by a JCR Resource Provider wrapped in a 
> ResourceProviderDecorator
>
> /a/b/c/d/e/f is denied by the ResourceProviderDecorator (eg Timed ACL)
> /a/b/c/d/e is allowed by the ResourceProviderDecorator
>
> Node n = resourceResolver.getResource("/a/b/c/d/e").adaptTo(Node.class);
>
> ... 20 lines of code ...
>
> Node breach = n.getChild("f");
>
I think Bertrand summarized it very well in his recent post - you
wouldn't implement ACL checks for JCR with this, but for resource
providers not having ACLs - and in that case you probably don't have
an adaption mechanism to an object which allows you tree traversal, so
there is no Node equivalent.

And if you do things like Mike want's to do, well you're on your own
and you know what you're doing. With the flexibility of
ResourceProviders and ResourceDecorators we already have enough
munition for people to implement such things. A resource decorator is
no different from these things, but makes some use cases way easier
while not really introducing a new "hole"

Carsten

-- 
Carsten Ziegeler
[email protected]

Reply via email to