Hi Fabio,
On Dec 5, 2008, at 8:54 PM, Fabio Mancinelli wrote:
Dear all,
since the 1.7 release has been delayed I would like to propose to
add 3
methods to the XMLRPC API. These methods are the following:
/* Returns a list of all the changed pages starting from a given
date */
public List<XWikiPageHistorySummary> getModifiedPagesHistory(
Date date,
Integer numberOfResults,
Integer start,
Boolean fromLatest)
/*
what is "start"?
what is "fromLatest"?
Can't we have a searchDocument() API as in the XWiki class for doing
queries?
These are basically equivalent to original store
functions, but if
checkVersion is true then a check of the current page version is done
before storing the page/object. This check handles the case in which a
page has been modified by somebody else after the last getPage or
getObject */
public XWikiPage storePage(XWikiPage page, Boolean checkVersion)
public XWikiObject storeObject(XWikiObject object, Boolean
checkVersion)
Besides their usefulness there is also a rationale: these are
actually a
need for the Concerto project and it would be great to have them
already
available in 1.7.
From the implementation point of view, these methods have almost no
impact on the current code base and they are purely an extension
(i.e.,
no pre-existing critical code has been touched)
Here it is my +1
Can you explain what happens if checkVersion is true?
Thanks
-Vincent