|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jenkinsci.lib.configprovider.ConfigProvider
org.jenkinsci.lib.configprovider.AbstractConfigProvider
public abstract class AbstractConfigProvider
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary | |
|---|---|
protected Map<String,Config> |
configs
|
protected String |
ID_PREFIX
|
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
AbstractConfigProvider()
|
|
| Method Summary | |
|---|---|
Collection<Config> |
getAllConfigs()
returns all the configs of this provider |
Config |
getConfigById(String configId)
Returns the config item identified by this id. |
abstract ConfigDescription |
getConfigDescription()
The description of the config this provider is able to provide instances of |
protected hudson.XmlFile |
getConfigXml()
|
String |
getProviderId()
An ID uniquely identifying this provider, the id of each Config
must start with this ID separated by a '.'! |
protected abstract String |
getXmlFileName()
|
boolean |
isResponsibleFor(String configId)
Whether this provider is responsible for a Config with the given Id. |
protected void |
load()
|
Config |
newConfig()
Returns a new Config object with a unique id, starting with the
id of this provider - separated by '.'. e.g. |
void |
remove(String configId)
Removes/deletes the config with the given Id |
void |
save()
|
void |
save(Config config)
save the content of the given config. |
| Methods inherited from class org.jenkinsci.lib.configprovider.ConfigProvider |
|---|
all, getContentType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String ID_PREFIX
protected Map<String,Config> configs
| Constructor Detail |
|---|
public AbstractConfigProvider()
| Method Detail |
|---|
public Collection<Config> getAllConfigs()
ConfigProvider
getAllConfigs in class ConfigProviderpublic Config getConfigById(String configId)
ConfigProvider
getConfigById in class ConfigProviderconfigId - the id
public abstract ConfigDescription getConfigDescription()
ConfigProvider
getConfigDescription in class ConfigProviderpublic String getProviderId()
ConfigProviderConfig
must start with this ID separated by a '.'!
getProviderId in class ConfigProviderpublic boolean isResponsibleFor(String configId)
ConfigProvider
isResponsibleFor in class ConfigProviderconfigId - the id to check
true if the provider takes responsibilitypublic Config newConfig()
ConfigProviderConfig object with a unique id, starting with the
id of this provider - separated by '.'. e.g. "MyCustomProvider.123456".
This object is also used initialize the user interface.
newConfig in class ConfigProviderpublic void remove(String configId)
ConfigProvider
remove in class ConfigProviderconfigId - the idpublic void save(Config config)
ConfigProvider
save in class ConfigProviderconfig - the config to be savedpublic void save()
save in interface hudson.model.SaveableSaveable.save()protected void load()
protected hudson.XmlFile getConfigXml()
protected abstract String getXmlFileName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||