Package org.nuxeo.ecm.core.io
Interface IODocumentManager
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
IODocumentManagerImpl
public interface IODocumentManager extends Serializable
Defines functional interface that deals directly with documents import using provided DocumentReader or InputStream as a source and DocumentWriter that knows how the documents will be saved into the repository.- Author:
- Dragos Mihalache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DocumentTranslationMap
exportDocuments(OutputStream out, String repo, Collection<DocumentRef> sources, boolean recurse, String format)
DocumentTranslationMap
exportDocuments(OutputStream out, DocumentReader customDocReader, String format)
Used in pair with importDocuments(...DocumentTranslationMap
importDocuments(InputStream in, String repo, DocumentRef root)
DocumentTranslationMap
importDocuments(InputStream in, DocumentWriter customDocWriter)
DocumentTranslationMap
importDocuments(DocumentReader customDocReader, DocumentWriter customDocWriter)
-
-
-
Method Detail
-
importDocuments
DocumentTranslationMap importDocuments(InputStream in, String repo, DocumentRef root) throws IOException
- Throws:
IOException
-
importDocuments
DocumentTranslationMap importDocuments(InputStream in, DocumentWriter customDocWriter)
-
importDocuments
DocumentTranslationMap importDocuments(DocumentReader customDocReader, DocumentWriter customDocWriter)
- Parameters:
customDocReader
- reader from the input stream
-
exportDocuments
DocumentTranslationMap exportDocuments(OutputStream out, String repo, Collection<DocumentRef> sources, boolean recurse, String format)
-
exportDocuments
DocumentTranslationMap exportDocuments(OutputStream out, DocumentReader customDocReader, String format)
Used in pair with importDocuments(... customDocWriter)
-
-