Package io.jenkins.plugins.util
Class GlobalConfigurationItem
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.util.GlobalConfigurationItem
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,Loadable
,OnMaster
Testable base class for items of the
GlobalConfiguration
page.- Author:
- Ullrich Hafner
-
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
ModifierConstructorDescriptionprotected
Creates a newGlobalConfigurationItem
.protected
Creates a newGlobalConfigurationItem
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Clears all model elements of a repeatable property.boolean
configure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) final void
load()
protected Object
Called after de-serialization to restore transient fields.final void
save()
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, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, self, toArray, toList, toMap
-
Constructor Details
-
GlobalConfigurationItem
protected GlobalConfigurationItem()Creates a newGlobalConfigurationItem
. -
GlobalConfigurationItem
Creates a newGlobalConfigurationItem
.- Parameters:
facade
- the facade to use
-
-
Method Details
-
readResolve
Called after de-serialization to restore transient fields.- Returns:
- this
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
clearRepeatableProperties
protected void clearRepeatableProperties()Clears all model elements of a repeatable property. Due to a bug in Stapler data binding of repeatable properties the model elements are only changed if they consist of one or more values. If all values have been removed and the associated form is empty, then the setter is not invoked anymore. -
load
public final void load()- Specified by:
load
in interfaceLoadable
- Overrides:
load
in classDescriptor<GlobalConfiguration>
-
save
public final void save()- Specified by:
save
in interfaceSaveable
- Overrides:
save
in classDescriptor<GlobalConfiguration>
-