grouper-dev - RE: [grouper-dev] Grouper API - Find immediat stemmers or creators
Subject: Grouper Developers Forum
List archive
- From: Chris Hyzer <>
- To: Arnaud Deman <>, "" <>
- Subject: RE: [grouper-dev] Grouper API - Find immediat stemmers or creators
- Date: Fri, 30 Sep 2011 13:27:23 +0000
- Accept-language: en-US
Immediate/effective isn’t in the Privilege API, so you have to go directly to
the memberships:
GrouperDAOFactory.getFactory().getMembership()
.findAllMembersByStemOwnerAndFieldAndType(stem.getUuid(), f,
MembershipType.IMMEDIATE.getTypeString(), null, true)
Note, this is not a secure query, so no matter what the GrouperSession is set
to, you will see all records :)
Note, these deep methods are not part of the core API, so they are more
likely to change in Grouper versions, though we try not to change methods,
and I put a comment in this one to say you are using it :)
Thanks,
Chris
-----Original Message-----
From:
[mailto:]
On Behalf Of Arnaud Deman
Sent: Friday, September 30, 2011 8:40 AM
To:
Subject: [grouper-dev] Grouper API - Find immediat stemmers or creators
Hello,
How can I retrieve the list of subjects with a direct privilege on a stem
using the API ?
For the groups I think I have found the solution :
group.getImmediateMembers(FieldFinder.find(privilege.getListName(),true))
but I can't find it for the stems.
Thanks in advance,
Best regards,
Arnaud
--
Arnaud Deman
04 91 28 85 25
DSI - Université Paul Cézanne Aix-Marseille III
Avenue Escadrille Normandie-Niemen
13397 MARSEILLE CEDEX 20
- [grouper-dev] Grouper API - Find immediat stemmers or creators, Arnaud Deman, 09/30/2011
- RE: [grouper-dev] Grouper API - Find immediat stemmers or creators, Chris Hyzer, 09/30/2011
- Re: [grouper-dev] Grouper API - Find immediat stemmers or creators, Arnaud Deman, 09/30/2011
- RE: [grouper-dev] Grouper API - Find immediat stemmers or creators, Chris Hyzer, 09/30/2011
Archive powered by MHonArc 2.6.16.