@Extension @Symbol(value="dependencyTrackPublisher") public static final class DependencyTrackPublisher.DescriptorImpl extends BuildStepDescriptor<Publisher> implements Serializable
Descriptor for DependencyTrackPublisher. Used as a singleton.
The class is marked as public so that it can be accessed from views.
See src/main/resources/org/jenkinsci/plugins/DependencyCheck/DependencyTrackBuilder/*.jelly for the actual HTML
fragment for the configuration screen.
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Constructor and Description |
|---|
DescriptorImpl()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
Takes the /apply/save step in the global config and saves the JSON data.
|
FormValidation |
doCheckDependencyTrackUrl(String value)
Performs input validation when submitting the global config
|
ListBoxModel |
doFillProjectIdItems()
Retrieve the projects to populate the dropdown.
|
FormValidation |
doTestConnection(String dependencyTrackUrl,
String dependencyTrackApiKey)
Performs an on-the-fly check of the Dependency-Track URL and api key
parameters by making a simple call to the server and validating
the response code.
|
String |
getDependencyTrackApiKey() |
int |
getDependencyTrackPollingTimeout() |
String |
getDependencyTrackUrl() |
String |
getDisplayName()
This name is used on the build configuration screen.
|
boolean |
isApplicable(Class<? extends AbstractProject> aClass) |
boolean |
isDependencyTrackAutoCreateProjects() |
void |
setDependencyTrackApiKey(String dependencyTrackApiKey) |
void |
setDependencyTrackAutoCreateProjects(boolean dependencyTrackAutoCreateProjects) |
void |
setDependencyTrackPollingTimeout(int dependencyTrackPollingTimeout) |
void |
setDependencyTrackUrl(String dependencyTrackUrl) |
filteraddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, 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, toMappublic DescriptorImpl()
public boolean isApplicable(Class<? extends AbstractProject> aClass)
isApplicable in class BuildStepDescriptor<Publisher>public ListBoxModel doFillProjectIdItems()
public FormValidation doCheckDependencyTrackUrl(@QueryParameter String value)
value - The value of the URL as specified in the global configpublic FormValidation doTestConnection(@QueryParameter String dependencyTrackUrl, @QueryParameter String dependencyTrackApiKey)
dependencyTrackUrl - the base URL to Dependency-TrackdependencyTrackApiKey - the API key to use for authenticationpublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws Descriptor.FormException
configure in class Descriptor<Publisher>req - the requestformData - the form dataFormException - an exception validating form inputDescriptor.FormException@DataBoundSetter public void setDependencyTrackUrl(String dependencyTrackUrl)
@DataBoundSetter public void setDependencyTrackApiKey(String dependencyTrackApiKey)
@DataBoundSetter public void setDependencyTrackAutoCreateProjects(boolean dependencyTrackAutoCreateProjects)
@DataBoundSetter public void setDependencyTrackPollingTimeout(int dependencyTrackPollingTimeout)
public String getDisplayName()
getDisplayName in class Descriptor<Publisher>public String getDependencyTrackUrl()
public String getDependencyTrackApiKey()
public boolean isDependencyTrackAutoCreateProjects()
public int getDependencyTrackPollingTimeout()
Copyright © 2018–2020 OWASP. All rights reserved.