On 12.11.10 15:17, "sriraj paul" <srirajp...@yahoo.co.uk> wrote:
>Hi, > >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[] >privileges) > > >But for disallowing the a user from any previlage all is could i find is >from >JackrabbitAccessControlList >addEntry(Principal principal, Privilege[] privileges, boolean isAllow) > >Is'nt there any JCR equilavent for this method? Is >JackrabbitAccessControlList >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 right). Regards, Alex -- Alexander Klimetschek Developer // Adobe (Day) // Berlin - Basel