Class CmsHistoryVersion

java.lang.Object
org.opencms.gwt.shared.CmsHistoryVersion
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsHistoryVersion extends Object implements com.google.gwt.user.client.rpc.IsSerializable
Bean representing a file version for the history dialog.

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.

  • Constructor Details

  • Method Details

    • fromString

      public static CmsHistoryVersion fromString(String s)
      Converts a string to a CmsHistoryVersion.

      This is the inverse of toString().

      Parameters:
      s - the string from which to read the history version
      Returns:
      the history version
    • getVersionNumber

      Gets the version number, or null if no version number was set.

      Returns:
      the version number
    • isOffline

      public boolean isOffline()
      Returns true if this is the offline version.

      Returns:
      true if this is the offline version
    • isOnline

      public boolean isOnline()
      Returns true if this is the online version.

      Returns:
      true if this is the online version
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: