Class CmsHistoryListUtil

java.lang.Object
org.opencms.workplace.comparison.CmsHistoryListUtil

public final class CmsHistoryListUtil extends Object
Utility methods for the history list.

  • Method Details

    • getDisplayVersion

      public static String getDisplayVersion(String version, Locale locale)
      Returns the version number from a version parameter.

      Parameters:
      version - might be negative for the online version
      locale - if the result is for display purposes, the locale has to be != null
      Returns:
      the display name
    • getHistoryLink

      public static String getHistoryLink(CmsObject cms, CmsUUID structureId, String version)
      Returns the link to an historical file.

      Parameters:
      cms - the cms context
      structureId - the structure id of the file
      version - the version number of the file
      Returns:
      the link to an historical file
    • getVersion

      public static int getVersion(String version)
      Returns the version number from a version parameter.

      Parameters:
      version - might be negative for the online version
      Returns:
      the positive value