grouper-dev - [grouper-dev] Java code to retrieve group memberships
Subject: Grouper Developers Forum
List archive
- From: Andrea Biancini <>
- To: "" <>
- Subject: [grouper-dev] Java code to retrieve group memberships
- Date: Wed, 19 Nov 2014 20:10:31 +0100
Hi *,
I'm writing an interface upon the Grouper Java Objects (namely the VOOT connector).
Within this interface I need, at some point, to retrieve the Membership object of a Subject within a specific Group.
For this purpose, I've so far user the following snippet of code:
<<
Membership membership = MembershipFinder.findImmediateMembership(grouperSession, theGroup, theSubject, false);
>>
--
This works perfectly right, but only retrieves direct membership (as the method name suggest really strongly).
I was wondering how I could retrieve direct and indirect membership.
I suppose I have to use the MembershipFinder.findEffectiveMemberships method... but it has some parameters which makes it not completely clear to me how I could achieve my goal...
Has someone already solved a similar problem (the UI solves this problem, for instance) and is able to share a snippet of code to do obtain the membership of a user to a group (direct or indirect)?
Thank you very much!
Regards,
Andrea
- [grouper-dev] Java code to retrieve group memberships, Andrea Biancini, 11/19/2014
- RE: [grouper-dev] Java code to retrieve group memberships, Chris Hyzer, 11/19/2014
- Re: [grouper-dev] Java code to retrieve group memberships, Andrea Biancini, 11/19/2014
- RE: [grouper-dev] Java code to retrieve group memberships, Chris Hyzer, 11/19/2014
- Re: [grouper-dev] Java code to retrieve group memberships, Andrea Biancini, 11/19/2014
- RE: [grouper-dev] Java code to retrieve group memberships, Chris Hyzer, 11/19/2014
- Re: [grouper-dev] Java code to retrieve group memberships, Andrea Biancini, 11/19/2014
- RE: [grouper-dev] Java code to retrieve group memberships, Chris Hyzer, 11/19/2014
Archive powered by MHonArc 2.6.16.