public class ExportedDocumentImpl extends Object implements ExportedDocument
It contains all the information needed to restore document data and state.
Constructor and Description |
---|
ExportedDocumentImpl() |
ExportedDocumentImpl(DocumentModel doc) |
ExportedDocumentImpl(DocumentModel doc,
boolean inlineBlobs) |
ExportedDocumentImpl(DocumentModel doc,
Path path,
boolean inlineBlobs) |
Modifier and Type | Method and Description |
---|---|
Blob |
getBlob(String id) |
Map<String,Blob> |
getBlobs() |
org.dom4j.Document |
getDocument() |
org.dom4j.Document |
getDocument(String id) |
Map<String,org.dom4j.Document> |
getDocuments() |
int |
getFilesCount()
The number of files describing the document.
|
String |
getId() |
Path |
getPath() |
DocumentLocation |
getSourceLocation() |
String |
getType() |
boolean |
hasExternalBlobs() |
void |
putBlob(String id,
Blob blob) |
void |
putDocument(String id,
org.dom4j.Document doc) |
Blob |
removeBlob(String id) |
org.dom4j.Document |
removeDocument(String id) |
void |
setDocument(org.dom4j.Document document) |
void |
setId(String id) |
void |
setPath(Path path) |
public ExportedDocumentImpl()
public ExportedDocumentImpl(DocumentModel doc, Path path, boolean inlineBlobs) throws IOException
doc
- path
- the path to use for this document this is used to remove full pathsIOException
public ExportedDocumentImpl(DocumentModel doc) throws IOException
IOException
public ExportedDocumentImpl(DocumentModel doc, boolean inlineBlobs) throws IOException
IOException
public DocumentLocation getSourceLocation()
getSourceLocation
in interface ExportedDocument
public Path getPath()
getPath
in interface ExportedDocument
public void setPath(Path path)
setPath
in interface ExportedDocument
public String getId()
getId
in interface ExportedDocument
public void setId(String id)
setId
in interface ExportedDocument
public String getType()
getType
in interface ExportedDocument
public org.dom4j.Document getDocument()
getDocument
in interface ExportedDocument
public void setDocument(org.dom4j.Document document)
setDocument
in interface ExportedDocument
public Map<String,Blob> getBlobs()
getBlobs
in interface ExportedDocument
public void putBlob(String id, Blob blob)
putBlob
in interface ExportedDocument
public Blob removeBlob(String id)
removeBlob
in interface ExportedDocument
public Blob getBlob(String id)
getBlob
in interface ExportedDocument
public boolean hasExternalBlobs()
hasExternalBlobs
in interface ExportedDocument
public Map<String,org.dom4j.Document> getDocuments()
getDocuments
in interface ExportedDocument
public org.dom4j.Document getDocument(String id)
getDocument
in interface ExportedDocument
public void putDocument(String id, org.dom4j.Document doc)
putDocument
in interface ExportedDocument
public org.dom4j.Document removeDocument(String id)
removeDocument
in interface ExportedDocument
public int getFilesCount()
ExportedDocument
getFilesCount
in interface ExportedDocument
Copyright © 2015 Nuxeo SA. All rights reserved.