jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angela Schreiber <anch...@adobe.com>
Subject Re: How to get the effective ACL for a given node
Date Thu, 11 Jul 2013 11:22:48 GMT
hi ulrich

the following method is defined by the JCR specification:

javax.jcr.security.AccessControlManager#getEffectivePolicies(String absPath)
and returns an array of access control policies.

this this what you are looking for?
the jackrabbit API defines a variant that takes a set of principals instead
of a path.

kind regards

On Jul 11, 2013, at 12:19 PM, Ulrich <Forums@gombers.de> wrote:

> for a given node I need to know the list of principals with jcr:read-access. I
> started to create my own method by retrieving all "rep:policy"-nodes along the
> branch to the node. Just getting these ACLs isn't really hard work but I have to
> consider the meaning of all the properties of the ACEs. I will do this but I
> would prefer to take an already existing method to check, if there one.
> I have had a look at "org.apache.jackrabbit.api.security", but this does not
> help here.
> Maybe someone in the community can give a hint.
> Thanks in advance;
> Ulrich

View raw message