Package org.opencms.workplace.comparison
Class CmsHistoryListUtil
java.lang.Object
org.opencms.workplace.comparison.CmsHistoryListUtil
Utility methods for the history list.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDisplayVersion
(String version, Locale locale) Returns the version number from a version parameter.static String
getHistoryLink
(CmsObject cms, CmsUUID structureId, String version) Returns the link to an historical file.static int
getVersion
(String version) Returns the version number from a version parameter.
-
Method Details
-
getDisplayVersion
Returns the version number from a version parameter.- Parameters:
version
- might be negative for the online versionlocale
- if the result is for display purposes, the locale has to be!= null
- Returns:
- the display name
-
getHistoryLink
Returns the link to an historical file.- Parameters:
cms
- the cms contextstructureId
- the structure id of the fileversion
- the version number of the file- Returns:
- the link to an historical file
-
getVersion
Returns the version number from a version parameter.- Parameters:
version
- might be negative for the online version- Returns:
- the positive value
-