Class ViewSystemInfoAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.admin.actions.ViewSystemInfoAction
-
- All Implemented Interfaces:
WebInterface
,MessageHolderAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
public class ViewSystemInfoAction extends ConfluenceActionSupport
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, spacePermissionManager, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description ViewSystemInfoAction()
Keep the blank constructor so Struts can construct the actionViewSystemInfoAction(javax.servlet.ServletContext servletContext)
This constructor is used by the error page (500page.jsp) to create a new action after the ActionContext has been reset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
execute()
Map<String,Object>
getBuildStats()
Map<String,String>
getDatabaseInfo()
List<com.atlassian.plugin.Plugin>
getEnabledPlugins()
Retrieves the list of enabled plugins.Map<String,String>
getEnvironmentVariables()
MemoryInfo
getMemoryStatistics()
Map<String,String>
getModifications()
String
getPluginEnabledAsEnglish(String pluginKey)
Get English label of whether a plugin is enabled or disabled.String
getPluginEnabledAsI18nLabel(String pluginKey)
Get internationalised label of whether a plugin is enabled or disabled.Collection<com.atlassian.plugin.Plugin>
getPlugins()
Map<String,String>
getRuntimeEnvironment()
String
getServerId()
String
getServerIdOrEnglishNone()
String
getServerIdOrI18nNone()
javax.servlet.ServletContext
getServletContext()
Map<String,String>
getSummaryInfo()
String
getSupportEntitlementNumberOrEnglishNone()
Returns the license's SupportEntitlementNumber (SEN) if specified in a license, otherwise return none.String
getSupportEntitlementNumberOrI18nNone()
Returns the license's SupportEntitlementNumber (SEN) if specified in a license or the localisation of "none.word" if the license has no SEN.Map<Object,Object>
getSystemProperties()
Map
getSystemPropertiesHtml()
Map<String,String>
getUsageInfo()
boolean
isClustered()
boolean
isDailyBackupEnabled()
boolean
isPermitted()
boolean
isPluginEnabled(String pluginKey)
void
setClusterManager(ClusterManager clusterManager)
void
setGc(boolean gc)
void
setLicenseService(LicenseService licenseService)
void
setPluginMetadataManager(com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
void
setScheduledJobManager(ScheduledJobManager scheduledJobManager)
void
setSettingsManager(SettingsManager settingsManager)
void
setSidManager(ConfluenceSidManager sidManager)
void
setSystemInformationService(SystemInformationService sysInfoService)
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiContentUiSupport, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSkipAccessCheck, setSpacePermissionManager, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString
-
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
-
-
-
Constructor Detail
-
ViewSystemInfoAction
public ViewSystemInfoAction()
Keep the blank constructor so Struts can construct the action
-
ViewSystemInfoAction
public ViewSystemInfoAction(javax.servlet.ServletContext servletContext)
This constructor is used by the error page (500page.jsp) to create a new action after the ActionContext has been reset.
-
-
Method Detail
-
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted
in classConfluenceActionSupport
-
execute
public String execute() throws Exception
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
Exception
-
getServletContext
public javax.servlet.ServletContext getServletContext()
-
getMemoryStatistics
public MemoryInfo getMemoryStatistics()
-
getPlugins
public Collection<com.atlassian.plugin.Plugin> getPlugins()
-
isPluginEnabled
public boolean isPluginEnabled(String pluginKey)
-
getPluginEnabledAsEnglish
public String getPluginEnabledAsEnglish(String pluginKey)
Get English label of whether a plugin is enabled or disabled.- Returns:
- "enabled" for enabled plugins or "disabled" for disabled ones
-
getPluginEnabledAsI18nLabel
public String getPluginEnabledAsI18nLabel(String pluginKey)
Get internationalised label of whether a plugin is enabled or disabled.- Returns:
- i18n version of "enabled" for enabled plugins or "disabled" for disabled ones
-
isClustered
public boolean isClustered()
- Returns:
- true if the server is part of a cluster; otherwise false
-
isDailyBackupEnabled
public boolean isDailyBackupEnabled()
- Returns:
- true if daily backups are enabled, otherwise false
-
getServerId
public String getServerId()
- Returns:
- the server Id for this server or null if there is none set.
-
getServerIdOrEnglishNone
public String getServerIdOrEnglishNone()
- Returns:
- the server Id for this server or "none" if there is none set.
-
getServerIdOrI18nNone
public String getServerIdOrI18nNone()
- Returns:
- the server Id for this server or localised version of "none.word" if there is none set.
-
getSupportEntitlementNumberOrEnglishNone
public String getSupportEntitlementNumberOrEnglishNone()
Returns the license's SupportEntitlementNumber (SEN) if specified in a license, otherwise return none.- Returns:
- This instance's SupportEntitlementNumber (SEN) or none
-
getSupportEntitlementNumberOrI18nNone
public String getSupportEntitlementNumberOrI18nNone()
Returns the license's SupportEntitlementNumber (SEN) if specified in a license or the localisation of "none.word" if the license has no SEN.- Returns:
- This instance's SupportEntitlementNumber (SEN) or localised version of "none.word".
-
setSidManager
public void setSidManager(ConfluenceSidManager sidManager)
-
getSystemProperties
public Map<Object,Object> getSystemProperties()
- Returns:
- the System properties.
-
getSystemPropertiesHtml
public Map getSystemPropertiesHtml()
- Returns:
- break up some typically long-lined properties using spaces
-
setClusterManager
public void setClusterManager(ClusterManager clusterManager)
- Parameters:
clusterManager
- the ClusterManager used to discover whether the server is part of a cluster.
-
setSettingsManager
public void setSettingsManager(SettingsManager settingsManager)
- Overrides:
setSettingsManager
in classConfluenceActionSupport
- Parameters:
settingsManager
- the SettingsManager used to discover whether daily back ups are enabled.
-
setScheduledJobManager
public void setScheduledJobManager(ScheduledJobManager scheduledJobManager)
- Parameters:
scheduledJobManager
- ScheduledJobManager used to discover whether daily back ups are enabled.
-
getEnabledPlugins
public List<com.atlassian.plugin.Plugin> getEnabledPlugins()
Retrieves the list of enabled plugins. Returns null when there was a problem retrieving the pluginAccessor- Returns:
- List containing the enabled plugins
-
setGc
public void setGc(boolean gc)
-
setSystemInformationService
public void setSystemInformationService(SystemInformationService sysInfoService)
- Overrides:
setSystemInformationService
in classConfluenceActionSupport
-
setLicenseService
public void setLicenseService(LicenseService licenseService)
-
setPluginMetadataManager
public void setPluginMetadataManager(com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
-
-