org.nuxeo.ecm.platform.io.api.util
Class IOHelper
java.lang.Object
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
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.