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


public interface HistoryElement

CMS History Element interface. This is an element defined in the version graph. Each element is associated to a Versionned Element and has an optional previous history element. TODO : review the version management in order to support more advance features.


Method Summary
 HistoryElement getPrevious()
          Get the previous history element
 VersionnedContent getVersionnedContent()
          Gets the VersionnedContent associated to this history element
 void setPrevious(HistoryElement historyElement)
          Set the previous history element
 void setVersionnedContent(VersionnedContent versionnedContent)
          Set the versionned content into this history element
 

Method Detail

getVersionnedContent

VersionnedContent getVersionnedContent()
Gets the VersionnedContent associated to this history element

Returns:
the associated VersionnedContent

getPrevious

HistoryElement getPrevious()
Get the previous history element

Returns:
the previous object

setVersionnedContent

void setVersionnedContent(VersionnedContent versionnedContent)
Set the versionned content into this history element

Parameters:
versionnedContent - The content to set

setPrevious

void setPrevious(HistoryElement historyElement)
Set the previous history element

Parameters:
historyElement - the previous element to set into the history


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