grouper-dev - RE: [grouper-dev] MembershipHooks high vs not high level hooks
Subject: Grouper Developers Forum
List archive
- From: Chris Hyzer <>
- To: Colin Hudler <>
- Cc: "" <>
- Subject: RE: [grouper-dev] MembershipHooks high vs not high level hooks
- Date: Wed, 24 Jun 2009 23:38:24 -0400
- Accept-language: en-US
- Acceptlanguage: en-US
Alright, let me re-explain:
It is called whenever that method is called whenever a certain method is
called in the API.
However, there might be other ways that a membership could be inserted. If
you want to catch *every* insert, then do a preInsert. If you want to catch
group.addMember(), then maybe membershipPreAddMember. However, I don't know
which internal methods call the one which fires a membershipPreAddMember, and
which don't... maybe it should say:
FROM: high level, not the side effects
TO: high level, maybe not the side effects
What are you trying to do?
Thanks,
Chris
> -----Original Message-----
> From: Colin Hudler
> [mailto:]
> Sent: Wednesday, June 24, 2009 5:16 PM
> To: Chris Hyzer
> Cc:
>
> Subject: Re: [grouper-dev] MembershipHooks high vs not high level hooks
>
> Thank you, it is clear. That explains why my hook was firing each time
> I added a stem. The only strange thing about that is that I was using
> membershipPreAddMember[1], which I thought wouldn't fire on these "not
> high level" adds. I will report back if I get to the bottom of it.
>
> 1
> <http://middleware.internet2.edu/dir/groups/grouper/grouper/1.4.1/doc/a
> pi/edu/internet2/middleware/grouper/hooks/MembershipHooks.html#membersh
> ipPreAddMember>
>
> On 06/24/2009 03:55 PM, Chris Hyzer wrote:
> > Ok, so if you call group.addMember, then the membership high level
> hook will fire. If a membership is added due to a group create (add
> the creator to the admin list, note, this is NOT indirect), then that
> is not the high level membership add hook... make sense?
> >
> >> If I do want to hook side effects, should I use the Pre/Post Insert
> >> hooks?
> >
> > Yes.
> >
> >
> >> -----Original Message-----
> >> From: Colin Hudler
> >> [mailto:]
> >> Sent: Wednesday, June 24, 2009 4:49 PM
> >> To:
> >>
> >> Subject: [grouper-dev] MembershipHooks high vs not high level hooks
> >>
> >> (feel free to bounce this to -users if it is off base on -dev)
> >>
> >> In javadoc, many of the hooks have notes
> >>
> >> "called right after .* (high level, not the side effects)"
> >>
> >> What are side effects? Am I right in thinking it is the indirect
> >> membership changes?
> >>
> >> If I do want to hook side effects, should I use the Pre/Post Insert
> >> hooks?
> >
> >
- MembershipHooks high vs not high level hooks, Colin Hudler, 06/24/2009
- RE: [grouper-dev] MembershipHooks high vs not high level hooks, Chris Hyzer, 06/24/2009
- Re: [grouper-dev] MembershipHooks high vs not high level hooks, Colin Hudler, 06/24/2009
- RE: [grouper-dev] MembershipHooks high vs not high level hooks, Chris Hyzer, 06/24/2009
- Re: [grouper-dev] MembershipHooks high vs not high level hooks, Colin Hudler, 06/25/2009
- RE: [grouper-dev] MembershipHooks high vs not high level hooks, Chris Hyzer, 06/25/2009
- Re: [grouper-dev] MembershipHooks high vs not high level hooks, Colin Hudler, 06/25/2009
- RE: [grouper-dev] MembershipHooks high vs not high level hooks, Chris Hyzer, 06/25/2009
- Re: [grouper-dev] MembershipHooks high vs not high level hooks, Colin Hudler, 06/25/2009
- RE: [grouper-dev] MembershipHooks high vs not high level hooks, Chris Hyzer, 06/24/2009
- Re: [grouper-dev] MembershipHooks high vs not high level hooks, Colin Hudler, 06/24/2009
- RE: [grouper-dev] MembershipHooks high vs not high level hooks, Chris Hyzer, 06/24/2009
Archive powered by MHonArc 2.6.16.