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.Self
Nested 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 alltypes
that 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
.boolean
Returns whether the warnings column should be displayed by default.void
setDefaultName
(String defaultName) Sets the default name for the warnings' column.void
setDefaultType
(IssuesStatistics.StatisticProperties defaultType) Sets the default type to be used.void
setEnableColumnByDefault
(boolean enableColumnByDefault) Enables or disables the warnings column by default.Methods inherited from class io.jenkins.plugins.util.GlobalConfigurationItem
clearRepeatableProperties, configure, load, readResolve, save
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
Methods 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:
getCategory
in classDescriptor<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
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 alltypes
that can be used in the column.- Returns:
- a model with all
types
.
-