public interface VersionHistoryDao extends ObjectDao
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_BUILD_NUMBER |
NON_CACHEABLE
Modifier and Type | Method and Description |
---|---|
void |
addBuildToHistory(int buildNumber)
The version history consists of a list of builds that Confluence has been successfully upgraded to
|
int |
getLatestBuildNumber()
Get the highest build number from the database.
|
List |
getUpgradeHistory(int start,
int maxResults)
Get the history of all the upgrades.
|
VersionHistory |
getVersionHistory(int buildNumber) |
boolean |
tagBuild(int buildNumber,
String tag)
Associates a tag with a build number
|
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
static final int UNKNOWN_BUILD_NUMBER
int getLatestBuildNumber()
If the number can not be determined (there are no versions in the database, or the version history table hasn't even been created yet) then the method will return UNKNOWN_BUILD_NUMBER. In this case, callers should assume that the database build number is identical to the configured build number.
void addBuildToHistory(int buildNumber)
buildNumber
- VersionHistory getVersionHistory(int buildNumber)
buildNumber
- boolean tagBuild(int buildNumber, String tag)
List getUpgradeHistory(int start, int maxResults)
pageSize
- start
- maxResults
- Copyright © 2003–2016 Atlassian. All rights reserved.