jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angela Schreiber <anch...@day.com>
Subject Re: PrincipalManager question.
Date Thu, 02 Jul 2009 08:31:58 GMT

> I need to answer the question.
> 
> Is userA a member of groupB either directly or indirectly.
> 
> userA is a member of about 100 groups, the group hierarchy is several 
> levels deep and 

group membership can be discovered using

Authorizable#memberOf()
Authorizable#declaredMemberOf()

> some of the principals are come from custom 
> PrincipalProvider implementations.

if i'm not mistaken you can configure multiple principalproviders.

if an authorizable has multiple principals (!= group
membership) then Authorizable#getPrincipals() is the thing
you are looking for.

The principal(s) of an authorizable are retrieved from the 
principalmanager that in the default setup has been created
using the configured providers.

angela

Mime
View raw message