Nuxeo Enterprise Platform 5.4

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 java.lang.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, java.util.Collection<java.lang.String> ioAdapters)
          Copy from one location to another.
static java.lang.String exportAsStream(IOConfiguration location, java.util.Collection<java.lang.String> ioAdapters)
           
static void importFromStream(IOConfiguration location, java.lang.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,
                        java.util.Collection<java.lang.String> ioAdapters)
                 throws java.io.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:
java.io.IOException
ClientException

exportAsStream

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

importFromStream

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.