org.nuxeo.ecm.core.io.impl
Class ExportedDocumentImpl
java.lang.Object
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
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
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.
Copyright © 2011 Nuxeo SAS. All Rights Reserved.