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.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 BitbucketPluginConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 configuredvoid
setServerList(List<BitbucketServerConfiguration> serverList)
-
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
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
- Overrides:
configure
in classGlobalConfiguration
-
getServerById
public Optional<BitbucketServerConfiguration> getServerById(@CheckForNull String serverId)
-
getServerList
public 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
-
setServerList
public void setServerList(List<BitbucketServerConfiguration> serverList)
-
getValidServerList
public 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
-
getValidServerListByName
public 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
-
hasAnyInvalidConfiguration
public boolean hasAnyInvalidConfiguration()
Determines if any servers have been incorrectly configured- Returns:
- true if any server returns an error during validation; false otherwise
-
-