Package org.jenkinsci.lib.configprovider
Class AbstractConfigProviderImpl
java.lang.Object
hudson.model.Descriptor<Config>
org.jenkinsci.lib.configprovider.ConfigProvider
org.jenkinsci.lib.configprovider.AbstractConfigProviderImpl
- All Implemented Interfaces:
ExtensionPoint
,Saveable
,OnMaster
- Direct Known Subclasses:
AbstractConfigProvider
,AbstractCustomProvider
,AbstractMavenSettingsProvider
,AbstractPropertiesProvider
,GroovyScript.GroovyConfigProvider
,JsonConfig.JsonConfigProvider
,MavenToolchainsConfig.MavenToolchainsConfigProvider
,XmlConfig.XmlConfigProvider
Partial default implementation of
ConfigProvider
.- Author:
- Kohsuke Kawaguchi
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
<T extends Config>
TDeprecated.Deprecated.protected XmlFile
Deprecated.An ID uniquely identifying this provider, the id of eachConfig
must start with this ID separated by a '.'!protected String
Deprecated.void
load()
Overridden for backward compatibility to let subtype customize the file name.void
save()
Saves the configuration info to the disk.Methods inherited from class org.jenkinsci.lib.configprovider.ConfigProvider
all, configExists, getAllConfigs, getByIdOrNull, getConfigById, getContentType, getSensitiveContentForMasking, newConfig, newConfig, newConfig, remove, save, supplyContent, supportsFolder
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, 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
-
Field Details
-
configs
Deprecated.
-
-
Constructor Details
-
AbstractConfigProviderImpl
public AbstractConfigProviderImpl()
-
-
Method Details
-
getConfigs
Deprecated.only used for data migration- See Also:
-
convert
Deprecated.Only used to convert data from the old (< 1.5) to the new (≥ 1.5) storage format. New implementations of this extension point do not need to implement this.- Type Parameters:
T
- expected type of the returned configuration item.- Parameters:
config
- the configuration to convert
-
getProviderId
Description copied from class:ConfigProvider
An ID uniquely identifying this provider, the id of eachConfig
must start with this ID separated by a '.'!- Specified by:
getProviderId
in classConfigProvider
- Returns:
- the unique id for this provider.
-
save
public void save()Saves the configuration info to the disk.- Specified by:
save
in interfaceSaveable
- Overrides:
save
in classDescriptor<Config>
-
load
public void load()Overridden for backward compatibility to let subtype customize the file name.- Overrides:
load
in classDescriptor<Config>
-
getConfigXml
Deprecated. -
getXmlFileName
Deprecated. -
clearOldDataStorage
public void clearOldDataStorage()- Specified by:
clearOldDataStorage
in classConfigProvider
-