"source" is an XWikiDocument (inner document of a Document from XWiki api) as can be seen here, in the sample : http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Loca... I think source.space might work (was deprecated, didn't check if it's still there). Or something like source.getDocumentReference().getLastSpaceReference().getName() Jerem 2012/6/4 Stéphanie <[email protected]>:
Hello everyone,
In the Groovy Notification Tutorial (http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial), there is a field "source" that is an Object. To have the full name of the source, we have to write : source.fullName.
For what I'm doing, I just want to have the space of the source. I've tried different things, but no one seems to work. Do you have an idea of how I can have only the space of the source ?
Thanks, Stéphanie
-- View this message in context: http://xwiki.475771.n2.nabble.com/Groovy-Notification-Tutorial-tp7579341.htm... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users