Package org.reviewboard.rbjenkins.config
Class ReviewBoardGlobalConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- org.reviewboard.rbjenkins.config.ReviewBoardGlobalConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension public class ReviewBoardGlobalConfiguration extends GlobalConfiguration
Provides a global configuration for ReviewBoard servers.
-
-
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 ReviewBoardGlobalConfiguration()
Construct the configuration from prior saved entries.ReviewBoardGlobalConfiguration(List<ReviewBoardServerConfiguration> serverConfigurations)
Construct the global configuration with the given server configurations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReviewBoardServerConfiguration
getServerConfiguration(URL serverURL)
Fetch the server configuration that matches the given name, returning null if one is not found.List<ReviewBoardServerConfiguration>
getServerConfigurations()
Fetch the server configurations.void
setServerConfigurations(List<ReviewBoardServerConfiguration> serverConfigurations)
Set the server configurations list then save the entries.-
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, 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
-
-
-
-
Constructor Detail
-
ReviewBoardGlobalConfiguration
public ReviewBoardGlobalConfiguration()
Construct the configuration from prior saved entries.
-
ReviewBoardGlobalConfiguration
public ReviewBoardGlobalConfiguration(List<ReviewBoardServerConfiguration> serverConfigurations)
Construct the global configuration with the given server configurations.- Parameters:
serverConfigurations
- List of Review Board server configurations
-
-
Method Detail
-
setServerConfigurations
public void setServerConfigurations(List<ReviewBoardServerConfiguration> serverConfigurations)
Set the server configurations list then save the entries.- Parameters:
serverConfigurations
- List of Review Board server configurations
-
getServerConfigurations
public List<ReviewBoardServerConfiguration> getServerConfigurations()
Fetch the server configurations.- Returns:
- Review Board server configurations
-
getServerConfiguration
public ReviewBoardServerConfiguration getServerConfiguration(URL serverURL)
Fetch the server configuration that matches the given name, returning null if one is not found.- Parameters:
serverURL
- Review Board server URL- Returns:
- server configuration or null
-
-