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?
Look at org.jboss.portal.identity.event package.
Then event service is registered in jboss-service.xml: