Package jenkins.model
Class GlobalBuildDiscarderConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
jenkins.model.GlobalBuildDiscarderConfiguration
- All Implemented Interfaces:
- ExtensionPoint,- Describable<GlobalConfiguration>,- Saveable,- Loadable,- OnMaster
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Extension
@Symbol("buildDiscarders")
public class GlobalBuildDiscarderConfiguration
extends GlobalConfiguration
Global configuration UI for background build discarders
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class hudson.model.DescriptorDescriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields inherited from class hudson.model.Descriptorclazz
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) By default, callsStaplerRequest2.bindJSON(Object, JSONObject), appropriate when your implementation has getters and setters for all fields.get()Returns the permission type needed in order to access theDescriptor.getGlobalConfigPage()for this descriptor.Methods inherited from class jenkins.model.GlobalConfigurationall, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.DescriptoraddHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
- 
Constructor Details- 
GlobalBuildDiscarderConfigurationpublic GlobalBuildDiscarderConfiguration()
 
- 
- 
Method Details- 
get
- 
getConfiguredBuildDiscarderspublic DescribableList<GlobalBuildDiscarderStrategy,GlobalBuildDiscarderStrategyDescriptor> getConfiguredBuildDiscarders()
- 
getRequiredGlobalConfigPagePermissionDescription copied from class:DescriptorReturns the permission type needed in order to access theDescriptor.getGlobalConfigPage()for this descriptor. By default, requiresJenkins.ADMINISTERpermission. For now this only applies to descriptors configured through the global (GlobalConfigurationCategory.Unclassified) configuration. Override to return something different if appropriate. The only currently supported alternative return value isJenkins.MANAGE.- Overrides:
- getRequiredGlobalConfigPagePermissionin class- Descriptor<GlobalConfiguration>
- Returns:
- Permission required to globally configure this descriptor.
 
- 
configurepublic boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException Description copied from class:GlobalConfigurationBy default, callsStaplerRequest2.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:
- configurein class- GlobalConfiguration
- Parameters:
- json- The JSON object that captures the configuration data for this- Descriptor. See the developer documentation.
- Returns:
- false to keep the client in the same config page.
- Throws:
- Descriptor.FormException
 
 
-