Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: hooks.StemHooks ... stemPreUpdate : how to tell what is changing on the preInsertBean?

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: hooks.StemHooks ... stemPreUpdate : how to tell what is changing on the preInsertBean?


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: "Black, Carey M." <>, grouper-users <>
  • Subject: [grouper-users] RE: hooks.StemHooks ... stemPreUpdate : how to tell what is changing on the preInsertBean?
  • Date: Mon, 25 Sep 2017 13:27:30 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:7r6aLRJsknl14ZZUvdmcpTZWNBhigK39O0sv0rFitYgfL/7xwZ3uMQTl6Ol3ixeRBMOAuqIC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9ZDeZwZFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QKsqUjq+8ahkVB7oiD8GNzEn9mHXltdwh79frB64uhBz35LYbISTOfFjfK3SYMkaSHJBUMhPSiJBHo2yYYgBD+UDPOZXs4bzqFQVoBuiHAmgGP/jxiNUinPo26AxzuQvERvB3AwlB98CvnbardX0NagMS+C51LTDwCvDb/NM2Df984bEeQ0mrPGJQb1wccrQyEgxGAPflViQqJflMC+P2uQQq2iU8exgVeS1h2E5tg5xvyGiy8ExgYfKnoIY0k7I+j9lzIooINC0VVN3bcOhHZteuCyWK5d6T8YgTm52tys3zrgLtJulcCQWxpkr3wPTZvKbf4SS5h/vSfydLSlliH9hYr6zmhS//Emmx+bhTMe7ykxKoTBAktTUtnACyRjT6s+fR/Vl4kqv3iqD2g7K5u9KJk45m7PXK5k6zbEujJYTtlnDHjPtl0Xxka+WcFgr9vKw6+T9ZbXmuoGTOJNoigH/NaQunNazAeMlMggSW2ib/uO81L758ULlR7VKi+U6kqjfsJ/EOcQWvrC1DBVJ3oo+7huzEiqq3MkdkHkJI19JZA6Lgo3rNl7QL/31CfKyjlGynDt3yf3KJrjhDY/MLnjHnrfhZ7F960tExQo20d9f55JVC7AfL/LpQULxtcfYAQMjPwyp2+boFtN91oUEVW2RH6CZLbvesUWU6eI3P+mMeIgVtS7yK/g/4P7ukGc5lkEHfaWwwJsXc263Hu59I0iCZXrsg8wBEXsRvgYgVuDqiVuCUSJNaHaoWaIz+C07BJy8AYjdW4+tne/J4CDuVLdSb2tFThinGG3lZs2hHb1EPCiWK8Ri1GVeDpCmUJJn2B2z4kuyxKBgM/LZ4GgFrp/5z5Ah6PfUiAk/73lpFMmHyEmMSX15hGUFW2Vw0axi9x9T0FCGhOJYku5VD5gbzPNTUxxwfcrZxOxrGd3ocgPadZGUUFugRJOrDSxnHYF5+MMHf0soQ4bqtRvExSf/RuZNz7E=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Pre insert is for inserts which means there is no existing. You need
pre-update for updates.

In the object (Stem) is a "dbVersion()" and dbVersionDifferentFields() which
will help you get the database version... If you query for it you need a
different tx...

Thanks
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Black, Carey M.
Sent: Sunday, September 24, 2017 10:57 PM
To: grouper-users
<>
Subject: [grouper-users] hooks.StemHooks ... stemPreUpdate : how to tell what
is changing on the preInsertBean?

A very quick look at the methods on preInsertBean does not reveal any obvious
"changing" data for the stem.

Maybe I would need to use the UUID to find the existing data via a FindStem
search and then compare all of the data values from the bean and the
"FimdStem" results of the two myself?

Any ideas/guidance?

If it helps, I am wanting to allow only *special* groups to modify the
extention, Display names. But others should be allowed to updated the
Description for the stems;. ( Thus writing a hook and I found this question.)

Thanks in advance.

--
Carey Matthew






Archive powered by MHonArc 2.6.19.

Top of Page