[xwiki-devs] Hook mechanism for XWiki ?

Jean-Vincent Drean jv at xwiki.com
Tue Oct 16 16:10:11 CEST 2007


2007/10/16, jvivien.m2 jvivien.m2 <jean.vivien.maurice at gmail.com>:
> Hi all,
>
>  I would like to know if there is a way to add behaviour to a standard xwiki
> installation, like a java plugin with a function that would be executed
> every time a document/object is created/modified/deleted in xwiki.
> Thanks a lot ! Keep up the good work

Hi,

You can do so by writing a plugin :
http://www.xwiki.org/xwiki/bin/view/DevGuide/CreatingPlugins

Which can implement the xwiki notifiy interface :
http://build.xpertnet.biz/latestdoc/api/com/xpn/xwiki/notify/package-summary.html

Here is an example (see notify at the end of the file) :
http://tinyurl.com/3cgyju

JV.


More information about the devs mailing list