org.xwiki.gwt.wysiwyg.client.plugin.sync
Class SyncStatus

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.sync.SyncStatus

public class SyncStatus
extends java.lang.Object

The synchronization status.

Version:
$Id: SyncStatus.java 26786 2010-02-07 16:46:17Z mflorea $

Field Summary
protected  int currentVersionNumber
          The current version number.
protected  java.lang.String pageName
          The name of the edited page.
protected  java.util.List<java.lang.String> versions
          The list of versions.
 
Constructor Summary
SyncStatus(java.lang.String pageName, java.lang.String version, java.lang.String content)
          Creates a new synchronization status.
 
Method Summary
 void addVersion(java.lang.String newContent)
          Adds a new version.
 java.lang.String getCurrentVersion()
           
 int getCurrentVersionNumber()
           
 java.lang.String getLastXWikiContent()
           
 java.lang.String getLastXWikiVersion()
           
 java.lang.String getVersion(int version)
           
 java.util.List<java.lang.String> getVersions()
           
 void setLastXWikiContent(java.lang.String version, java.lang.String content)
          Updates the state of the edited page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentVersionNumber

protected int currentVersionNumber
The current version number.


versions

protected java.util.List<java.lang.String> versions
The list of versions.


pageName

protected java.lang.String pageName
The name of the edited page.

Constructor Detail

SyncStatus

public SyncStatus(java.lang.String pageName,
                  java.lang.String version,
                  java.lang.String content)
Creates a new synchronization status.

Parameters:
pageName - the name of the edited page
version - the version of the edited page
content - the content of the edited page
Method Detail

getVersions

public java.util.List<java.lang.String> getVersions()
Returns:
versions

getCurrentVersionNumber

public int getCurrentVersionNumber()
Returns:
currentVersionNumber

getVersion

public java.lang.String getVersion(int version)
Parameters:
version - version index
Returns:
the content in the specified version

addVersion

public void addVersion(java.lang.String newContent)
Adds a new version.

Parameters:
newContent - the content for the new version

getCurrentVersion

public java.lang.String getCurrentVersion()
Returns:
the content for the current version

getLastXWikiVersion

public java.lang.String getLastXWikiVersion()
Returns:
lastXWikiVersion

getLastXWikiContent

public java.lang.String getLastXWikiContent()
Returns:
lastXWikiContent

setLastXWikiContent

public void setLastXWikiContent(java.lang.String version,
                                java.lang.String content)
Updates the state of the edited page.

Parameters:
version - the current version of the edited page
content - the current content of the edited page


Copyright © 2004-2010 XWiki. All Rights Reserved.