I propose that we deprecate api.XWiki#renamePage(Document, String)
(xwiki-platform/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/XWiki.java at master · xwiki/xwiki-platform · GitHub)
The rationale behind it is that it uses internally already deprecated (or soon to be) APIs, and that AFAIK we should push toward using DocumentReference instead of String for such renames.
Moreover there is already existing API for renames in Document.java
: so the deprecation would advice to use Document#rename(DocumentReference)
instead (xwiki-platform/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Document.java at master · xwiki/xwiki-platform · GitHub)
I also propose we deprecate api.Document#rename(String)
(xwiki-platform/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Document.java at master · xwiki/xwiki-platform · GitHub) for same reasons.
This vote is open for one week: it will be closed friday, January 10th.