grouper-dev - [grouper-dev] How to add a group preDelete hook to check a group's memberships?
Subject: Grouper Developers Forum
List archive
[grouper-dev] How to add a group preDelete hook to check a group's memberships?
Chronological Thread
- From: "Redman, Chad" <>
- To: "" <>
- Subject: [grouper-dev] How to add a group preDelete hook to check a group's memberships?
- Date: Thu, 30 May 2019 16:00:18 +0000
I am working on a hook where, if a group is deleted but is a member of another group in a certain folder, delete the sync attribute in that target group before it can sync the emptied out memberships. The source groups are from a loader, so they can go out of scope and get deleted at any point, so it's not normally a manual delete. Maybe there is something built in to do this, but I thought it would work with a hook.
I've spent a number of hours trying to track down why a simple membership query works fine to find a group's memberships, all except where it is used in a preDelete hook. After boosting the db trace levels, I can see that the group.delete() is deleting from memberships and group_set (without committing) before calling onPreDelete(). That explains why the membership query looks different within the hook.
Any ideas on the approach I should take to this? Maybe this function already exists elsewhere?
Thanks -Chad
|
- [grouper-dev] How to add a group preDelete hook to check a group's memberships?, Redman, Chad, 05/30/2019
- RE: [grouper-dev] How to add a group preDelete hook to check a group's memberships?, Hyzer, Chris, 05/30/2019
- RE: [grouper-dev] How to add a group preDelete hook to check a group's memberships?, Black, Carey M., 05/31/2019
- RE: [grouper-dev] How to add a group preDelete hook to check a group's memberships?, Redman, Chad, 05/31/2019
- RE: [grouper-dev] How to add a group preDelete hook to check a group's memberships?, Hyzer, Chris, 05/31/2019
- RE: [grouper-dev] How to add a group preDelete hook to check a group's memberships?, Black, Carey M., 05/31/2019
- RE: [grouper-dev] How to add a group preDelete hook to check a group's memberships?, Hyzer, Chris, 05/30/2019
Archive powered by MHonArc 2.6.19.