Hi,
add DocumentCreatedListener to the List from getEvents() in Example
http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial
and use
@Override
public void onEvent(Event event, Object source, Object data) {
XWikiDocument doc = (XWikiDocument) source;
XWikiContext context = (XWikiContext) data;
if (event instanceof DocumentCreatedEvent) {
// Do what you need here ;-)
}
}
--
View this message in context:
http://xwiki.475771.n2.nabble.com/How-to-set-a-properties-value-on-a-newly-…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.