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
,OnMaster
public class GlobalConfigurationItem extends GlobalConfiguration
Testable base class for items of theGlobalConfiguration
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
Constructors Modifier Constructor Description protected
GlobalConfigurationItem()
Creates a newGlobalConfigurationItem
.protected
GlobalConfigurationItem(GlobalConfigurationFacade facade)
Creates a newGlobalConfigurationItem
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearRepeatableProperties()
Clears all model elements of a repeatable property.boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
void
load()
protected Object
readResolve()
Called after de-serialization to restore transient fields.void
save()
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
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, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, self, toArray, toList, toMap
-
-
-
-
Constructor Detail
-
GlobalConfigurationItem
protected GlobalConfigurationItem()
Creates a newGlobalConfigurationItem
.
-
GlobalConfigurationItem
protected GlobalConfigurationItem(GlobalConfigurationFacade facade)
Creates a newGlobalConfigurationItem
.- Parameters:
facade
- the facade to use
-
-
Method Detail
-
readResolve
protected Object 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()
- Overrides:
load
in classDescriptor<GlobalConfiguration>
-
save
public final void save()
- Specified by:
save
in interfaceSaveable
- Overrides:
save
in classDescriptor<GlobalConfiguration>
-
-