@Extension public class BitbucketPluginConfiguration extends GlobalConfiguration
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
ExtensionPoint.LegacyInstancesAreScopedToHudson
clazz
Constructor and Description |
---|
BitbucketPluginConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(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.
|
boolean |
hasAnyInvalidConfiguration()
Determines if any servers have been incorrectly configured
|
void |
setServerList(List<BitbucketServerConfiguration> serverList) |
all, getDescriptor, getGlobalConfigPage
addHelpFileRedirect, 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
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
configure
in class GlobalConfiguration
public Optional<BitbucketServerConfiguration> getServerById(@CheckForNull String serverId)
public List<BitbucketServerConfiguration> getServerList()
public void setServerList(List<BitbucketServerConfiguration> serverList)
public List<BitbucketServerConfiguration> getValidServerList()
public List<BitbucketServerConfiguration> getValidServerListByName(String serverName)
serverName
- the name to search forpublic boolean hasAnyInvalidConfiguration()
Copyright © 2016–2022. All rights reserved.