[xwiki-users] Groovy Notification Tutorial

2012-06-04 Thread Stéphanie
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.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


Re: [xwiki-users] Groovy Notification Tutorial

2012-06-04 Thread Jeremie BOUSQUET
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+Local

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 stephanie.roull...@gmail.com:
 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.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