Skip to Content.
Sympa Menu

grouper-dev - RE: [grouper-dev] GroupHooks and Group methods

Subject: Grouper Developers Forum

List archive

RE: [grouper-dev] GroupHooks and Group methods


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Chris Hyzer <>, "" <>, Grouper Dev <>
  • Subject: RE: [grouper-dev] GroupHooks and Group methods
  • Date: Tue, 10 Feb 2009 12:01:00 -0500
  • Accept-language: en-US
  • Acceptlanguage: en-US

Also, might want to look at "AttributeHooks" which you can put a hook on
insert/update/delete on group attributes, and easily see if it is the one you
want...

Kind regards,
Chris

> -----Original Message-----
> From: Chris Hyzer
> [mailto:]
> Sent: Tuesday, February 10, 2009 11:56 AM
> To:
> ;
> Grouper Dev
> Subject: RE: [grouper-dev] GroupHooks and Group methods
>
> Well, the hooks will fire all the time, and in the hook method, you
> compare and see if you want to act. If so, act, if not, return.
>
> In the groupHooksBean (given to you by hook method) you can get the
> group, and then you can call dbVersion() on the gruop to get the old
> information, or dbVersionChangeFields() to get the list of attributes
> which have changed... This will work in the preUpdate, and I believe
> it also works in the postUpdate, though Im not sure... give it a try.
> If not, let me know exactly what you want to do and I can try to make
> an example.
>
> Kind regards,
> Chris
>
> > -----Original Message-----
> > From: Arnaud Deman
> > [mailto:]
> > Sent: Tuesday, February 10, 2009 11:44 AM
> > To: Grouper Dev
> > Subject: [grouper-dev] GroupHooks and Group methods
> >
> > Hi everyone,
> >
> > Is it possible to use the hooks to extends only some methods of the
> > Group class ?
> > For instance I would like to perform an action only when the content
> of
> > the field associated to a custom type is modified.
> >
> > I tried to use the methods in the GroupHooks class but I wasn't able
> to
> > find a way to discriminate the modifications.
> >
> > I am working with the 1.4.1 version.
> >
> > Regards,
> > Arnaud.
> >
> >
> >
> > --
> >
> > Arnaud Deman
> > GIP RECIA
> > Parc d'activités les Aulnaies
> > 151 rue de la Juine - 45160 OLIVET
> > Tel : 02 38 42 14 63
> >




Archive powered by MHonArc 2.6.16.

Top of Page