public class DocumentModelWriter extends AbstractDocumentModelWriter
root, session, unsavedDocuments
Constructor and Description |
---|
DocumentModelWriter(CoreSession session,
String parentPath) |
DocumentModelWriter(CoreSession session,
String parentPath,
int saveInterval) |
Modifier and Type | Method and Description |
---|---|
DocumentTranslationMap |
write(ExportedDocument xdoc)
Writes a single document.
|
beforeCreateDocument, beforeSaveDocument, close, createDocument, getFieldClass, getSaveInterval, getTranslationMap, loadFacetsInfo, loadSchema, loadSchemas, loadSystemInfo, saveIfNeeded, setSaveInterval, updateDocument
createCompactFormat, createPrettyPrint, write, write
public DocumentModelWriter(CoreSession session, String parentPath)
session
- the session to the repository where to writeparentPath
- where to write the tree. this document will be used as the parent of all top level documents
passed as input. Note that you may havepublic DocumentModelWriter(CoreSession session, String parentPath, int saveInterval)
public DocumentTranslationMap write(ExportedDocument xdoc) throws IOException
DocumentWriter
write
in interface DocumentWriter
write
in class AbstractDocumentWriter
xdoc
- the document to writeIOException
Copyright © 2018 Nuxeo. All rights reserved.