Issue Details (XML | Word | Printable)

Key: XWIKI-284
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Duke Tantiprasut
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XWiki Core

Added API to simplify calling XWiki.copyDocument() with force copy

Created: 22/Jun/06 02:33   Updated: 06/Jan/07 00:13
Component/s: APIs
Affects Version/s: 1.0 B1
Fix Version/s: 1.0 B2

File Attachments: 1. Text File tmp.txt (0.9 kB)


Date of First Response: 22/Dec/06 14:35
Resolution Date: 06/Jan/07 00:13


 Description  « Hide
Added "force" parameter to XWiki.copyDocument method. Patch file is attached.

 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Ludovic Dubost added a comment - 22/Dec/06 14:35
These tasks should be verified because I think these are done.
If not they should be in 1.0

Vincent Massol added a comment - 25/Dec/06 15:07
Hi Duke,

Although I agree this could be a nice API to add, there's already a possibility of doing what you ask. Just call:

XWiki.copyDocument(docname, targetdocname, null, null, null, false, true);

The last "true" is the force parameter.


Sergiu Dumitriu added a comment - 06/Jan/07 00:13
Actually the patch was for the xwiki API, and it was using the existing function from the XWiki class.

I don't know when or by whom was this fixed.