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-created-document-tp7588341p7588342.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs