org.apache.portals.graffito.model.dm.impl
Class DocumentImpl
java.lang.Object
org.apache.portals.graffito.model.core.impl.CmsObjectImpl
org.apache.portals.graffito.model.core.impl.ContentImpl
org.apache.portals.graffito.model.core.impl.VersionnedContentImpl
org.apache.portals.graffito.model.dm.impl.DocumentImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, org.apache.portals.graffito.model.core.CmsObject, org.apache.portals.graffito.model.core.Content, org.apache.portals.graffito.model.core.VersionnedContent, org.apache.portals.graffito.model.dm.Document
public class DocumentImpl
- extends VersionnedContentImpl
- implements org.apache.portals.graffito.model.dm.Document, java.io.Serializable
CMS VersionnedDocument implementation.
- Author:
- Christophe Lombart
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
contentType
|
protected org.apache.portals.graffito.model.dm.DocumentStream |
documentStream
|
protected java.lang.Long |
documentStreamId
|
protected static org.apache.commons.logging.Log |
log
|
protected long |
size
|
Fields inherited from interface org.apache.portals.graffito.model.core.CmsObject |
URI_SEPARATOR |
Methods inherited from class org.apache.portals.graffito.model.core.impl.CmsObjectImpl |
equals, getCreationDate, getLastModified, getName, getObjectId, getParentFolder, getParentId, getPath, getProperties, getProperty, getUri, setCreationDate, setLastModified, setName, setObjectId, setParentFolder, setParentId, setProperties, setProperty, setUri, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.portals.graffito.model.core.VersionnedContent |
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 |
log
protected static final org.apache.commons.logging.Log log
size
protected long size
contentType
protected java.lang.String contentType
documentStreamId
protected java.lang.Long documentStreamId
documentStream
protected org.apache.portals.graffito.model.dm.DocumentStream documentStream
DocumentImpl
public DocumentImpl()
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interface org.apache.portals.graffito.model.dm.Document
- See Also:
Document.getContentType()
setContentType
public void setContentType(java.lang.String contentType)
- Specified by:
setContentType
in interface org.apache.portals.graffito.model.dm.Document
- See Also:
Document.setContentType(java.lang.String)
getSize
public long getSize()
- Specified by:
getSize
in interface org.apache.portals.graffito.model.dm.Document
- See Also:
Document.getSize()
setSize
public void setSize(long size)
- Specified by:
setSize
in interface org.apache.portals.graffito.model.dm.Document
- See Also:
Document.setSize(long)
getDocumentStream
public org.apache.portals.graffito.model.dm.DocumentStream getDocumentStream()
- Specified by:
getDocumentStream
in interface org.apache.portals.graffito.model.dm.Document
- See Also:
Document.getDocumentStream()
setDocumentStream
public void setDocumentStream(org.apache.portals.graffito.model.dm.DocumentStream documentStream)
- Specified by:
setDocumentStream
in interface org.apache.portals.graffito.model.dm.Document
- See Also:
Document.setDocumentStream(org.apache.portals.graffito.model.dm.DocumentStream)
getDocumentStreamId
public java.lang.Long getDocumentStreamId()
- Returns:
- the documentStreamId
setDocumentStreamId
public void setDocumentStreamId(java.lang.Long documentStreamId)
- Parameters:
documentStreamId
- the document stream id to set
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- This method can be used to duplicate a document in order to create a new document version.
Attributes associated to the version are not clones (isLastVersion & versionNumber).
Thoses attributes are initialised by the version service
- Specified by:
clone
in interface org.apache.portals.graffito.model.core.VersionnedContent
- Overrides:
clone
in class VersionnedContentImpl
- Returns:
- The cloned object
- Throws:
java.lang.CloneNotSupportedException
- when it is not possible to clone the document
Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.