jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: Get Path from Node
Date Mon, 01 Mar 2010 19:52:57 GMT
Hi,

On Mon, Mar 1, 2010 at 8:19 PM, Paco Avila <monkiki@gmail.com> wrote:
> myNode.getPath() returns an string, and I need a Path. I need to make a call to
>
> boolean isGranted(Path absPath, int permissions)
>
> from AccessManager and this requires a Path.

Can you not use the AccessControlManager.hasPrivileges() method [1] for this?

[1] http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/javax/jcr/security/AccessControlManager.html#hasPrivileges(java.lang.String,
javax.jcr.security.Privilege[])

BR,

Jukka Zitting

Mime
View raw message