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 java.lang.Object
- implements ExportedDocument
A representation for an exported document.
It contains all the information needed to restore document data and state.
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExportedDocumentImpl
public ExportedDocumentImpl()
ExportedDocumentImpl
public ExportedDocumentImpl(DocumentModel doc,
Path path,
boolean inlineBlobs)
throws java.io.IOException
- Parameters:
doc
- path
- the path to use for this document this is used to remove full
paths
- Throws:
java.io.IOException
ExportedDocumentImpl
public ExportedDocumentImpl(DocumentModel doc)
throws java.io.IOException
- Throws:
java.io.IOException
ExportedDocumentImpl
public ExportedDocumentImpl(DocumentModel doc,
boolean inlineBlobs)
throws java.io.IOException
- Throws:
java.io.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 java.lang.String getId()
- Specified by:
getId
in interface ExportedDocument
setId
public void setId(java.lang.String id)
- Specified by:
setId
in interface ExportedDocument
getType
public java.lang.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 java.util.Map<java.lang.String,Blob> getBlobs()
- Specified by:
getBlobs
in interface ExportedDocument
putBlob
public void putBlob(java.lang.String id,
Blob blob)
- Specified by:
putBlob
in interface ExportedDocument
removeBlob
public Blob removeBlob(java.lang.String id)
- Specified by:
removeBlob
in interface ExportedDocument
getBlob
public Blob getBlob(java.lang.String id)
- Specified by:
getBlob
in interface ExportedDocument
hasExternalBlobs
public boolean hasExternalBlobs()
- Specified by:
hasExternalBlobs
in interface ExportedDocument
getDocuments
public java.util.Map<java.lang.String,org.dom4j.Document> getDocuments()
- Specified by:
getDocuments
in interface ExportedDocument
getDocument
public org.dom4j.Document getDocument(java.lang.String id)
- Specified by:
getDocument
in interface ExportedDocument
putDocument
public void putDocument(java.lang.String id,
org.dom4j.Document doc)
- Specified by:
putDocument
in interface ExportedDocument
removeDocument
public org.dom4j.Document removeDocument(java.lang.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 © 2010 Nuxeo SAS. All Rights Reserved.