Class GlobalYAMLPropertiesConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- io.jenkins.plugins.globalyamlproperties.GlobalYAMLPropertiesConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,Serializable
,OnMaster
@Extension public class GlobalYAMLPropertiesConfiguration extends GlobalConfiguration implements Serializable
Example of Jenkins global configuration.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description GlobalYAMLPropertiesConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
static GlobalYAMLPropertiesConfiguration
get()
List<String>
getCategories()
Config
getConfigByName(String name)
List<String>
getConfigNames()
List<String>
getConfigNamesByCategory(String category)
List<Config>
getConfigs()
List<Config>
getConfigsByCategory(String category)
Config
getDefaultConfig()
int
getRefreshInterval()
void
setConfigs(List<Config> configs)
void
setRefreshInterval(int refreshInterval)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
get
public static GlobalYAMLPropertiesConfiguration get()
- Returns:
- the singleton instance
-
getConfigByName
public Config getConfigByName(String name) throws GlobalYAMLPropertiesConfigurationException
-
getDefaultConfig
public Config getDefaultConfig()
-
setRefreshInterval
@DataBoundSetter public void setRefreshInterval(int refreshInterval)
-
getRefreshInterval
public int getRefreshInterval()
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
-