grouper-users - RE: [grouper-users] Advice on automating nested groups
Subject: Grouper Users - Open Discussion List
List archive
- From: "Black, Carey M." <>
- To: "Gettes, Michael" <>, "" <>
- Subject: RE: [grouper-users] Advice on automating nested groups
- Date: Sun, 31 Mar 2019 18:45:54 +0000
Michael,
That sounds… fun?!? ( or not… )
RE: “OracleDB provides instruction of how to put one group within another” Does it also tell you when those mappings change? ( Like when to “undo” a parent child relationship? ) I would hate to “undo all of the nesting every day to “put them back again”. That would cause a lot of membership/”point in time” churn for no value in Grouper.
In the face of that set of constraints, I would consider going a slightly different way. ( because the mapping is externally driven ) Honestly, that looks like a classic ETL job to me. Extract todays map. Compare the map to yesterday’s map. Decide if any changes are needed, and if so what is needed to correct yesterday’s map to match today’s map. ( adds/removes/changes to the groups listed, and to the nesting model) Then apply the changes to grouper. You can write the ETL job an any language/tool you prefer. At the end of the processing you need to emit “grouper API events” (ok, maybe grouper web services, but “same difference” to me, just language neutral “API language”. J )
However, if you really, wanted to do all of this in the grouper framework…. Maybe extend the edu.internet2.middleware.grouper.app.loader.OtherJobBase class in a similar manner to edu.internet2.middleware.grouperDuo.GrouperDuoFullRefresh ? ( Still doing all the same work. But it lets you use the grouper cron job to kick it off and log results. ) And you can do whatever “crazy hibernate things” you want to do in your own class. Well as long as it does not conflict with the Grouper hibernate version in use. ( Not a restriction you would have if you ran the “job” in your own JVM. )
HTH.
-- Carey Matthew
From: <>
On Behalf Of Gettes, Michael
I wish…
I have a need to query an OracleDB as subject source and the grouper DB (not OracleDB - currently, mySQL) and to query both of them in a single loader job. I need to build groups based on info in Oracle and Grouper. There are hints of this being possible:
The structure I need to build has, as a component, rollups of our entire University Dept structure but it is a “security” structure which has “holes” in it so I info in the OracleDB provides instruction of how to put one group within another (it’s not based on naming).
Yes, I know I can copy data from Oracle over to the Grouper DB… and I may end up doing that… but, I was wondering if something similar to the above link is possible? I am hoping to be able to write SQL queries and the right magic happens behind the scenes.
/mrg
|
- [grouper-users] Advice on automating nested groups, Coleman, Erik C, 03/29/2019
- RE: [grouper-users] Advice on automating nested groups, Hyzer, Chris, 03/29/2019
- RE: [grouper-users] Advice on automating nested groups, Coleman, Erik C, 03/29/2019
- RE: [grouper-users] Advice on automating nested groups, Black, Carey M., 03/31/2019
- Re: [grouper-users] Advice on automating nested groups, Gettes, Michael, 03/31/2019
- RE: [grouper-users] Advice on automating nested groups, Black, Carey M., 03/31/2019
- Re: [grouper-users] Advice on automating nested groups, Gettes, Michael, 03/31/2019
- RE: [grouper-users] Advice on automating nested groups, Black, Carey M., 03/31/2019
- RE: [grouper-users] Advice on automating nested groups, Coleman, Erik C, 03/29/2019
- RE: [grouper-users] Advice on automating nested groups, Hyzer, Chris, 03/29/2019
Archive powered by MHonArc 2.6.19.