On 11/07/2010 12:48 PM, tapaya wrote:
So as I understand you, the mention of 'update, delete, etc.' at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HPriv…
isn't correct, right?
Right.
My real use case: What would be the code to retrieve
and delete all minor
edits of all document in a space?
You can clear the entire history of a document by entering an URL like
the following:
/xwiki/bin/reset/Space/Document
You can selectively remove versions from the history tab if you have
admin rights.
Or you can write a groovy script that programatically alters the
history, following what's done in
xwiki-core/com.xpn.xwiki.web.DeleteVersionsAction.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/