org.apache.portals.graffito.model.core
Interface VersionnedContent

All Superinterfaces:
java.lang.Cloneable, CmsObject, java.lang.Comparable, Content
All Known Subinterfaces:
Document

public interface VersionnedContent
extends Content, java.lang.Comparable, java.lang.Cloneable

CMS Content interface. Ancestor class for all kind of content (document/binary, articles, news, ...)

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.Object clone()
           
 java.lang.String getVersionNumber()
          Gets the version number
 boolean isLastVersion()
          Check if the current document is the last version
 void setLastVersion(boolean isLastVersion)
          Makes the current document the last version for the associated uri
 void setVersionNumber(java.lang.String versionNumber)
          Sets the version number
 
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

getVersionNumber

java.lang.String getVersionNumber()
Gets the version number

Returns:
version number is a string composed of point separated digit

isLastVersion

boolean isLastVersion()
Check if the current document is the last version

Returns:
the last version attribute value

setLastVersion

void setLastVersion(boolean isLastVersion)
Makes the current document the last version for the associated uri

Parameters:
isLastVersion -

setVersionNumber

void setVersionNumber(java.lang.String versionNumber)
Sets the version number

Parameters:
versionNumber - version number is a string composed of point separated digit

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns:
the clonned object
Throws:
java.lang.CloneNotSupportedException - when it is not possible to clone the object


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