@Extension @Symbol(value="dependencyTrackPublisher") public static final class DependencyTrackPublisher.DescriptorImpl extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> implements Serializable
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/DependencyTrackPublisher/*.jelly
for the actual HTML fragment for the configuration screen.| 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.
|
hudson.util.FormValidation |
doCheckDependencyTrackUrl(String value)
Performs input validation when submitting the global config
|
hudson.util.ListBoxModel |
doFillProjectIdItems()
Retrieve the projects to populate the dropdown.
|
String |
getDependencyTrackApiKey()
This method returns the global configuration for dependencyTrackApiKey.
|
String |
getDependencyTrackUrl()
This method returns the global configuration for dependencyTrackUrl.
|
String |
getDisplayName()
This name is used on the build configuration screen.
|
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> aClass) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic DescriptorImpl()
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>public hudson.util.ListBoxModel doFillProjectIdItems()
public hudson.util.FormValidation doCheckDependencyTrackUrl(@QueryParameter
String value)
value - The value of the URL as specified in the global configpublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<hudson.tasks.Publisher>req - the requestformData - the form dataFormExceptionhudson.model.Descriptor.FormExceptionpublic String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>public String getDependencyTrackUrl()
public String getDependencyTrackApiKey()
Copyright © 2018 OWASP. All rights reserved.