public class CmsHistoryVersion extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
Since the history dialog can also display offline resources, or resources read from the Online project without a historical version id, this class is needed rather than a single integer to represent a version.
| Modifier and Type | Class and Description |
|---|---|
static class |
CmsHistoryVersion.OfflineOnline
Enum for distinguishing between offline and online project.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CmsHistoryVersion()
Default constructor for serialization.
|
|
CmsHistoryVersion(java.lang.Integer versionNumber,
CmsHistoryVersion.OfflineOnline offlineOnline)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static CmsHistoryVersion |
fromString(java.lang.String s)
Converts a string to a CmsHistoryVersion.
|
java.lang.Integer |
getVersionNumber()
Gets the version number, or null if no version number was set.
|
boolean |
isOffline()
Returns true if this is the offline version.
|
boolean |
isOnline()
Returns true if this is the online version.
|
java.lang.String |
toString() |
public CmsHistoryVersion(java.lang.Integer versionNumber, CmsHistoryVersion.OfflineOnline offlineOnline)
versionNumber - the version numberofflineOnline - the offline/online stateprotected CmsHistoryVersion()
public static CmsHistoryVersion fromString(java.lang.String s)
This is the inverse of toString().
s - the string from which to read the history versionpublic java.lang.Integer getVersionNumber()
public boolean isOffline()
public boolean isOnline()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()