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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExportedDocumentImpl(DocumentModel doc, boolean inlineBlobs) ExportedDocumentImpl(DocumentModel doc, Path path, boolean inlineBlobs) -
Method Summary
Modifier and TypeMethodDescriptiongetBlobs()org.dom4j.Documentorg.dom4j.DocumentgetDocument(String docId) intThe number of files describing the document.getId()getPath()getType()booleanvoidvoidputDocument(String docId, org.dom4j.Document doc) protected static voidprotected final voidreadBlob(org.dom4j.Element element, ComplexType ctype, Blob blob, boolean inlineBlobs) protected final voidreadComplex(org.dom4j.Element element, ComplexType ctype, Map<String, Object> map, boolean inlineBlobs) protected voidreadDocument(DocumentModel doc, boolean inlineBlobs) protected voidreadDocumentSchemas(org.dom4j.Element element, DocumentModel doc, boolean inlineBlobs) protected voidreadFacets(org.dom4j.Element element, DocumentModel doc) protected voidreadLifeCycleInfo(org.dom4j.Element element, DocumentModel doc) protected final voidprotected voidreadProperty(org.dom4j.Element parent, Namespace targetNs, Field field, Object value, boolean inlineBlobs) removeBlob(String blobId) org.dom4j.DocumentremoveDocument(String docId) protected booleanvoidsetDocument(org.dom4j.Document document) voidvoid
-
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:
getSourceLocationin interfaceExportedDocument- Returns:
- the source DocumentLocation
-
getPath
- Specified by:
getPathin interfaceExportedDocument
-
setPath
- Specified by:
setPathin interfaceExportedDocument
-
getId
- Specified by:
getIdin interfaceExportedDocument
-
setId
- Specified by:
setIdin interfaceExportedDocument
-
getType
- Specified by:
getTypein interfaceExportedDocument
-
getDocument
public org.dom4j.Document getDocument()- Specified by:
getDocumentin interfaceExportedDocument
-
setDocument
public void setDocument(org.dom4j.Document document) - Specified by:
setDocumentin interfaceExportedDocument
-
getBlobs
- Specified by:
getBlobsin interfaceExportedDocument
-
putBlob
- Specified by:
putBlobin interfaceExportedDocument
-
removeBlob
- Specified by:
removeBlobin interfaceExportedDocument
-
getBlob
- Specified by:
getBlobin interfaceExportedDocument
-
hasExternalBlobs
public boolean hasExternalBlobs()- Specified by:
hasExternalBlobsin interfaceExportedDocument
-
getDocuments
- Specified by:
getDocumentsin interfaceExportedDocument
-
getDocument
- Specified by:
getDocumentin interfaceExportedDocument
-
putDocument
- Specified by:
putDocumentin interfaceExportedDocument
-
removeDocument
- Specified by:
removeDocumentin interfaceExportedDocument
-
getFilesCount
public int getFilesCount()Description copied from interface:ExportedDocumentThe number of files describing the document.- Specified by:
getFilesCountin 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
-