public class ExportDocument extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
exportAsTree |
protected boolean |
exportAsZip |
static String |
ID |
protected CoreSession |
session |
Constructor and Description |
---|
ExportDocument() |
Modifier and Type | Method and Description |
---|---|
protected DocumentReader |
makeDocumentReader(CoreSession session,
DocumentModel doc,
boolean exportAsTree,
boolean exportAsZip) |
protected DocumentWriter |
makeDocumentWriter(OutputStream outputStream,
boolean exportAsTree,
boolean exportAsZip) |
protected DocumentPipe |
makePipe(boolean exportAsTree) |
Blob |
run(DocumentModel doc) |
public static final String ID
protected boolean exportAsTree
protected boolean exportAsZip
protected CoreSession session
public ExportDocument()
public Blob run(DocumentModel doc) throws IOException
IOException
protected DocumentPipe makePipe(boolean exportAsTree)
protected DocumentReader makeDocumentReader(CoreSession session, DocumentModel doc, boolean exportAsTree, boolean exportAsZip)
protected DocumentWriter makeDocumentWriter(OutputStream outputStream, boolean exportAsTree, boolean exportAsZip) throws IOException
IOException
Copyright © 2018 Nuxeo. All rights reserved.