Skip to Content.
Sympa Menu

grouper-dev - Re: [grouper-dev] Grouper API - Find immediat stemmers or creators

Subject: Grouper Developers Forum

List archive

Re: [grouper-dev] Grouper API - Find immediat stemmers or creators


Chronological Thread 
  • From: Arnaud Deman <>
  • To: Chris Hyzer <>
  • Cc: "" <>
  • Subject: Re: [grouper-dev] Grouper API - Find immediat stemmers or creators
  • Date: Fri, 30 Sep 2011 15:49:32 +0200

Thanks for your answer Chris. It works fine!
Arnaud.

Le vendredi 30 septembre 2011 à 01:27:23, Chris Hyzer a écrit :
> 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
>

--
Arnaud Deman
04 91 28 85 25
DSI - Université Paul Cézanne Aix-Marseille III
Avenue Escadrille Normandie-Niemen
13397 MARSEILLE CEDEX 20




Archive powered by MHonArc 2.6.16.

Top of Page