Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.io.impl
Class ExportedDocumentImpl

java.lang.Object
  extended by org.nuxeo.ecm.core.io.impl.ExportedDocumentImpl
All Implemented Interfaces:
ExportedDocument

public class ExportedDocumentImpl
extends Object
implements ExportedDocument

A representation for an exported document.

It contains all the information needed to restore document data and state.

Author:
Bogdan Stefanescu

Constructor Summary
ExportedDocumentImpl()
           
ExportedDocumentImpl(DocumentModel doc)
           
ExportedDocumentImpl(DocumentModel doc, boolean inlineBlobs)
           
ExportedDocumentImpl(DocumentModel doc, Path path, boolean inlineBlobs)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportedDocumentImpl

public ExportedDocumentImpl()

ExportedDocumentImpl

public ExportedDocumentImpl(DocumentModel doc,
                            Path path,
                            boolean inlineBlobs)
                     throws IOException
Parameters:
doc -
path - the path to use for this document this is used to remove full paths
Throws:
IOException

ExportedDocumentImpl

public ExportedDocumentImpl(DocumentModel doc)
                     throws IOException
Throws:
IOException

ExportedDocumentImpl

public ExportedDocumentImpl(DocumentModel doc,
                            boolean inlineBlobs)
                     throws IOException
Throws:
IOException
Method Detail

getSourceLocation

public DocumentLocation getSourceLocation()
Specified by:
getSourceLocation in interface ExportedDocument
Returns:
the source DocumentLocation

getPath

public Path getPath()
Specified by:
getPath in interface ExportedDocument

setPath

public void setPath(Path path)
Specified by:
setPath in interface ExportedDocument

getId

public String getId()
Specified by:
getId in interface ExportedDocument

setId

public void setId(String id)
Specified by:
setId in interface ExportedDocument

getType

public String getType()
Specified by:
getType in interface ExportedDocument

getDocument

public org.dom4j.Document getDocument()
Specified by:
getDocument in interface ExportedDocument

setDocument

public void setDocument(org.dom4j.Document document)
Specified by:
setDocument in interface ExportedDocument

getBlobs

public Map<String,Blob> getBlobs()
Specified by:
getBlobs in interface ExportedDocument

putBlob

public void putBlob(String id,
                    Blob blob)
Specified by:
putBlob in interface ExportedDocument

removeBlob

public Blob removeBlob(String id)
Specified by:
removeBlob in interface ExportedDocument

getBlob

public Blob getBlob(String id)
Specified by:
getBlob in interface ExportedDocument

hasExternalBlobs

public boolean hasExternalBlobs()
Specified by:
hasExternalBlobs in interface ExportedDocument

getDocuments

public Map<String,org.dom4j.Document> getDocuments()
Specified by:
getDocuments in interface ExportedDocument

getDocument

public org.dom4j.Document getDocument(String id)
Specified by:
getDocument in interface ExportedDocument

putDocument

public void putDocument(String id,
                        org.dom4j.Document doc)
Specified by:
putDocument in interface ExportedDocument

removeDocument

public org.dom4j.Document removeDocument(String id)
Specified by:
removeDocument in interface ExportedDocument

getFilesCount

public int getFilesCount()
Description copied from interface: ExportedDocument
The number of files describing the document.

Specified by:
getFilesCount in interface ExportedDocument
Returns:
the number of files describing the document.

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.