org.apache.portals.graffito.model.dm
Interface Document

All Superinterfaces:
java.lang.Cloneable, CmsObject, java.lang.Comparable, Content, VersionnedContent

public interface Document
extends VersionnedContent

CMS Document interface. This interface is used to any kind of binary content (pdf, Ms Office, Open office, ...).

Version:
$Id: Document.java,v 1.1 2004/12/22 21:16:11 christophe Exp $
Author:
Christophe Lombart

Field Summary
 
Fields inherited from interface org.apache.portals.graffito.model.core.CmsObject
URI_SEPARATOR
 
Method Summary
 java.lang.String getContentType()
          Get the content type of this document
 DocumentStream getDocumentStream()
          Get the document stream
 long getSize()
          Get the size of the document
 void setContentType(java.lang.String type)
          Set the content type for this document
 void setDocumentStream(DocumentStream documentStream)
          Set the document stream
 void setSize(long size)
          Set the size of the document
 
Methods inherited from interface org.apache.portals.graffito.model.core.VersionnedContent
clone, getVersionNumber, isLastVersion, setLastVersion, setVersionNumber
 
Methods inherited from interface org.apache.portals.graffito.model.core.CmsObject
getCreationDate, getLastModified, getName, getParentFolder, getPath, getProperties, getProperty, getUri, setCreationDate, setLastModified, setName, setParentFolder, setProperties, setProperty, setUri
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getContentType

java.lang.String getContentType()
Get the content type of this document

Returns:
String representation of the document's type

setContentType

void setContentType(java.lang.String type)
Set the content type for this document

Parameters:
type - the new document type

getSize

long getSize()
Get the size of the document

Returns:
long

setSize

void setSize(long size)
Set the size of the document

Parameters:
size - the size to set

getDocumentStream

DocumentStream getDocumentStream()
Get the document stream

Returns:
the document stream

setDocumentStream

void setDocumentStream(DocumentStream documentStream)
Set the document stream

Parameters:
documentStream - the document stream to set


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.