Class ExtensibleDocumentWriter
- java.lang.Object
-
- org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
-
- org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriter
-
- org.nuxeo.ecm.core.io.impl.plugins.DocumentModelWriter
-
- org.nuxeo.ecm.core.io.impl.plugins.ExtensibleDocumentWriter
-
- All Implemented Interfaces:
DocumentWriter
public class ExtensibleDocumentWriter extends DocumentModelWriter
Compared to the defaultDocumentModelWriter
implementation this one does handle versions and allows to plugExportExtension
- Since:
- 7.4
-
-
Field Summary
Fields Modifier and Type Field Description protected List<ImportExtension>
extensions
protected static Log
log
-
Fields inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriter
root, session, unsavedDocuments
-
-
Constructor Summary
Constructors Constructor Description ExtensibleDocumentWriter(CoreSession session, String parentPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DocumentModel
createDocument(ExportedDocument xdoc, Path toPath)
Creates a new document given its path.void
registerExtension(ImportExtension ext)
-
Methods inherited from class org.nuxeo.ecm.core.io.impl.plugins.DocumentModelWriter
write
-
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriter
beforeCreateDocument, beforeSaveDocument, close, getFieldClass, getSaveInterval, getTranslationMap, loadFacetsInfo, loadSchema, loadSchemas, loadSystemInfo, saveIfNeeded, setSaveInterval, updateDocument
-
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
createCompactFormat, createPrettyPrint, write, write
-
-
-
-
Field Detail
-
log
protected static Log log
-
extensions
protected List<ImportExtension> extensions
-
-
Constructor Detail
-
ExtensibleDocumentWriter
public ExtensibleDocumentWriter(CoreSession session, String parentPath)
-
-
Method Detail
-
registerExtension
public void registerExtension(ImportExtension ext)
-
createDocument
protected DocumentModel createDocument(ExportedDocument xdoc, Path toPath)
Description copied from class:AbstractDocumentModelWriter
Creates a new document given its path.The parent of this document is assumed to exist.
- Overrides:
createDocument
in classAbstractDocumentModelWriter
- Parameters:
xdoc
- the document containingtoPath
- the path of the doc to create
-
-