jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Boston <...@tfd.co.uk>
Subject Re: PrincipalManager question.
Date Thu, 02 Jul 2009 12:52:37 GMT

On 2 Jul 2009, at 09:31, Angela Schreiber wrote:

>
>> 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()


makes sense

What I need is
Group#isMember(Authorizable)

Question answered, thank you (I cant believe I was so stupid not to  
see that)
Ian

> 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)

!= group membership was my mistake.

> 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