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, 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
 String execute()
           
 Map<String,Object> getBuildStats()
           
 Map<String,String> getDatabaseInfo()
           
 List<com.atlassian.plugin.Plugin> getEnabledPlugins()
          Retrieves the list of enabled plugins.
 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 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 V2 license or "none" if using a V1 license or if the V2 license has no SEN.
 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.
 Map<Object,Object> getSystemProperties()
           
 Map getSystemPropertiesHtml()
           
 Map<String,String> getUsageInfo()
           
 boolean isClustered()
           
 boolean isPermitted()
           
 boolean isPluginEnabled(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, getDateFormatSetting, 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, setLoginManager, 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 String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport
Throws:
Exception

getServletContext

public javax.servlet.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<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.