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,Loadable,OnMaster
Provides a global configuration for ReviewBoard servers.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
ConstructorsConstructorDescriptionConstruct the configuration from prior saved entries.ReviewBoardGlobalConfiguration(List<ReviewBoardServerConfiguration> serverConfigurations) Construct the global configuration with the given server configurations. -
Method Summary
Modifier and TypeMethodDescriptiongetServerConfiguration(URL serverURL) Fetch the server configuration that matches the given name, returning null if one is not found.Fetch the server configurations.voidsetServerConfigurations(List<ReviewBoardServerConfiguration> serverConfigurations) Set the server configurations list then save the entries.Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
ReviewBoardGlobalConfiguration
public ReviewBoardGlobalConfiguration()Construct the configuration from prior saved entries. -
ReviewBoardGlobalConfiguration
Construct the global configuration with the given server configurations.- Parameters:
serverConfigurations- List of Review Board server configurations
-
-
Method Details
-
setServerConfigurations
Set the server configurations list then save the entries.- Parameters:
serverConfigurations- List of Review Board server configurations
-
getServerConfigurations
Fetch the server configurations.- Returns:
- Review Board server configurations
-
getServerConfiguration
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
-