Package org.nuxeo.ecm.core.io.impl
Class ExportedDocumentImpl
java.lang.Object
org.nuxeo.ecm.core.io.impl.ExportedDocumentImpl
- All Implemented Interfaces:
ExportedDocument
- Direct Known Subclasses:
TypedExportedDocumentImpl
A representation for an exported document.
It contains all the information needed to restore document data and state.
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Constructor Summary
ConstructorDescriptionExportedDocumentImpl
(DocumentModel doc, boolean inlineBlobs) ExportedDocumentImpl
(DocumentModel doc, Path path, boolean inlineBlobs) -
Method Summary
Modifier and TypeMethodDescriptiongetBlobs()
org.dom4j.Document
org.dom4j.Document
getDocument
(String docId) int
The number of files describing the document.getId()
getPath()
getType()
boolean
void
void
putDocument
(String docId, org.dom4j.Document doc) protected static void
protected final void
readBlob
(org.dom4j.Element element, ComplexType ctype, Blob blob, boolean inlineBlobs) protected final void
readComplex
(org.dom4j.Element element, ComplexType ctype, Map<String, Object> map, boolean inlineBlobs) protected void
readDocument
(DocumentModel doc, boolean inlineBlobs) protected void
readDocumentSchemas
(org.dom4j.Element element, DocumentModel doc, boolean inlineBlobs) protected void
readFacets
(org.dom4j.Element element, DocumentModel doc) protected void
readLifeCycleInfo
(org.dom4j.Element element, DocumentModel doc) protected final void
protected void
readProperty
(org.dom4j.Element parent, Namespace targetNs, Field field, Object value, boolean inlineBlobs) removeBlob
(String blobId) org.dom4j.Document
removeDocument
(String docId) protected boolean
void
setDocument
(org.dom4j.Document document) void
void
-
Field Details
-
srcLocation
-
id
-
path
-
document
protected org.dom4j.Document document -
blobs
-
documents
-
-
Constructor Details
-
ExportedDocumentImpl
public ExportedDocumentImpl() -
ExportedDocumentImpl
- Parameters:
path
- the path to use for this document this is used to remove full paths- Throws:
IOException
-
ExportedDocumentImpl
- Throws:
IOException
-
ExportedDocumentImpl
- Throws:
IOException
-
-
Method Details
-
getSourceLocation
- Specified by:
getSourceLocation
in interfaceExportedDocument
- Returns:
- the source DocumentLocation
-
getPath
- Specified by:
getPath
in interfaceExportedDocument
-
setPath
- Specified by:
setPath
in interfaceExportedDocument
-
getId
- Specified by:
getId
in interfaceExportedDocument
-
setId
- Specified by:
setId
in interfaceExportedDocument
-
getType
- Specified by:
getType
in interfaceExportedDocument
-
getDocument
public org.dom4j.Document getDocument()- Specified by:
getDocument
in interfaceExportedDocument
-
setDocument
public void setDocument(org.dom4j.Document document) - Specified by:
setDocument
in interfaceExportedDocument
-
getBlobs
- Specified by:
getBlobs
in interfaceExportedDocument
-
putBlob
- Specified by:
putBlob
in interfaceExportedDocument
-
removeBlob
- Specified by:
removeBlob
in interfaceExportedDocument
-
getBlob
- Specified by:
getBlob
in interfaceExportedDocument
-
hasExternalBlobs
public boolean hasExternalBlobs()- Specified by:
hasExternalBlobs
in interfaceExportedDocument
-
getDocuments
- Specified by:
getDocuments
in interfaceExportedDocument
-
getDocument
- Specified by:
getDocument
in interfaceExportedDocument
-
putDocument
- Specified by:
putDocument
in interfaceExportedDocument
-
removeDocument
- Specified by:
removeDocument
in interfaceExportedDocument
-
getFilesCount
public int getFilesCount()Description copied from interface:ExportedDocument
The number of files describing the document.- Specified by:
getFilesCount
in interfaceExportedDocument
- Returns:
- the number of files describing the document.
-
readDocument
- Throws:
IOException
-
readLifeCycleInfo
-
readFacets
-
readDocumentSchemas
protected void readDocumentSchemas(org.dom4j.Element element, DocumentModel doc, boolean inlineBlobs) throws IOException - Throws:
IOException
-
readProperty
protected void readProperty(org.dom4j.Element parent, Namespace targetNs, Field field, Object value, boolean inlineBlobs) throws IOException - Throws:
IOException
-
requiresCDATA
-
readBlob
protected final void readBlob(org.dom4j.Element element, ComplexType ctype, Blob blob, boolean inlineBlobs) throws IOException - Throws:
IOException
-
readComplex
protected final void readComplex(org.dom4j.Element element, ComplexType ctype, Map<String, Object> map, boolean inlineBlobs) throws IOException- Throws:
IOException
-
readList
protected final void readList(org.dom4j.Element element, ListType ltype, List<Object> list, boolean inlineBlobs) throws IOException - Throws:
IOException
-
readACP
-