Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] Issue with the groupPreUpdate value

Subject: Grouper Developers Forum

List archive

[grouper-dev] Issue with the groupPreUpdate value

Chronological Thread 
  • From: "Begum, Sheema" <>
  • To:
  • Subject: [grouper-dev] Issue with the groupPreUpdate value
  • Date: Fri, 26 Jun 2015 05:20:40 -0400


We are having an issue with the groupPreUpdate, here is the scenario:

We want to check if the groupName has restricted word in it on both Insert and Update operations. Insert is fine, but we are having issue with the Update operation as it is getting only the old value but not the new value.

  If the existing group name is "TestGroup" and it being updated to "TestGroupUpdated"

In the below method when we print the value of the group name we are getting "TestGroup" while we are expecting the new value "TestGroupUpdated"

public void groupPreUpdate(HooksContext hooksContext, HooksGroupBean preUpdateBean) { Group group = preUpdateBean.getGroup(); String name = StringUtils.defaultString(group.getName()); } }

Please let us know, how we can get the new value for the group Name.


Archive powered by MHonArc 2.6.16.

Top of Page