Just to give you heads up you can mention below property in xwiki.cfg file
xwiki.authentication.authclass=com.MyAuthClass. Now in MyAuthClass you can check XWikiContext.getAction().equals("create")// it means user is creating some doc. I am not sure if we have some variable in XWikiContext thru which you can distinguish if it is a space or not(may be some yo can check the parent of doc to be created). If Not, you can follow the convention that user always create the space document suffixed with "MySpace" and one more check in this custom class (XWikiContext.getURL().toString().contains("MySpace/")). Hope it helps. On Tue, Apr 17, 2012 at 7:01 PM, _diego <diego.a.r...@gmail.com> wrote: > Hi, > > How can I register a java event listener against a space created event? I > would need this to add some stuff to another database everytime a new space > was created. > > Thanks > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/On-Space-Created-Event-tp7473505p7473505.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users