org.apache.portals.graffito.model.core.impl
Class VersionnedContentImpl

java.lang.Object
  extended by org.apache.portals.graffito.model.core.impl.CmsObjectImpl
      extended by org.apache.portals.graffito.model.core.impl.ContentImpl
          extended by org.apache.portals.graffito.model.core.impl.VersionnedContentImpl
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
Direct Known Subclasses:
DocumentImpl

public class VersionnedContentImpl
extends ContentImpl
implements org.apache.portals.graffito.model.core.VersionnedContent, java.io.Serializable

CmsObjectImpl

Author:
Christophe Lombart
See Also:
Serialized Form

Field Summary
protected  boolean isLastVersion
           
protected  java.lang.String versionNumber
           
 
Fields inherited from class org.apache.portals.graffito.model.core.impl.CmsObjectImpl
creationDate, lastModified, name, objectId, ojbConcreteClass, parentFolder, parentId, properties, uri
 
Fields inherited from interface org.apache.portals.graffito.model.core.CmsObject
URI_SEPARATOR
 
Constructor Summary
VersionnedContentImpl()
          Constructor
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(java.lang.Object o)
          Compare 2 VersionContentImpl in function of their version number.
 java.lang.String getVersionNumber()
           
 boolean isLastVersion()
           
 void setLastVersion(boolean isLastVersion)
           
 void setVersionNumber(java.lang.String versionNumber)
           
 
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.CmsObject
getCreationDate, getLastModified, getName, getParentFolder, getPath, getProperties, getProperty, getUri, setCreationDate, setLastModified, setName, setParentFolder, setProperties, setProperty, setUri
 

Field Detail

isLastVersion

protected boolean isLastVersion

versionNumber

protected java.lang.String versionNumber
Constructor Detail

VersionnedContentImpl

public VersionnedContentImpl()
Constructor

Method Detail

isLastVersion

public boolean isLastVersion()
Specified by:
isLastVersion in interface org.apache.portals.graffito.model.core.VersionnedContent
See Also:
VersionnedContent.isLastVersion()

setLastVersion

public void setLastVersion(boolean isLastVersion)
Specified by:
setLastVersion in interface org.apache.portals.graffito.model.core.VersionnedContent
See Also:
VersionnedContent.setLastVersion(boolean)

setVersionNumber

public void setVersionNumber(java.lang.String versionNumber)
Specified by:
setVersionNumber in interface org.apache.portals.graffito.model.core.VersionnedContent
See Also:
VersionnedContent.setVersionNumber(java.lang.String)

getVersionNumber

public java.lang.String getVersionNumber()
Specified by:
getVersionNumber in interface org.apache.portals.graffito.model.core.VersionnedContent
See Also:
VersionnedContent.getVersionNumber()

compareTo

public int compareTo(java.lang.Object o)
Compare 2 VersionContentImpl in function of their version number. The version number structure is a point separated digit.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - The object to compare
Returns:
-1,0 or 1 for less than, equals, greater than

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface org.apache.portals.graffito.model.core.VersionnedContent
Overrides:
clone in class java.lang.Object
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.