grouper-dev - Re: [grouper-dev] MembershipHooks high vs not high level hooks
Subject: Grouper Developers Forum
List archive
- From: Colin Hudler <>
- To: Chris Hyzer <>
- Cc: "" <>
- Subject: Re: [grouper-dev] MembershipHooks high vs not high level hooks
- Date: Wed, 24 Jun 2009 16:15:42 -0500
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/api/edu/internet2/middleware/grouper/hooks/MembershipHooks.html#membershipPreAddMember>
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.