Class ViewSystemInfoAction

    • 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

      • execute

        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
        Throws:
        Exception
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
      • getEnvironmentVariables

        public Map<String,​String> getEnvironmentVariables()
      • getRuntimeEnvironment

        public Map<String,​String> getRuntimeEnvironment()
      • 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".
      • 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.
      • 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)
      • setLicenseService

        public void setLicenseService​(LicenseService licenseService)
      • setPluginMetadataManager

        public void setPluginMetadataManager​(com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)