jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@adobe.com>
Subject Re: Access control manager removing previlages
Date Mon, 22 Nov 2010 15:04:16 GMT
On 12.11.10 15:17, "sriraj paul" <srirajpaul@yahoo.co.uk> wrote:

>I am trying to use Access control manager.
>My requirement is to disallow a user from reading a node.
>To allow with some previlage i saw a method in AccessControlList as
>addAccessControlEntry(java.security.Principal principal, Privilege[]
>But for disallowing the a user from any previlage all is could i find is
>addEntry(Principal principal, Privilege[] privileges, boolean isAllow)
>Is'nt there any JCR equilavent for this method? Is
>is the only option?

Yes, AFAIK this is the way it is... the JCR 2.0 access control API does
not separate between "allow" and "deny" entries, all entries are
implicitly of type "allow". (Someone might correct me if this is not


Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel

View raw message