|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jenkinsci.lib.configprovider.ConfigProvider
public abstract class ConfigProvider
A ConfigProvider is able to manage different configuration files (see:
Config)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Constructor Summary | |
|---|---|
ConfigProvider()
|
|
| Method Summary | |
|---|---|
static hudson.ExtensionList<ConfigProvider> |
all()
All registered ConfigProviders. |
abstract Collection<Config> |
getAllConfigs()
returns all the configs of this provider |
abstract 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 |
abstract ContentType |
getContentType()
The content type of the configs this provider manages. e.g. can be used to display the content in the UI (editor). |
abstract String |
getProviderId()
An ID uniquely identifying this provider, the id of each Config
must start with this ID separated by a '.'! |
abstract boolean |
isResponsibleFor(String configId)
Whether this provider is responsible for a Config with the given Id. |
abstract Config |
newConfig()
Returns a new Config object with a unique id, starting with the
id of this provider - separated by '.'. e.g. |
abstract void |
remove(String configId)
Removes/deletes the config with the given Id |
abstract void |
save(Config config)
save the content of the given config. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigProvider()
| Method Detail |
|---|
public static hudson.ExtensionList<ConfigProvider> all()
ConfigProviders.
public abstract Collection<Config> getAllConfigs()
public abstract ConfigDescription getConfigDescription()
public abstract ContentType getContentType()
null if no specific formating should be
supported.public abstract Config getConfigById(String configId)
configId - the id
public abstract boolean isResponsibleFor(String configId)
configId - the id to check
true if the provider takes responsibilitypublic abstract void save(Config config)
config - the config to be savedpublic abstract void remove(String configId)
configId - the idpublic abstract String getProviderId()
Config
must start with this ID separated by a '.'!
public abstract Config newConfig()
Config 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||