Class ExtensibleDocumentTreeReader
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
org.nuxeo.ecm.core.io.impl.plugins.ExtensibleDocumentTreeReader
- All Implemented Interfaces:
DocumentReader
Compared to the default
DocumentReader implementation this one does handle versions and allows to plug
ExportExtension- Since:
- 7.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ExportExtension> protected DocumentTreeIteratorprotected intprotected List<DocumentModel> static final StringFields inherited from class org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
inlineBlobs, session -
Constructor Summary
ConstructorsConstructorDescriptionExtensibleDocumentTreeReader(CoreSession session, DocumentModel root) ExtensibleDocumentTreeReader(CoreSession session, DocumentModel root, boolean excludeRoot) ExtensibleDocumentTreeReader(CoreSession session, DocumentRef root) -
Method Summary
Methods inherited from class org.nuxeo.ecm.core.io.impl.plugins.DocumentModelReader
getInlineBlobs, setInlineBlobsMethods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
read
-
Field Details
-
iterator
-
pathSegmentsToRemove
protected int pathSegmentsToRemove -
pendingVersions
-
extensions
-
VERSION_VIRTUAL_PATH_SEGMENT
- See Also:
-
-
Constructor Details
-
ExtensibleDocumentTreeReader
-
ExtensibleDocumentTreeReader
-
ExtensibleDocumentTreeReader
-
-
Method Details
-
registerExtension
-
close
public void close()Description copied from interface:DocumentReaderCloses the reader.- Specified by:
closein interfaceDocumentReader- Overrides:
closein classDocumentModelReader
-
read
Description copied from interface:DocumentReaderReads a single document.- Specified by:
readin interfaceDocumentReader- Specified by:
readin classDocumentModelReader- Returns:
- the document read or null if there are no more documents to read
- Throws:
IOException
-