Class ViewSystemInfoAction
java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
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
,org.apache.struts2.action.Action
,org.apache.struts2.interceptor.ValidationAware
,org.apache.struts2.Validateable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
com.opensymphony.xwork2.interceptor.ValidationAware.LegacyAdapter
-
Field Summary
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, PREVIEW, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManager
Fields inherited from class org.apache.struts2.ActionSupport
container
Fields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
ConstructorsConstructorDescriptionKeep 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
Modifier and TypeMethodDescriptionexecute()
List<com.atlassian.plugin.Plugin>
Retrieves the list of enabled plugins.static long
getPercentage
(long numerator, long denom) converts a fraction into a percentagestatic long
getPercentage
(String numeratorAsString, String denomAsString) getPluginEnabledAsEnglish
(String pluginKey) Get English label of whether a plugin is enabled or disabled.getPluginEnabledAsI18nLabel
(String pluginKey) Get internationalised label of whether a plugin is enabled or disabled.Collection<com.atlassian.plugin.Plugin>
javax.servlet.ServletContext
Returns the license's SupportEntitlementNumber (SEN) if specified in a license, otherwise return none.Returns the license's SupportEntitlementNumber (SEN) if specified in a license or the localisation of "none.word" if the license has no SEN.boolean
boolean
boolean
Consulted byPermissionCheckInterceptor
.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
setSidManager
(ConfluenceSidManager sidManager) Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getCurrentRequest, getCurrentResponse, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getHelper, getI18n, getLocale, getMessageHolder, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, getWebInterfaceContext, isAnonymousUser, isEmailVisible, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSkipIsPermitted, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, shouldSkipIsPermitted
Methods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrict
Methods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validate
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
Methods inherited from interface org.apache.struts2.interceptor.ValidationAware
addActionError, addActionMessage, addFieldError, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
Constructor Details
-
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 Details
-
isPermitted
public boolean isPermitted()Description copied from class:ConfluenceActionSupport
Consulted byPermissionCheckInterceptor
.- Overrides:
isPermitted
in classConfluenceActionSupport
-
execute
- Specified by:
execute
in interfaceorg.apache.struts2.action.Action
- Overrides:
execute
in classorg.apache.struts2.ActionSupport
- Throws:
Exception
-
getServletContext
public javax.servlet.ServletContext getServletContext() -
getSummaryInfo
-
getEnvironmentVariables
-
getRuntimeEnvironment
-
getDatabaseInfo
-
getSearchInfo
-
getAttachmentStorageInfo
-
getUsageInfo
-
getModifications
-
getMemoryStatistics
-
getBuildStats
-
getPlugins
-
isPluginEnabled
-
getPluginEnabledAsEnglish
Get English label of whether a plugin is enabled or disabled.- Returns:
- "enabled" for enabled plugins or "disabled" for disabled ones
-
getPluginEnabledAsI18nLabel
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
- Returns:
- the server Id for this server or null if there is none set.
-
getServerIdOrEnglishNone
- Returns:
- the server Id for this server or "none" if there is none set.
-
getServerIdOrI18nNone
- Returns:
- the server Id for this server or localised version of "none.word" if there is none set.
-
getSupportEntitlementNumberOrEnglishNone
Returns the license's SupportEntitlementNumber (SEN) if specified in a license, otherwise return none.- Returns:
- This instance's SupportEntitlementNumber (SEN) or none
-
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
-
getSystemProperties
- Returns:
- the System properties.
-
getSystemPropertiesHtml
- Returns:
- break up some typically long-lined properties using spaces
-
setClusterManager
- Parameters:
clusterManager
- the ClusterManager used to discover whether the server is part of a cluster.
-
setScheduledJobManager
- Parameters:
scheduledJobManager
- ScheduledJobManager used to discover whether daily back ups are enabled.
-
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) -
setLicenseService
-
setPluginMetadataManager
public void setPluginMetadataManager(com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager) -
getPercentage
public static long getPercentage(long numerator, long denom) converts a fraction into a percentage- Parameters:
numerator
- the number to include in the percentagedenom
- the total number- Returns:
- the percentage as a long integer, rounded
-
getPercentage
-