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.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
ConstructorsConstructorDescriptionCreates the global configuration and loads the initial values from the corresponding XML file. -
Method Summary
Modifier and TypeMethodDescriptionReturns a model with alltypesthat can be used in the column.Returns the default name for the warnings' column.Returns the default type to be used.Returns the singleton instance of thisWarningsAppearanceConfiguration.booleanReturns whether the warnings column should be displayed by default.voidsetDefaultName(String defaultName) Sets the default name for the warnings' column.voidsetDefaultType(IssuesStatistics.StatisticProperties defaultType) Sets the default type to be used.voidsetEnableColumnByDefault(boolean enableColumnByDefault) Enables or disables the warnings column by default.Methods inherited from class io.jenkins.plugins.util.GlobalConfigurationItem
clearRepeatableProperties, configure, load, readResolve, saveMethods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, self, toArray, toList, toMap
-
Constructor Details
-
WarningsAppearanceConfiguration
@DataBoundConstructor public WarningsAppearanceConfiguration()Creates the global configuration and loads the initial values from the corresponding XML file.
-
-
Method Details
-
getInstance
Returns the singleton instance of thisWarningsAppearanceConfiguration.- Returns:
- the singleton instance
-
getCategory
- Overrides:
getCategoryin classDescriptor<GlobalConfiguration>
-
isEnableColumnByDefault
public boolean isEnableColumnByDefault()Returns whether the warnings column should be displayed by default.- Returns:
trueif warnings column is shown by default,falseotherwise
-
setEnableColumnByDefault
@DataBoundSetter public void setEnableColumnByDefault(boolean enableColumnByDefault) Enables or disables the warnings column by default.- Parameters:
enableColumnByDefault-trueto enable the warnings column by default,falseto disable it
-
getDefaultType
Returns the default type to be used.- Returns:
- the default type
-
setDefaultType
Sets the default type to be used.- Parameters:
defaultType- the default type to use
-
getDefaultName
Returns the default name for the warnings' column.- Returns:
- the default name for the warnings' column
-
setDefaultName
Sets the default name for the warnings' column.- Parameters:
defaultName- the default name for the warnings' column
-
doFillDefaultTypeItems
Returns a model with alltypesthat can be used in the column.- Returns:
- a model with all
types.
-