com.atlassian.confluence.admin.actions
Class ViewSystemInfoAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.admin.actions.ViewSystemInfoAction
All Implemented Interfaces:
WebInterface, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.Serializable
Direct Known Subclasses:
CreateSupportZipAction, RaiseSupportRequestAction

public class ViewSystemInfoAction
extends ConfluenceActionSupport

See Also:
Serialized Form

Field Summary
 
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
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ViewSystemInfoAction()
          Keep the blank constructor so WebWork can construct the action
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 Summary
 java.lang.String execute()
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildStats()
           
 java.util.Map<java.lang.String,java.lang.String> getDatabaseInfo()
           
 java.util.List<com.atlassian.plugin.Plugin> getEnabledPlugins()
          Retrieves the list of enabled plugins.
 MemoryInfo getMemoryStatistics()
           
 java.util.Map<java.lang.String,java.lang.String> getModifications()
           
 java.lang.String getPluginEnabledAsEnglish(java.lang.String pluginKey)
          Get English label of whether a plugin is enabled or disabled.
 java.lang.String getPluginEnabledAsI18nLabel(java.lang.String pluginKey)
          Get internationalised label of whether a plugin is enabled or disabled.
 java.util.Collection getPlugins()
           
 java.util.Map<java.lang.String,java.lang.String> getRuntimeEnvironment()
           
 java.lang.String getServerId()
           
 java.lang.String getServerIdOrEnglishNone()
           
 java.lang.String getServerIdOrI18nNone()
           
 javax.servlet.ServletContext getServletContext()
           
 java.util.Map<java.lang.String,java.lang.String> getSummaryInfo()
           
 java.lang.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.
 java.lang.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.
 java.util.Map<java.lang.Object,java.lang.Object> getSystemProperties()
           
 java.util.Map getSystemPropertiesHtml()
           
 java.util.Map<java.lang.String,java.lang.String> getUsageInfo()
           
 boolean isClustered()
           
 boolean isPermitted()
           
 boolean isPluginEnabled(java.lang.String pluginKey)
           
 void setClusterManager(ClusterManager clusterManager)
           
 void setGc(boolean gc)
           
 void setSidManager(ConfluenceSidManager sidManager)
           
 void setSystemInformationService(SystemInformationService sysInfoService)
           
 
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
 

Constructor Detail

ViewSystemInfoAction

public ViewSystemInfoAction()
Keep the blank constructor so WebWork 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 class ConfluenceActionSupport

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport
Throws:
java.lang.Exception

getServletContext

public javax.servlet.ServletContext getServletContext()

getSummaryInfo

public java.util.Map<java.lang.String,java.lang.String> getSummaryInfo()

getRuntimeEnvironment

public java.util.Map<java.lang.String,java.lang.String> getRuntimeEnvironment()

getDatabaseInfo

public java.util.Map<java.lang.String,java.lang.String> getDatabaseInfo()

getUsageInfo

public java.util.Map<java.lang.String,java.lang.String> getUsageInfo()

getModifications

public java.util.Map<java.lang.String,java.lang.String> getModifications()

getMemoryStatistics

public MemoryInfo getMemoryStatistics()

getBuildStats

public java.util.Map<java.lang.String,java.lang.Object> getBuildStats()

getPlugins

public java.util.Collection getPlugins()

isPluginEnabled

public boolean isPluginEnabled(java.lang.String pluginKey)

getPluginEnabledAsEnglish

public java.lang.String getPluginEnabledAsEnglish(java.lang.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 java.lang.String getPluginEnabledAsI18nLabel(java.lang.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 java.lang.String getServerId()
Returns:
the server Id for this server or null if there is none set.

getServerIdOrEnglishNone

public java.lang.String getServerIdOrEnglishNone()
Returns:
the server Id for this server or "none" if there is none set.

getServerIdOrI18nNone

public java.lang.String getServerIdOrI18nNone()
Returns:
the server Id for this server or localised version of "none.word" if there is none set.

getSupportEntitlementNumberOrEnglishNone

public java.lang.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 java.lang.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 java.util.Map<java.lang.Object,java.lang.Object> getSystemProperties()
Returns:
the System properties.

getSystemPropertiesHtml

public java.util.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 java.util.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 class ConfluenceActionSupport


Copyright © 2003-2011 Atlassian. All Rights Reserved.