-
Type: Sub-task
-
Status: Closed
-
Priority: Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
Dragos did a method in the core -io api http://svn.nuxeo.org/trac/nuxeo/browser/org.nuxeo.ecm.platform/trunk/nuxeo-platform-io-api/src/main/java/org/nuxeo/ecm/platform/io/api/IOManager.java
/**
- Remote copy. Copy documents and resources to another location.
* - @param sourceLocation
- @param uri
- @param targetLocation
- @throws ClientException
*/
void copyDocumentsAndResources(String repo,
Collection<DocumentRef> sources, String serverAddress,
int jndiPort, DocumentLocation targetLocation,
Collection<String> ioAdapters) throws ClientException;
This method aimed at copying documents and resources (ie realtions and audit) from one plateforme to another.
He had done some "dirty" unit tests, but the conclusion was that it didn't work at the time because of the lookup problem
Now that lookup is not a problem, the idea is to make a nice sample of a client program that will copy some documents (and relation and audit) from one real plateforme A to another real platform B.
As an example of such a client program, you can take inspiration or complete the following sample project :
http://svn.nuxeo.org/trac/nuxeo/browser/sandbox/nuxeo-import-export-test
Also, Dragos Mihalache might help you to understand the whole thing as he is the author.