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