Package jenkins.security
Class UpdateSiteWarningsConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- jenkins.security.UpdateSiteWarningsConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,PersistentDescriptor
,Saveable
,OnMaster
@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class UpdateSiteWarningsConfiguration extends GlobalConfiguration implements PersistentDescriptor
Configuration for update site-provided warnings.- Since:
- 2.40
- See Also:
UpdateSiteWarningsMonitor
-
-
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
Constructors Constructor Description UpdateSiteWarningsConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
By default, callsStaplerRequest.bindJSON(Object, JSONObject)
, appropriate when your implementation has getters and setters for all fields.Set<UpdateSite.Warning>
getAllWarnings()
Set<UpdateSite.Warning>
getApplicableWarnings()
GlobalConfigurationCategory
getCategory()
Define the global configuration category the global config of this Descriptor is in.Set<String>
getIgnoredWarnings()
PluginWrapper
getPlugin(UpdateSite.Warning warning)
boolean
isIgnored(UpdateSite.Warning warning)
void
setIgnoredWarnings(Set<String> ignoredWarnings)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.PersistentDescriptor
load
-
-
-
-
Method Detail
-
getCategory
@NonNull public GlobalConfigurationCategory getCategory()
Description copied from class:Descriptor
Define the global configuration category the global config of this Descriptor is in.- Overrides:
getCategory
in classDescriptor<GlobalConfiguration>
- Returns:
- never null, always the same value for a given instance of
Descriptor
.
-
isIgnored
public boolean isIgnored(@NonNull UpdateSite.Warning warning)
-
getPlugin
@CheckForNull public PluginWrapper getPlugin(@NonNull UpdateSite.Warning warning)
-
getAllWarnings
@NonNull public Set<UpdateSite.Warning> getAllWarnings()
-
getApplicableWarnings
@NonNull public Set<UpdateSite.Warning> getApplicableWarnings()
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
Description copied from class:GlobalConfiguration
By default, callsStaplerRequest.bindJSON(Object, JSONObject)
, appropriate when your implementation has getters and setters for all fields.Invoked when the global configuration page is submitted. Can be overridden to store descriptor-specific information.
- Overrides:
configure
in classGlobalConfiguration
json
- The JSON object that captures the configuration data for thisDescriptor
. See the developer documentation.- Returns:
- false to keep the client in the same config page.
- Throws:
Descriptor.FormException
-
-