Class GitHubConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
org.jenkinsci.plugins.github_branch_source.GitHubConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEndpoint(Endpoint endpoint) Adds an endpoint.booleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) findEndpoint(String apiUri) Checks to see if the supplied server URL is defined in the global configuration.static GitHubConfigurationget()static StringnormalizeApiUri(String apiUri) Fix an apiUri.booleanremoveEndpoint(String apiUri) Removes an endpoint.booleanremoveEndpoint(Endpoint endpoint) Removes an endpoint.voidsetApiRateLimitChecker(ApiRateLimitChecker apiRateLimitChecker) voidsetEndpoints(List<Endpoint> endpoints) voidupdateEndpoint(Endpoint endpoint) Updates an existing endpoint (or adds if missing).Methods inherited from class jenkins.model.GlobalConfiguration
all, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
GitHubConfiguration
public GitHubConfiguration()
-
-
Method Details
-
get
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classGlobalConfiguration- Throws:
Descriptor.FormException
-
getEndpoints
-
getApiRateLimitChecker
-
setApiRateLimitChecker
-
normalizeApiUri
Fix an apiUri.- Parameters:
apiUri- the api URI.- Returns:
- the normalized api URI.
-
setEndpoints
-
addEndpoint
Adds an endpoint.- Parameters:
endpoint- the endpoint to add.- Returns:
trueif the list of endpoints was modified
-
updateEndpoint
Updates an existing endpoint (or adds if missing).- Parameters:
endpoint- the endpoint to update.
-
removeEndpoint
Removes an endpoint.- Parameters:
endpoint- the endpoint to remove.- Returns:
trueif the list of endpoints was modified
-
removeEndpoint
Removes an endpoint.- Parameters:
apiUri- the API URI to remove.- Returns:
trueif the list of endpoints was modified
-
findEndpoint
Checks to see if the supplied server URL is defined in the global configuration.- Parameters:
apiUri- the server url to check.- Returns:
- the global configuration for the specified server url or
nullif not defined.
-
doFillApiRateLimitCheckerItems
-
getRequiredGlobalConfigPagePermission
- Overrides:
getRequiredGlobalConfigPagePermissionin classDescriptor<GlobalConfiguration>
-