public class DocumentModelUpdater extends AbstractDocumentModelWriter
root, session, unsavedDocuments| Constructor and Description |
|---|
DocumentModelUpdater(CoreSession session,
String parentPath) |
DocumentModelUpdater(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, updateDocumentcreateCompactFormat, createPrettyPrint, write, writepublic DocumentModelUpdater(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 DocumentModelUpdater(CoreSession session, String parentPath, int saveInterval)
public DocumentTranslationMap write(ExportedDocument xdoc) throws IOException
DocumentWriterwrite in interface DocumentWriterwrite in class AbstractDocumentWriterxdoc - the document to writeIOExceptionCopyright © 2019 Nuxeo. All rights reserved.