Class WarningsAppearanceConfiguration

java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.util.GlobalConfigurationItem
io.jenkins.plugins.analysis.core.columns.WarningsAppearanceConfiguration
All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster

@Extension @Symbol("warnings") public class WarningsAppearanceConfiguration extends io.jenkins.plugins.util.GlobalConfigurationItem
Global appearance configuration for the Warnings Plugin.
  • Constructor Details

    • WarningsAppearanceConfiguration

      @DataBoundConstructor public WarningsAppearanceConfiguration()
      Creates the global configuration and loads the initial values from the corresponding XML file.
  • Method Details

    • getInstance

      public static WarningsAppearanceConfiguration getInstance()
      Returns the singleton instance of this WarningsAppearanceConfiguration.
      Returns:
      the singleton instance
    • getCategory

      @NonNull public GlobalConfigurationCategory getCategory()
      Overrides:
      getCategory in class Descriptor<GlobalConfiguration>
    • isEnableColumnByDefault

      public boolean isEnableColumnByDefault()
      Returns whether the warnings column should be displayed by default.
      Returns:
      true if warnings column is shown by default, false otherwise
    • setEnableColumnByDefault

      @DataBoundSetter public void setEnableColumnByDefault(boolean enableColumnByDefault)
      Enables or disables the warnings column by default.
      Parameters:
      enableColumnByDefault - true to enable the warnings column by default, false to disable it
    • getDefaultType

      public IssuesStatistics.StatisticProperties getDefaultType()
      Returns the default type to be used.
      Returns:
      the default type
    • setDefaultType

      @DataBoundSetter public void setDefaultType(IssuesStatistics.StatisticProperties defaultType)
      Sets the default type to be used.
      Parameters:
      defaultType - the default type to use
    • getDefaultName

      public String getDefaultName()
      Returns the default name for the warnings' column.
      Returns:
      the default name for the warnings' column
    • setDefaultName

      @DataBoundSetter public void setDefaultName(String defaultName)
      Sets the default name for the warnings' column.
      Parameters:
      defaultName - the default name for the warnings' column
    • doFillDefaultTypeItems

      @POST public ListBoxModel doFillDefaultTypeItems()
      Returns a model with all types that can be used in the column.
      Returns:
      a model with all types.