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,Loadable,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.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid<T extends Config>
TDeprecated.Deprecated.protected XmlFileDeprecated.An ID uniquely identifying this provider, the id of eachConfigmust start with this ID separated by a '.'!protected StringDeprecated.voidload()Overridden for backward compatibility to let subtype customize the file name.voidsave()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, supportsFolderMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, 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:ConfigProviderAn ID uniquely identifying this provider, the id of eachConfigmust start with this ID separated by a '.'!- Specified by:
getProviderIdin classConfigProvider- Returns:
- the unique id for this provider.
-
save
public void save()Saves the configuration info to the disk.- Specified by:
savein interfaceSaveable- Overrides:
savein classDescriptor<Config>
-
load
public void load()Overridden for backward compatibility to let subtype customize the file name.- Specified by:
loadin interfaceLoadable- Overrides:
loadin classDescriptor<Config>
-
getConfigXml
Deprecated. -
getXmlFileName
Deprecated. -
clearOldDataStorage
public void clearOldDataStorage()- Specified by:
clearOldDataStoragein classConfigProvider
-