Hi Paul,
On 18 Jun 2014 at 09:45:02, Paul Libbrecht ([email protected](mailto:[email protected])) wrote: > Dear XWiki experts, > > I've been trying to undelete documents programmatically and I must say I > failed thus far. > I need to do this so as to implement the undeletion of 450 documents. I had this need too and I wrote this example: http://extensions.xwiki.org/xwiki/bin/view/Extension/Restore+Documents Hope it helps, -Vincent > Given the full name of the document, which currently shows when /view/-ed, > that it has been deleted and offers me to restore or really delete, I am > calling: > xwiki.getDeletedDocuments(fullName, "en"); > however, thus far, the result of this call has been an array of size zero. > I would have expected to call the undelete method on the last of these > DeletedDocuments. > > Is this not the right way to act? > > thanks in advance. > > Paul _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

