Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.io.api.util
Class IOHelper

java.lang.Object
  extended by org.nuxeo.ecm.platform.io.api.util.IOHelper

public class IOHelper
extends Object

Exposes a copy method that works between different repositories (optionally on different hosts). The copy method must be moved to IOManager.

Author:
Bogdan Stefanescu

Method Summary
static void copy(IOConfiguration src, IOConfiguration dest, Collection<String> ioAdapters)
          Copy from one location to another.
static String exportAsStream(IOConfiguration location, Collection<String> ioAdapters)
           
static void importFromStream(IOConfiguration location, String streamUri)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copy

public static void copy(IOConfiguration src,
                        IOConfiguration dest,
                        Collection<String> ioAdapters)
                 throws IOException,
                        ClientException
Copy from one location to another. The source and/or target repositories may be the same or may be located on different hosts. TODO: because of some methods not exposed in IOManager this method is not optimized to avoid handling exports / imports from/to local repositories through remote streams.

Throws:
IOException
ClientException

exportAsStream

public static String exportAsStream(IOConfiguration location,
                                    Collection<String> ioAdapters)
                             throws ClientException
Throws:
ClientException

importFromStream

public static void importFromStream(IOConfiguration location,
                                    String streamUri)
                             throws ClientException
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.