com.atlassian.confluence.core
Class AbstractVersionedEntityObject

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.confluence.core.ConfluenceEntityObject
          extended by com.atlassian.confluence.core.AbstractVersionedEntityObject
All Implemented Interfaces:
Versioned, Serializable, Cloneable
Direct Known Subclasses:
Attachment, ContentEntityObject, PageTemplate

public abstract class AbstractVersionedEntityObject
extends ConfluenceEntityObject
implements Versioned, Cloneable

See Also:
Serialized Form

Constructor Summary
AbstractVersionedEntityObject()
           
 
Method Summary
 void convertToHistoricalVersion()
           
 Versioned getLatestVersion()
          Get the "original version" of this versioned object.
 ConfluenceEntityObject getOriginalVersion()
          get the latest version of the ConfluenceEntityObject
 int getVersion()
           
 boolean isLatestVersion()
           
 boolean isNew()
           
 void setOriginalVersion(Versioned originalVersion)
           
 void setVersion(int version)
           
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreatorName, getLastModifierName, isPersistent, setCreatorName, setLastModifierName
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractVersionedEntityObject

public AbstractVersionedEntityObject()
Method Detail

getVersion

public int getVersion()
Specified by:
getVersion in interface Versioned

setVersion

public void setVersion(int version)
Specified by:
setVersion in interface Versioned

isNew

public boolean isNew()
Specified by:
isNew in interface Versioned

getOriginalVersion

public ConfluenceEntityObject getOriginalVersion()
get the latest version of the ConfluenceEntityObject

Specified by:
getOriginalVersion in interface Versioned
Returns:
ConfluenceEntityObject

setOriginalVersion

public void setOriginalVersion(Versioned originalVersion)
Specified by:
setOriginalVersion in interface Versioned

getLatestVersion

public Versioned getLatestVersion()
Description copied from interface: Versioned
Get the "original version" of this versioned object. If this object is the original version, return this object.

Specified by:
getLatestVersion in interface Versioned

convertToHistoricalVersion

public void convertToHistoricalVersion()
Specified by:
convertToHistoricalVersion in interface Versioned

isLatestVersion

public boolean isLatestVersion()
Specified by:
isLatestVersion in interface Versioned


Confluence is developed by Atlassian.