Class ConfluenceInfo
- java.lang.Object
-
- com.atlassian.confluence.status.service.systeminfo.ConfluenceInfo
-
public class ConfluenceInfo extends Object
Bean for holding simple non-settings information about the Confluence instance.
-
-
Constructor Summary
Constructors Constructor Description ConfluenceInfo(I18NBean i18NBean)
ConfluenceInfo(com.atlassian.util.concurrent.Supplier<ResourceBundle> resourceBundleSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseUrl()
String
getBuildNumber()
List<com.atlassian.plugin.Plugin>
getEnabledPlugins()
Returns the list of enabledPlugin
objects ordered by name, or an empty list if the currently enabled plugins could not be determined.Settings
getGlobalSettings()
String
getHome()
Date
getInstallationDate()
int
getMaxUsers()
String
getServerId()
long
getStartTime()
String
getSupportEntitlementNumber()
String
getUpTime()
String
getVersion()
boolean
isDevMode()
void
setBaseUrl(String baseUrl)
void
setBuildNumber(String buildNumber)
void
setEnabledPlugins(Collection<com.atlassian.plugin.Plugin> plugins)
void
setGlobalSettings(Settings globalSettings)
void
setHome(String home)
void
setInstallationDate(Date installationDate)
void
setMaxUsers(int maxUsers)
void
setServerId(String serverId)
void
setStartTime(long startTime)
void
setSupportEntitlementNumber(String supportEntitlementNumber)
void
setVersion(String version)
-
-
-
Constructor Detail
-
ConfluenceInfo
public ConfluenceInfo(I18NBean i18NBean)
-
ConfluenceInfo
public ConfluenceInfo(com.atlassian.util.concurrent.Supplier<ResourceBundle> resourceBundleSupplier)
-
-
Method Detail
-
getHome
public String getHome()
-
setHome
public void setHome(String home)
-
getBuildNumber
public String getBuildNumber()
-
setBuildNumber
public void setBuildNumber(String buildNumber)
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String version)
-
getStartTime
public long getStartTime()
-
setStartTime
public void setStartTime(long startTime)
-
getGlobalSettings
public Settings getGlobalSettings()
-
setGlobalSettings
public void setGlobalSettings(Settings globalSettings)
-
getBaseUrl
public String getBaseUrl()
-
setBaseUrl
public void setBaseUrl(String baseUrl)
-
getServerId
public String getServerId()
-
setServerId
public void setServerId(String serverId)
-
getUpTime
public String getUpTime()
- Returns:
- a readable String representation of system uptime based on the
startTime
property.
-
getEnabledPlugins
public List<com.atlassian.plugin.Plugin> getEnabledPlugins()
Returns the list of enabledPlugin
objects ordered by name, or an empty list if the currently enabled plugins could not be determined.
-
setEnabledPlugins
public void setEnabledPlugins(Collection<com.atlassian.plugin.Plugin> plugins)
-
isDevMode
public boolean isDevMode()
- Returns:
- true if Confluence development mode is enabled
-
getSupportEntitlementNumber
public String getSupportEntitlementNumber()
-
setSupportEntitlementNumber
public void setSupportEntitlementNumber(String supportEntitlementNumber)
-
getInstallationDate
public Date getInstallationDate()
-
setInstallationDate
public void setInstallationDate(Date installationDate)
-
getMaxUsers
public int getMaxUsers()
-
setMaxUsers
public void setMaxUsers(int maxUsers)
-
-