Class BitbucketPluginConfiguration
- java.lang.Object
- 
- hudson.model.Descriptor<GlobalConfiguration>
- 
- jenkins.model.GlobalConfiguration
- 
- com.atlassian.bitbucket.jenkins.internal.config.BitbucketPluginConfiguration
 
 
 
- 
- All Implemented Interfaces:
- ExtensionPoint,- Describable<GlobalConfiguration>,- Saveable,- OnMaster
 
 @Extension public class BitbucketPluginConfiguration extends GlobalConfiguration 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class hudson.model.DescriptorDescriptor.FormException, Descriptor.PropertyType, Descriptor.Self
 - 
Nested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
 
- 
 - 
Field Summary- 
Fields inherited from class hudson.model.Descriptorclazz
 
- 
 - 
Constructor SummaryConstructors Constructor Description BitbucketPluginConfiguration()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)Optional<BitbucketServerConfiguration>getServerById(String serverId)List<BitbucketServerConfiguration>getServerList()Returns a list of all servers that have been configured by the user.List<BitbucketServerConfiguration>getValidServerList()Returns a list of all servers that have been configured by the user and pass the process() function with no errors.List<BitbucketServerConfiguration>getValidServerListByName(String serverName)Returns a list of all servers configured by the user matching the provided name, and also passing the process() function with no errors.booleanhasAnyInvalidConfiguration()Determines if any servers have been incorrectly configuredvoidsetServerList(List<BitbucketServerConfiguration> serverList)- 
Methods inherited from class jenkins.model.GlobalConfigurationall, getDescriptor, getGlobalConfigPage
 - 
Methods inherited from class hudson.model.DescriptoraddHelpFileRedirect, 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- 
configurepublic boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)- Overrides:
- configurein class- GlobalConfiguration
 
 - 
getServerByIdpublic Optional<BitbucketServerConfiguration> getServerById(@CheckForNull String serverId) 
 - 
getServerListpublic List<BitbucketServerConfiguration> getServerList() Returns a list of all servers that have been configured by the user. This can include incorrectly or illegally defined servers.- Returns:
- a list of all configured servers
 
 - 
setServerListpublic void setServerList(List<BitbucketServerConfiguration> serverList) 
 - 
getValidServerListpublic List<BitbucketServerConfiguration> getValidServerList() Returns a list of all servers that have been configured by the user and pass the process() function with no errors.- Returns:
- a list of all valid configured servers
 
 - 
getValidServerListByNamepublic List<BitbucketServerConfiguration> getValidServerListByName(String serverName) Returns a list of all servers configured by the user matching the provided name, and also passing the process() function with no errors.- Parameters:
- serverName- the name to search for
- Returns:
- a list of all valid configured servers with a matching serverName
 
 - 
hasAnyInvalidConfigurationpublic boolean hasAnyInvalidConfiguration() Determines if any servers have been incorrectly configured- Returns:
- true if any server returns an error during validation; false otherwise
 
 
- 
 
-