@Extension(ordinal=400.0) @Symbol(value="quietPeriod") public class GlobalQuietPeriodConfiguration extends GlobalConfiguration
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
ExtensionPoint.LegacyInstancesAreScopedToHudson
clazz
Constructor and Description |
---|
GlobalQuietPeriodConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
By default, calls
StaplerRequest.bindJSON(Object, JSONObject) ,
appropriate when your implementation has getters and setters for all fields. |
int |
getQuietPeriod() |
Permission |
getRequiredGlobalConfigPagePermission()
Returns the permission type needed in order to access the
Descriptor.getGlobalConfigPage() for this descriptor. |
all, getDescriptor, getGlobalConfigPage
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public int getQuietPeriod()
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
GlobalConfiguration
StaplerRequest.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.
configure
in class GlobalConfiguration
json
- The JSON object that captures the configuration data for this Descriptor
.
See http://wiki.jenkins-ci.org/display/JENKINS/Structured+Form+SubmissionDescriptor.FormException
@NonNull public Permission getRequiredGlobalConfigPagePermission()
Descriptor
Descriptor.getGlobalConfigPage()
for this descriptor.
By default, requires Jenkins.ADMINISTER
permission.
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 is Jenkins.MANAGE
.getRequiredGlobalConfigPagePermission
in class Descriptor<GlobalConfiguration>
Copyright © 2004–2021. All rights reserved.