public abstract class GlobalConfiguration extends Descriptor<GlobalConfiguration> implements ExtensionPoint, Describable<GlobalConfiguration>
All Descriptor
s are capable of contributing fragment to the system config page, so
this extension point is is really only for those who don't want to contribute anything else.
If you are implementing other extension points and that would like to expose some global configuration,
you can do so with global.groovy from your Descriptor
instance.
Subtypes of this class should define config.groovy that gets pulled into the system configuration page.
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
ExtensionPoint.LegacyInstancesAreScopedToHudson
clazz
Modifier | Constructor and Description |
---|---|
protected |
GlobalConfiguration() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<GlobalConfiguration> |
all()
Returns all the registered
GlobalConfiguration descriptors. |
GlobalConfigurationCategory |
getCategory()
Every
GlobalConfiguration belongs to a specific category. |
Descriptor<GlobalConfiguration> |
getDescriptor()
Gets the descriptor for this instance.
|
String |
getDisplayName()
Unless this object has additional web presence, display name is not used at all.
|
String |
getGlobalConfigPage() |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public final Descriptor<GlobalConfiguration> getDescriptor()
Describable
Descriptor
is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass()
then by default
a.getDescriptor() == b.getDescriptor()
as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor
in interface Describable<GlobalConfiguration>
public GlobalConfigurationCategory getCategory()
GlobalConfiguration
belongs to a specific category.GlobalConfiguration
.public String getDisplayName()
getDisplayName
in class Descriptor<GlobalConfiguration>
public String getGlobalConfigPage()
getGlobalConfigPage
in class Descriptor<GlobalConfiguration>
public static ExtensionList<GlobalConfiguration> all()
GlobalConfiguration
descriptors.Copyright © 2014. All rights reserved.