Class ExportDocument
- java.lang.Object
-
- org.nuxeo.ecm.platform.io.operation.ExportDocument
-
public class ExportDocument extends Object
Operation that export a document.- Since:
- 7.2
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanexportAsTreeprotected booleanexportAsZipstatic StringIDprotected CoreSessionsession
-
Constructor Summary
Constructors Constructor Description ExportDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DocumentReadermakeDocumentReader(CoreSession session, DocumentModel doc, boolean exportAsTree, boolean exportAsZip)protected DocumentWritermakeDocumentWriter(OutputStream outputStream, boolean exportAsTree, boolean exportAsZip)protected DocumentPipemakePipe(boolean exportAsTree)Blobrun(DocumentModel doc)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
exportAsTree
protected boolean exportAsTree
-
exportAsZip
protected boolean exportAsZip
-
session
protected CoreSession session
-
-
Method Detail
-
run
public Blob run(DocumentModel doc) throws IOException
- Throws:
IOException
-
makePipe
protected DocumentPipe makePipe(boolean exportAsTree)
-
makeDocumentReader
protected DocumentReader makeDocumentReader(CoreSession session, DocumentModel doc, boolean exportAsTree, boolean exportAsZip)
-
makeDocumentWriter
protected DocumentWriter makeDocumentWriter(OutputStream outputStream, boolean exportAsTree, boolean exportAsZip) throws IOException
- Throws:
IOException
-
-