This content has been marked as final.
Show 2 replies
-
1. Re: Setting user's roles doesn't trigger Hibernate PreInsert
johnnythehun Jun 2, 2009 8:57 AM (in response to johnnythehun)Thank you for your quick answer, your solution is good too, if the hibernate listener approach doesn't work.
I have tested the hibernate listener method and found that the following actions do not trigger a hibernate pre event:
- adding roles to a user
- adding / setting / changing a page's display name
- setting the theme (layout, renderset etc) of a page
- adding / setting / changing a page's properties
Can anyone tell me how to catch these events?
Thanks,
John -
2. Re: Setting user's roles doesn't trigger Hibernate PreInsert
bdaw Jun 2, 2009 9:15 AM (in response to johnnythehun)Look at org.jboss.portal.identity.event package.
Then event service is registered in jboss-service.xml:
<mbean de="org.jboss.portal.identity.service.IdentityEventManagerService"
name="portal:service=IdentityEventManager" ...