it.sistematica.isharedoc.opencmis.indatabase.storedobj.api
Interface Content

All Known Subinterfaces:
Document, DocumentVersion
All Known Implementing Classes:
DocumentVersionImpl, VersionedDocumentImpl

public interface Content


Method Summary
 void appendContent(org.apache.chemistry.opencmis.commons.data.ContentStream content)
          Append content to an existing content stream.
 org.apache.chemistry.opencmis.commons.data.ContentStream getContent(long offset, long length)
          retrieve the content of a document
 boolean hasContent()
          return true if this object has content or false if there is no content attached.
 void setContent(org.apache.chemistry.opencmis.commons.data.ContentStream content, boolean mustPersist)
          Assign content to a document.
 

Method Detail

hasContent

boolean hasContent()
return true if this object has content or false if there is no content attached.

Returns:

getContent

org.apache.chemistry.opencmis.commons.data.ContentStream getContent(long offset,
                                                                    long length)
retrieve the content of a document

Returns:
object containing mime-type, length and a stream with content

setContent

void setContent(org.apache.chemistry.opencmis.commons.data.ContentStream content,
                boolean mustPersist)
Assign content to a document. Existing content gets overwritten. The document is not yet persisted in the new state.

Parameters:
content - content to be assigned to the document.
mustPersist - persist document (set to false if content is set during creation of a document)

appendContent

void appendContent(org.apache.chemistry.opencmis.commons.data.ContentStream content)
Append content to an existing content stream. The document is persisted in the new state.

Parameters:
content - content to be assigned to the document.