public final class CmsHistoryListUtil extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDisplayVersion(java.lang.String version,
java.util.Locale locale)
Returns the version number from a version parameter.
|
static java.lang.String |
getHistoryLink(CmsObject cms,
CmsUUID structureId,
java.lang.String version)
Returns the link to an historical file.
|
static int |
getVersion(java.lang.String version)
Returns the version number from a version parameter.
|
public static java.lang.String getDisplayVersion(java.lang.String version, java.util.Locale locale)
version - might be negative for the online versionlocale - if the result is for display purposes, the locale has to be != nullpublic static java.lang.String getHistoryLink(CmsObject cms, CmsUUID structureId, java.lang.String version)
cms - the cms contextstructureId - the structure id of the fileversion - the version number of the filepublic static int getVersion(java.lang.String version)
version - might be negative for the online version