hi robert
the information at the wiki link at [1] is not the official documentation for jackrabbit 2x and is in some areas outdated/not accurate kind regards angela ________________________________ From: Robert Munteanu <[email protected]> Sent: Thursday, November 8, 2018 11:31 AM To: [email protected] Subject: Re: How to create new Principal Object Hi, On Wed, 2018-11-07 at 14:52 -0600, kevintv wrote: > Hello, > > I'm a new developer trying to tackle the Jackrabbit/JCR library. My > team and > I have been using the EveryonePrincipal for a couple of months now, > but > we've been wanting to implement more capabilities per user > roles/principals > so we can grant them necessary read/write access to each node. > However, > we're having some difficulties figuring out how to create a new > Principal > object. > > I've been using: > > PrincipalImpl newPrincipal = new PrincipalImpl("MyPrincipal"); > > Then creating a new RolePrincipal class matching the > EveryonePrincipal, > except the name would be "MyPrincipal" inside the RolePrincipal > class. This > method doesn't work unfortunately. Is there anything else we're > missing from > this? And how does the 'everyone' principal gets stored? You might find [1] useful, it outlines how access control is managed specifically in jackrabbit. You should also take a look at [2]. Hope this helps, Robert [1]: https://wiki.apache.org/jackrabbit/AccessControl [2]: https://docs.adobe.com/content/docs/en/spec/jcr/2.0/16_Access_Control_Management.html
