Class ScreenViewHelper


  • @Component
    public class ScreenViewHelper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ScreenViewHelper​(ch.mobi.mobitor.plugin.liima.service.ServersConfigurationService serversConfigurationService, ch.mobi.mobitor.plugin.sonarqube.rule.SonarReportLimitsRule sonarReportLimitsRule, ch.mobi.mobitor.service.EnvironmentsConfigurationService environmentsConfigurationService, ch.mobi.mobitor.plugin.nexusiq.service.scheduling.NexusIqConfigurationService nexusIqConfigurationService, ch.mobi.mobitor.plugin.teamcity.rule.TeamCityCoverageLimitsRule teamCityCoverageLimitRules)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getApplicationScreenName​(java.lang.String applicationName)  
      java.lang.String getCoverageCssClass​(ch.mobi.mobitor.plugin.teamcity.domain.TeamCityCoverageInformation teamCityCoverageInformation)  
      java.lang.String getCssClassForAlm​(ch.mobi.mobitor.plugin.hpalm.domain.AlmInformation almInformation)  
      java.lang.String getCssClassForBuild​(ch.mobi.mobitor.plugin.teamcity.domain.TeamCityBuildInformation tcInformation)  
      java.lang.String getCssClassForDb​(ch.mobi.mobitor.plugin.rest.domain.FlywayRestServiceResponse flywayResponse)  
      java.lang.String getCssClassForJira​(ch.mobi.mobitor.plugin.jira.domain.JiraInformation jiraInformation)  
      java.lang.String getCssClassForNexusIq​(ch.mobi.mobitor.plugin.nexusiq.domain.NexusIqInformation nexusIqInformation)  
      java.lang.String getCssClassForProject​(ch.mobi.mobitor.plugin.teamcity.domain.TeamCityProjectInformation teamCityProjectInformation)  
      java.lang.String getCssClassForServer​(ch.mobi.mobitor.plugin.liima.domain.LiimaInformation liimaInformation)  
      java.lang.String getCssClassForZaproxy​(ch.mobi.mobitor.plugin.zaproxy.domain.ZaproxyInformation zaproxyInformation)  
      java.lang.String getDwhDeploymentStatusCssClass​(ch.mobi.mobitor.plugin.dwh.domain.DwhDeploymentsInformation information)  
      java.lang.String getEdwhDeploymentStatusCssClass​(ch.mobi.mobitor.plugin.edwh.domain.EdwhDeploymentsInformation information)  
      java.lang.String getEnvironmentClass​(java.lang.String environment)  
      ch.mobi.mobitor.config.EnvironmentConfigProperties getEnvironmentConfig​(java.lang.String environment)  
      ch.mobi.mobitor.plugin.rest.domain.FlywayRestServiceResponse getFlywayRestServiceResponse​(ch.mobi.mobitor.plugin.rest.domain.RestCallInformation restCallInformation)  
      java.lang.String getKubernetesPodStatusCssClass​(ch.mobi.mobitor.plugin.kubernetes.domain.KubernetesBatchJobInformation information)  
      java.lang.String getKubernetesPodStatusIconCssClass​(ch.mobi.mobitor.plugin.kubernetes.domain.KubernetesBatchJobInformation information)  
      long getNumberOfRestErrors​(ch.mobi.mobitor.domain.screen.Screen screen)  
      java.lang.String getPolicySummary​(ch.mobi.mobitor.plugin.nexusiq.domain.NexusIqInformation nexusIqInformation)  
      java.lang.String getRestartCountClass​(long restartCount)  
      java.lang.String getRestCssClass​(ch.mobi.mobitor.plugin.rest.domain.RestCallInformation restInformation)  
      java.lang.String getRestErrorsCssGradient​(long errors, long max)  
      java.lang.String getServerScreenName​(java.lang.String serverName)  
      java.lang.String getSonarCssClass​(ch.mobi.mobitor.plugin.sonarqube.domain.SonarInformation sonarInformation)  
      java.lang.String getStreamworksStatusCssClass​(ch.mobi.mobitor.plugin.streamworks.domain.StreamworksStatusInformation info)  
      java.lang.String getSwdDeploymentStatusCssClass​(ch.mobi.mobitor.plugin.swd.domain.SwdDeploymentInformation information)  
      long getTotalNumberOfRestCalls​(ch.mobi.mobitor.domain.screen.Screen screen)  
      java.lang.String getVersionFromVersionInformation​(ch.mobi.mobitor.domain.screen.ServerContext serverContext, java.lang.String applicationName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScreenViewHelper

        @Autowired
        public ScreenViewHelper​(ch.mobi.mobitor.plugin.liima.service.ServersConfigurationService serversConfigurationService,
                                ch.mobi.mobitor.plugin.sonarqube.rule.SonarReportLimitsRule sonarReportLimitsRule,
                                ch.mobi.mobitor.service.EnvironmentsConfigurationService environmentsConfigurationService,
                                ch.mobi.mobitor.plugin.nexusiq.service.scheduling.NexusIqConfigurationService nexusIqConfigurationService,
                                ch.mobi.mobitor.plugin.teamcity.rule.TeamCityCoverageLimitsRule teamCityCoverageLimitRules)
    • Method Detail

      • getCssClassForServer

        public java.lang.String getCssClassForServer​(ch.mobi.mobitor.plugin.liima.domain.LiimaInformation liimaInformation)
      • getCssClassForProject

        public java.lang.String getCssClassForProject​(ch.mobi.mobitor.plugin.teamcity.domain.TeamCityProjectInformation teamCityProjectInformation)
      • getCssClassForBuild

        public java.lang.String getCssClassForBuild​(ch.mobi.mobitor.plugin.teamcity.domain.TeamCityBuildInformation tcInformation)
      • getEnvironmentClass

        public java.lang.String getEnvironmentClass​(java.lang.String environment)
      • getApplicationScreenName

        public java.lang.String getApplicationScreenName​(java.lang.String applicationName)
      • getServerScreenName

        public java.lang.String getServerScreenName​(java.lang.String serverName)
      • getVersionFromVersionInformation

        public java.lang.String getVersionFromVersionInformation​(ch.mobi.mobitor.domain.screen.ServerContext serverContext,
                                                                 java.lang.String applicationName)
      • getEnvironmentConfig

        public ch.mobi.mobitor.config.EnvironmentConfigProperties getEnvironmentConfig​(java.lang.String environment)
      • getSonarCssClass

        public java.lang.String getSonarCssClass​(ch.mobi.mobitor.plugin.sonarqube.domain.SonarInformation sonarInformation)
      • getCoverageCssClass

        public java.lang.String getCoverageCssClass​(ch.mobi.mobitor.plugin.teamcity.domain.TeamCityCoverageInformation teamCityCoverageInformation)
      • getRestCssClass

        public java.lang.String getRestCssClass​(ch.mobi.mobitor.plugin.rest.domain.RestCallInformation restInformation)
      • getNumberOfRestErrors

        public long getNumberOfRestErrors​(ch.mobi.mobitor.domain.screen.Screen screen)
      • getTotalNumberOfRestCalls

        public long getTotalNumberOfRestCalls​(ch.mobi.mobitor.domain.screen.Screen screen)
      • getRestErrorsCssGradient

        public java.lang.String getRestErrorsCssGradient​(long errors,
                                                         long max)
      • getCssClassForNexusIq

        public java.lang.String getCssClassForNexusIq​(ch.mobi.mobitor.plugin.nexusiq.domain.NexusIqInformation nexusIqInformation)
      • getPolicySummary

        public java.lang.String getPolicySummary​(ch.mobi.mobitor.plugin.nexusiq.domain.NexusIqInformation nexusIqInformation)
      • getCssClassForZaproxy

        public java.lang.String getCssClassForZaproxy​(ch.mobi.mobitor.plugin.zaproxy.domain.ZaproxyInformation zaproxyInformation)
      • getCssClassForJira

        public java.lang.String getCssClassForJira​(ch.mobi.mobitor.plugin.jira.domain.JiraInformation jiraInformation)
      • getRestartCountClass

        public java.lang.String getRestartCountClass​(long restartCount)
      • getCssClassForDb

        public java.lang.String getCssClassForDb​(ch.mobi.mobitor.plugin.rest.domain.FlywayRestServiceResponse flywayResponse)
      • getFlywayRestServiceResponse

        public ch.mobi.mobitor.plugin.rest.domain.FlywayRestServiceResponse getFlywayRestServiceResponse​(ch.mobi.mobitor.plugin.rest.domain.RestCallInformation restCallInformation)
      • getCssClassForAlm

        public java.lang.String getCssClassForAlm​(ch.mobi.mobitor.plugin.hpalm.domain.AlmInformation almInformation)
      • getKubernetesPodStatusCssClass

        public java.lang.String getKubernetesPodStatusCssClass​(ch.mobi.mobitor.plugin.kubernetes.domain.KubernetesBatchJobInformation information)
      • getKubernetesPodStatusIconCssClass

        public java.lang.String getKubernetesPodStatusIconCssClass​(ch.mobi.mobitor.plugin.kubernetes.domain.KubernetesBatchJobInformation information)
      • getSwdDeploymentStatusCssClass

        public java.lang.String getSwdDeploymentStatusCssClass​(ch.mobi.mobitor.plugin.swd.domain.SwdDeploymentInformation information)
      • getEdwhDeploymentStatusCssClass

        public java.lang.String getEdwhDeploymentStatusCssClass​(ch.mobi.mobitor.plugin.edwh.domain.EdwhDeploymentsInformation information)
      • getDwhDeploymentStatusCssClass

        public java.lang.String getDwhDeploymentStatusCssClass​(ch.mobi.mobitor.plugin.dwh.domain.DwhDeploymentsInformation information)
      • getStreamworksStatusCssClass

        public java.lang.String getStreamworksStatusCssClass​(ch.mobi.mobitor.plugin.streamworks.domain.StreamworksStatusInformation info)