Class ModelValidation

java.lang.Object
io.jenkins.plugins.analysis.core.util.ModelValidation

public class ModelValidation extends Object
Validates all properties of a configuration of a static analysis tool in a job.
Author:
Ullrich Hafner
  • Constructor Details

    • ModelValidation

      public ModelValidation()
      Creates a new descriptor.
  • Method Details

    • getAllSeverityFilters

      public ListBoxModel getAllSeverityFilters()
      Returns a model with all available severity filters.
      Returns:
      a model with all available severity filters
    • getAllTrendChartTypes

      public ListBoxModel getAllTrendChartTypes()
      Returns a model with all available aggregation trend chart positions.
      Returns:
      a model with all available aggregation trend chart positions
    • getAllJobs

      public ComboBoxModel getAllJobs()
      Returns the model with the possible reference jobs.
      Returns:
      the model with the possible reference jobs
    • validateJob

      public FormValidation validateJob(String referenceJobName)
      Performs on-the-fly validation of the reference job.
      Parameters:
      referenceJobName - the reference job
      Returns:
      the validation result
    • validateThreshold

      public FormValidation validateThreshold(int threshold)
      Performs on-the-fly validation of the quality gate threshold.
      Parameters:
      threshold - the threshold
      Returns:
      the validation result
    • validateHealthy

      public FormValidation validateHealthy(int healthy, int unhealthy)
      Performs on-the-fly validation of the health report thresholds.
      Parameters:
      healthy - the healthy threshold
      unhealthy - the unhealthy threshold
      Returns:
      the validation result
    • validateUnhealthy

      public FormValidation validateUnhealthy(int healthy, int unhealthy)
      Performs on-the-fly validation of the health report thresholds.
      Parameters:
      healthy - the healthy threshold
      unhealthy - the unhealthy threshold
      Returns:
      the validation result