|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOManager
Service handling complex import/export of documents and associated resources.
| Field Summary | |
|---|---|
static String |
DOCUMENTS_ADAPTER_NAME
|
| Method Summary | |
|---|---|
void |
addAdapter(String name,
IOResourceAdapter adapter)
Adds an adapter with given name and definition. |
Collection<DocumentRef> |
copyDocumentsAndResources(String repo,
Collection<DocumentRef> sources,
DocumentLocation targetLocation,
Collection<String> ioAdapters)
Copy documents and resources to another location (on a same machine). |
void |
copyDocumentsAndResources(String repo,
Collection<DocumentRef> sources,
IOManager remoteIOManager,
DocumentLocation targetLocation,
Collection<String> ioAdapters)
Remote copy. |
void |
copyDocumentsAndResources(String repo,
Collection<DocumentRef> sources,
String serverAddress,
int jndiPort,
DocumentLocation targetLocation,
Collection<String> ioAdapters)
Remote copy. |
void |
copyDocumentsAndResources(String repo,
Collection<DocumentRef> sources,
String serverAddress,
int jndiPort,
DocumentLocation targetLocation,
String docReaderFactoryClassName,
Map<String,Object> rFactoryParams,
String docWriterFactoryClassName,
Map<String,Object> wFactoryParams,
Collection<String> ioAdapters)
Copy documents and resources associated with the given sources from the local repository to a remote repository instance (available on a machine with the given serverAddress). |
void |
disposeExport(String uri)
|
void |
exportDocumentsAndResources(OutputStream out,
String repo,
Collection<DocumentRef> sources,
boolean recurse,
String format,
Collection<String> ioAdapters)
Export documents and resources. |
String |
externalizeExport(String repo,
Collection<DocumentRef> sources,
String docReaderFactoryName,
Map<String,Object> readerFactoryParams,
Collection<String> ioAdapters)
|
IOResourceAdapter |
getAdapter(String name)
Returns the adapter with given name. |
void |
importDocumentsAndResources(InputStream in,
String repo,
DocumentRef root)
Import document and resources described by given input stream at given document location. |
void |
importExportedFile(String uri,
DocumentLocation targetLocation)
Will be called after a successful export to import data from the file. |
void |
importExportedFile(String uri,
DocumentLocation targetLocation,
String docWriterFactoryClassName,
Map<String,Object> wFactoryParams)
Will be called after a successful export to import data from the file. |
void |
removeAdapter(String name)
Removes adapter with given name. |
| Field Detail |
|---|
static final String DOCUMENTS_ADAPTER_NAME
| Method Detail |
|---|
IOResourceAdapter getAdapter(String name)
throws ClientException
ClientException
void addAdapter(String name,
IOResourceAdapter adapter)
throws ClientException
ClientException
void removeAdapter(String name)
throws ClientException
ClientException
void importDocumentsAndResources(InputStream in,
String repo,
DocumentRef root)
throws IOException,
ClientException,
ImportDocumentException
in - stream representing the documents and resources to import. Can
be a zip file of a group of export files. The service is
responsible for unzipping and redirecting import to specific
import services.repo - the repository name.root - Optional location of document that must be taken as root of
the import (can be null).
IOException
ClientException
ImportDocumentException - TODO
void exportDocumentsAndResources(OutputStream out,
String repo,
Collection<DocumentRef> sources,
boolean recurse,
String format,
Collection<String> ioAdapters)
throws IOException,
ClientException,
ExportDocumentException
repo - TODOsources - locations of documents to export.recurse - recurse into sources childrenformat - export format. XXX see what format is actually accepted.ioAdapters - list of adapters to use for additional resources.stream - that can be turned into a zip holding a group of file for
each additional resources types.
IOException
ClientException
ExportDocumentException - TODO
Collection<DocumentRef> copyDocumentsAndResources(String repo,
Collection<DocumentRef> sources,
DocumentLocation targetLocation,
Collection<String> ioAdapters)
throws ClientException
repo - the initial repository name.sources - locations of documents to export.targetLocation - location of the document where copies must be
placed.ioAdapters - list of adapters to use for additional resources.
ClientException
void copyDocumentsAndResources(String repo,
Collection<DocumentRef> sources,
String serverAddress,
int jndiPort,
DocumentLocation targetLocation,
Collection<String> ioAdapters)
throws ClientException
sourceLocation - uri - targetLocation -
ClientException
void copyDocumentsAndResources(String repo,
Collection<DocumentRef> sources,
IOManager remoteIOManager,
DocumentLocation targetLocation,
Collection<String> ioAdapters)
throws ClientException
sourceLocation - uri - targetLocation -
ClientException
void copyDocumentsAndResources(String repo,
Collection<DocumentRef> sources,
String serverAddress,
int jndiPort,
DocumentLocation targetLocation,
String docReaderFactoryClassName,
Map<String,Object> rFactoryParams,
String docWriterFactoryClassName,
Map<String,Object> wFactoryParams,
Collection<String> ioAdapters)
throws ClientException
repo - sources - serverAddress - jndiPort - targetLocation - docReaderFactoryName - classname for a DocumentReaderFactory custom implementationrFactoryParams - params to be given to custom DocumentReaderFactory to create DocumentReaderdocWriterFactoryName - classname for a DocumentWriterFactory custom implementationwFactoryParams - params to be given to custom DocumentWriterFactory to create DocumentWriterioAdapters -
ClientException
String externalizeExport(String repo,
Collection<DocumentRef> sources,
String docReaderFactoryName,
Map<String,Object> readerFactoryParams,
Collection<String> ioAdapters)
throws ClientException
ClientException
void disposeExport(String uri)
throws ClientException
ClientException
void importExportedFile(String uri,
DocumentLocation targetLocation)
throws ClientException
uri - targetLocation -
ClientException
void importExportedFile(String uri,
DocumentLocation targetLocation,
String docWriterFactoryClassName,
Map<String,Object> wFactoryParams)
throws ClientException
uri - targetLocation - docWriterFactoryName - wFactoryParams -
ClientException
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||