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.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a newGlobalConfigurationItem.protectedCreates a newGlobalConfigurationItem. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClears all model elements of a repeatable property.booleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) final voidload()protected ObjectCalled after deserialization to restore transient fields.final voidsave()Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, 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, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, 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 deserialization to restore transient fields.- Returns:
- this
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein 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:
loadin interfaceLoadable- Overrides:
loadin classDescriptor<GlobalConfiguration>
-
save
public final void save()- Specified by:
savein interfaceSaveable- Overrides:
savein classDescriptor<GlobalConfiguration>
-