|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.Descriptor<Config>
org.jenkinsci.lib.configprovider.ConfigProvider
public abstract class ConfigProvider
A ConfigProvider represents a configuration file (such as Maven's settings.xml) where the user can choose its actual content among several concrete contents that are pre-configured.
ConfigProvider is an extension point, and should be implemented and instantiated by each kind of configuration. This abstraction doesn't define where the configuration is placed, or
how/when it's used — those semantics should be introduced by a specific instance of ConfigProvider.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| 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
|
getConfigByIdTyped(String configId)
same as getConfigById(String), but wihout the need for cast |
|
abstract ContentType |
getContentType()
The content type of the configs this provider manages. |
|
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 '.'. |
|
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 hudson.model.Descriptor |
|---|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap |
| 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 ContentType getContentType()
null if no specific formating should be supported.public abstract Config getConfigById(String configId)
configId - the id
public abstract <T extends Config> T getConfigByIdTyped(String configId)
getConfigById(String), but wihout the need for cast
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 | |||||||||