Ah thanks. However the Document I want isn't
necessarily the one being
 saved, so I need something more general. A com.xpn.xwiki.api.XWiki
 with prog rights would be perfect since I already have code to do what
 I need using that.
 To put things in context: I'm attempting to modify the email
 notification plugin so that the creator is subscribed automatically
 when the document is saved (assuming the document is new or the
 creator has changed). I need to obtain, modify and save the creator's
 user document (XWiki.username) because that is where their
 subscription info is stored. Of course the creator isn't necessarily
 the user doing the save...
 Regards,
 Robin
 On 03/06/06, Mark H. James <markj(a)3cat.com> wrote:
  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(a)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 
 --
 You receive this message as a subscriber of the xwiki-
 dev(a)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
 
 --
 You receive this message as a subscriber of the xwiki-
 dev(a)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: