public class ExportedDocumentImpl extends Object implements ExportedDocument
It contains all the information needed to restore document data and state.
| Modifier and Type | Field and Description | 
|---|---|
| protected Map<String,Blob> | blobs | 
| protected org.dom4j.Document | document | 
| protected Map<String,org.dom4j.Document> | documents | 
| protected String | id | 
| protected Path | path | 
| protected DocumentLocation | srcLocation | 
| 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 blobId) | 
| Map<String,Blob> | getBlobs() | 
| org.dom4j.Document | getDocument() | 
| org.dom4j.Document | getDocument(String docId) | 
| 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 blobId,
       Blob blob) | 
| void | putDocument(String docId,
           org.dom4j.Document doc) | 
| protected static void | readACP(org.dom4j.Element element,
       ACP acp) | 
| protected void | readBlob(org.dom4j.Element element,
        ComplexType ctype,
        Blob blob,
        boolean inlineBlobs) | 
| protected void | readComplex(org.dom4j.Element element,
           ComplexType ctype,
           Map 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 void | readList(org.dom4j.Element element,
        ListType ltype,
        List list,
        boolean inlineBlobs) | 
| protected void | readProperty(org.dom4j.Element parent,
            Namespace targetNs,
            Field field,
            Object value,
            boolean inlineBlobs) | 
| Blob | removeBlob(String blobId) | 
| org.dom4j.Document | removeDocument(String docId) | 
| void | setDocument(org.dom4j.Document document) | 
| void | setId(String id) | 
| void | setPath(Path path) | 
protected DocumentLocation srcLocation
protected org.dom4j.Document document
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 pathsIOExceptionpublic ExportedDocumentImpl(DocumentModel doc) throws IOException
IOExceptionpublic ExportedDocumentImpl(DocumentModel doc, boolean inlineBlobs) throws IOException
IOExceptionpublic DocumentLocation getSourceLocation()
getSourceLocation in interface ExportedDocumentpublic Path getPath()
getPath in interface ExportedDocumentpublic void setPath(Path path)
setPath in interface ExportedDocumentpublic String getId()
getId in interface ExportedDocumentpublic void setId(String id)
setId in interface ExportedDocumentpublic String getType()
getType in interface ExportedDocumentpublic org.dom4j.Document getDocument()
getDocument in interface ExportedDocumentpublic void setDocument(org.dom4j.Document document)
setDocument in interface ExportedDocumentpublic void putBlob(String blobId, Blob blob)
putBlob in interface ExportedDocumentpublic Blob removeBlob(String blobId)
removeBlob in interface ExportedDocumentpublic Blob getBlob(String blobId)
getBlob in interface ExportedDocumentpublic boolean hasExternalBlobs()
hasExternalBlobs in interface ExportedDocumentpublic Map<String,org.dom4j.Document> getDocuments()
getDocuments in interface ExportedDocumentpublic org.dom4j.Document getDocument(String docId)
getDocument in interface ExportedDocumentpublic void putDocument(String docId, org.dom4j.Document doc)
putDocument in interface ExportedDocumentpublic org.dom4j.Document removeDocument(String docId)
removeDocument in interface ExportedDocumentpublic int getFilesCount()
ExportedDocumentgetFilesCount in interface ExportedDocumentprotected void readDocument(DocumentModel doc, boolean inlineBlobs) throws IOException
IOExceptionprotected void readLifeCycleInfo(org.dom4j.Element element, DocumentModel doc)
protected void readFacets(org.dom4j.Element element, DocumentModel doc)
protected void readDocumentSchemas(org.dom4j.Element element, DocumentModel doc, boolean inlineBlobs) throws IOException
IOExceptionprotected void readProperty(org.dom4j.Element parent, Namespace targetNs, Field field, Object value, boolean inlineBlobs) throws IOException
IOExceptionprotected final void readBlob(org.dom4j.Element element, ComplexType ctype, Blob blob, boolean inlineBlobs) throws IOException
IOExceptionprotected final void readComplex(org.dom4j.Element element, ComplexType ctype, Map map, boolean inlineBlobs) throws IOException
IOExceptionprotected final void readList(org.dom4j.Element element, ListType ltype, List list, boolean inlineBlobs) throws IOException
IOExceptionCopyright © 2016 Nuxeo SA. All rights reserved.