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 StringgetDisplayVersion(String version, Locale locale) Returns the version number from a version parameter.static StringgetHistoryLink(CmsObject cms, CmsUUID structureId, String version) Returns the link to an historical file.static intgetVersion(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
-