com.atlassian.confluence.admin.actions
Class ViewSystemInfoAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.admin.actions.ViewSystemInfoAction
- All Implemented Interfaces:
- WebInterface, Action, LocaleProvider, TextProvider, Validateable, ValidationAware, Serializable
- Direct Known Subclasses:
- CreateSupportZipAction, RaiseSupportRequestAction
public class ViewSystemInfoAction
- extends ConfluenceActionSupport
- See Also:
- Serialized Form
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager |
Constructor Summary |
ViewSystemInfoAction()
Keep the blank constructor so WebWork can construct the action |
ViewSystemInfoAction(ServletContext servletContext)
This constructor is used by the error page (500page.jsp) to create a new action after the ActionContext has been
reset. |
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
addActionError, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancelResult, getContext, getDateFormatter, getDefaultResourceBundle, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setUserAccessor, setWebInterfaceManager |
Methods inherited from class com.opensymphony.xwork.ActionSupport |
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewSystemInfoAction
public ViewSystemInfoAction()
- Keep the blank constructor so WebWork can construct the action
ViewSystemInfoAction
public ViewSystemInfoAction(ServletContext servletContext)
- This constructor is used by the error page (500page.jsp) to create a new action after the ActionContext has been
reset.
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted
in class ConfluenceActionSupport
execute
public String execute()
throws Exception
- Specified by:
execute
in interface Action
- Overrides:
execute
in class ActionSupport
- Throws:
Exception
getServletContext
public ServletContext getServletContext()
getSummaryInfo
public Map<String,String> getSummaryInfo()
getRuntimeEnvironment
public Map<String,String> getRuntimeEnvironment()
getDatabaseInfo
public Map<String,String> getDatabaseInfo()
getUsageInfo
public Map<String,String> getUsageInfo()
getModifications
public Map<String,String> getModifications()
getMemoryStatistics
public MemoryInfo getMemoryStatistics()
getBuildStats
public Map<String,Object> getBuildStats()
getPlugins
public Collection 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
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 V2 license
or "none" if using a V1 license or if the V2 license has no SEN.
- Returns:
- This instance's SupportEntitlementNumber (SEN) or "none"
getSupportEntitlementNumberOrI18nNone
public String getSupportEntitlementNumberOrI18nNone()
- Returns the license's SupportEntitlementNumber (SEN) if specified in a V2 license
or the localisation of "none.word" if using a V1 license or if the V2 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.
getEnabledPlugins
public List<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 class ConfluenceActionSupport