Package org.jenkinsci.plugins.fodupload
Class FodGlobalDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- org.jenkinsci.plugins.fodupload.FodGlobalDescriptor
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension @Symbol("FodGlobal") public class FodGlobalDescriptor 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 FodGlobalDescriptor()
-
Method Summary
-
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, 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
-
setBaseUrl
@DataBoundSetter public void setBaseUrl(String baseUrl)
Maura E. Ardden: 09/15/2022 To enable configuration-as-code a new group of setters has been provided NOTE: Following setters persist data to the global configuration json Object and jelly files. All setters use the naming convention: set JellyField. All getters use the naming convention: get JellyField.
-
setApiUrl
@DataBoundSetter public void setApiUrl(String apiUrl)
-
setGlobalAuthType
@DataBoundSetter public void setGlobalAuthType(String globalAuthType)
-
setClientId
@DataBoundSetter public void setClientId(String clientId)
-
setClientSecret
@DataBoundSetter public void setClientSecret(String clientSecret)
-
setUsername
@DataBoundSetter public void setUsername(String username)
-
setPersonalAccessToken
@DataBoundSetter public void setPersonalAccessToken(String personalAccessToken)
-
setTenantId
@DataBoundSetter public void setTenantId(String tenantId)
-
setScanCentralPath
@DataBoundSetter public void setScanCentralPath(String scanCentralPath)
-
getAuthTypeIsApiKey
public boolean getAuthTypeIsApiKey()
-
getAuthTypeIsPersonalToken
public boolean getAuthTypeIsPersonalToken()
-
getGlobalAuthType
public String getGlobalAuthType()
-
getBaseUrl
public String getBaseUrl()
-
getApiUrl
public String getApiUrl()
-
getClientId
public String getClientId()
-
getClientSecret
public String getClientSecret()
-
getUsername
public String getUsername()
-
getPersonalAccessToken
public String getPersonalAccessToken()
-
getTenantId
public String getTenantId()
-
getScanCentralPath
public String getScanCentralPath()
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<GlobalConfiguration>
-
getOriginalClientId
public String getOriginalClientId()
-
getOriginalClientSecret
public String getOriginalClientSecret()
-
getOriginalUsername
public String getOriginalUsername()
-
getOriginalPersonalAccessToken
public String getOriginalPersonalAccessToken()
-
getOriginalTenantId
public String getOriginalTenantId()
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
doTestApiKeyConnection
@POST public FormValidation doTestApiKeyConnection(@QueryParameter("clientId") String clientId, @QueryParameter("clientSecret") String clientSecret, @QueryParameter("baseUrl") String baseUrl, @QueryParameter("apiUrl") String apiUrl)
-
doTestPersonalAccessTokenConnection
@POST public FormValidation doTestPersonalAccessTokenConnection(@QueryParameter("username") String username, @QueryParameter("personalAccessToken") String personalAccessToken, @QueryParameter("tenantId") String tenantId, @QueryParameter("baseUrl") String baseUrl, @QueryParameter("apiUrl") String apiUrl)
-
doFillClientIdItems
public ListBoxModel doFillClientIdItems()
-
doFillClientSecretItems
public ListBoxModel doFillClientSecretItems()
-
doFillUsernameItems
public ListBoxModel doFillUsernameItems()
-
doFillPersonalAccessTokenItems
public ListBoxModel doFillPersonalAccessTokenItems()
-
doFillTenantIdItems
public ListBoxModel doFillTenantIdItems()
-
testConnection
public FormValidation testConnection(FodApiConnection testApi)
-
-