The notification methods are passed an XWikiDocument instance, which can be used to construct a Document object, so this should work no matter who the user is. Hope this helps. On Jun 3, 2006, at 5:47 PM, Robin Fernandes wrote:
Hi all,
I have a plugin that does stuff requiring programming rights. For example it calls Document.getDocument(). This is fine: the plugin is invoked from a doc saved by someone with prog rights. The plugin API is passed the XWiki API object obtained when that document is parsed. So I can then use that to do: wiki.getDocument(blah).getDocument().
Now I need to do something similar when a document is saved, rather than when invoked by the user. So I'm implementing XWikiDocChangeNotificationInterface.notify(). However I don't know how to get an XWiki API object that will return true for checkProgrammingRights() from my notify implementation.
Assuming this makes sense, does anyone have any ideas? :)
Regards, Robin
-- You receive this message as a subscriber of the xwiki- dev@objectweb.org mailing list. To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws