org.jenkinsci.plugins.DependencyCheck
Class DependencyCheckBuilder.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>
          extended by org.jenkinsci.plugins.DependencyCheck.DependencyCheckBuilder.DescriptorImpl
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
DependencyCheckBuilder

@Extension
public static final class DependencyCheckBuilder.DescriptorImpl
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>

Descriptor for DependencyCheckBuilder. 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/DependencyCheckBuilder/*.jelly for the actual HTML fragment for the configuration screen.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
DependencyCheckBuilder.DescriptorImpl()
           
 
Method Summary
 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 doCheckCveUrl12Base(String value)
           
 hudson.util.FormValidation doCheckCveUrl12Modified(String value)
           
 hudson.util.FormValidation doCheckCveUrl20Base(String value)
           
 hudson.util.FormValidation doCheckCveUrl20Modified(String value)
           
 hudson.util.FormValidation doCheckMonoPath(String value)
           
 hudson.util.FormValidation doCheckNexusUrl(String value)
           
 hudson.util.FormValidation doCheckTempPath(String value)
           
 hudson.util.FormValidation doCheckZipExtensions(String value)
           
 String getCveUrl12Base()
          Returns the global configuration for CVE 1.2 base URL.
 String getCveUrl12Modified()
          Returns the global configuration for CVE 1.2 modified URL.
 String getCveUrl20Base()
          Returns the global configuration for CVE 2.0 base URL.
 String getCveUrl20Modified()
          Returns the global configuration for CVE 2.0 modified URL.
 int getDataMirroringType()
          This method returns the global configuration for dataMirroringType.
 String getDisplayName()
          This name is used on the build configuration screen.
 boolean getIsArchiveAnalyzerEnabled()
          Returns the global configuration for enabling the Archive analyzer.
 boolean getIsAssemblyAnalyzerEnabled()
          Returns the global configuration for enabling the Assembly analyzer.
 boolean getIsCentralAnalyzerEnabled()
          Returns the global configuration for enabling the Maven Central analyzer.
 boolean getIsJarAnalyzerEnabled()
          Returns the global configuration for enabling the Jar analyzer.
 boolean getIsJavascriptAnalyzerEnabled()
          Returns the global configuration for enabling the Javascript analyzer.
 boolean getIsNexusAnalyzerEnabled()
          Returns the global configuration for enabling the Nexus analyzer.
 boolean getIsNexusProxyBypassed()
          Returns the global configuration to determine if the Nexus analyzer should bypass any proxy defined in Jenkins.
 boolean getIsNuspecAnalyzerEnabled()
          Returns the global configuration for enabling the NuSpec analyzer.
 boolean getIsNvdProxyBypassed()
          Returns the global configuration to determine if downloading the NVD data feeds shall bypass any proxy defined in Jenkins.
 boolean getIsPythonAnalyzerEnabled()
          Returns the global configuration for enabling the Python analyzer.
 String getMonoPath()
          Returns the global configuration for the path and filename for the mono binary.
 String getNexusUrl()
          Returns the global configuration for the Nexus URL to use when enabled.
 String getTempPath()
          Returns the global configuration for the path to the temporary directory.
 boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
           
 boolean isMaven(Class<? extends hudson.model.AbstractProject> clazz)
           
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, 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, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyCheckBuilder.DescriptorImpl

public DependencyCheckBuilder.DescriptorImpl()
Method Detail

isApplicable

public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Builder>

isMaven

public boolean isMaven(Class<? extends hudson.model.AbstractProject> clazz)

getDisplayName

public String getDisplayName()
This name is used on the build configuration screen.

Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Builder>

doCheckZipExtensions

public hudson.util.FormValidation doCheckZipExtensions(@QueryParameter
                                                       String value)

doCheckCveUrl12Modified

public hudson.util.FormValidation doCheckCveUrl12Modified(@QueryParameter
                                                          String value)

doCheckCveUrl20Modified

public hudson.util.FormValidation doCheckCveUrl20Modified(@QueryParameter
                                                          String value)

doCheckCveUrl12Base

public hudson.util.FormValidation doCheckCveUrl12Base(@QueryParameter
                                                      String value)

doCheckCveUrl20Base

public hudson.util.FormValidation doCheckCveUrl20Base(@QueryParameter
                                                      String value)

doCheckNexusUrl

public hudson.util.FormValidation doCheckNexusUrl(@QueryParameter
                                                  String value)

doCheckMonoPath

public hudson.util.FormValidation doCheckMonoPath(@QueryParameter
                                                  String value)

doCheckTempPath

public hudson.util.FormValidation doCheckTempPath(@QueryParameter
                                                  String value)

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject formData)
                  throws hudson.model.Descriptor.FormException
Takes the /apply/save step in the global config and saves the JSON data.

Overrides:
configure in class hudson.model.Descriptor<hudson.tasks.Builder>
Parameters:
req - the request
formData - the form data
Returns:
a boolean
Throws:
FormException
hudson.model.Descriptor.FormException

getDataMirroringType

public int getDataMirroringType()
This method returns the global configuration for dataMirroringType.


getIsNvdProxyBypassed

public boolean getIsNvdProxyBypassed()
Returns the global configuration to determine if downloading the NVD data feeds shall bypass any proxy defined in Jenkins.


getCveUrl12Modified

public String getCveUrl12Modified()
Returns the global configuration for CVE 1.2 modified URL.


getCveUrl20Modified

public String getCveUrl20Modified()
Returns the global configuration for CVE 2.0 modified URL.


getCveUrl12Base

public String getCveUrl12Base()
Returns the global configuration for CVE 1.2 base URL.


getCveUrl20Base

public String getCveUrl20Base()
Returns the global configuration for CVE 2.0 base URL.


getIsJarAnalyzerEnabled

public boolean getIsJarAnalyzerEnabled()
Returns the global configuration for enabling the Jar analyzer.


getIsJavascriptAnalyzerEnabled

public boolean getIsJavascriptAnalyzerEnabled()
Returns the global configuration for enabling the Javascript analyzer.


getIsPythonAnalyzerEnabled

public boolean getIsPythonAnalyzerEnabled()
Returns the global configuration for enabling the Python analyzer.


getIsArchiveAnalyzerEnabled

public boolean getIsArchiveAnalyzerEnabled()
Returns the global configuration for enabling the Archive analyzer.


getIsAssemblyAnalyzerEnabled

public boolean getIsAssemblyAnalyzerEnabled()
Returns the global configuration for enabling the Assembly analyzer.


getIsNuspecAnalyzerEnabled

public boolean getIsNuspecAnalyzerEnabled()
Returns the global configuration for enabling the NuSpec analyzer.


getIsCentralAnalyzerEnabled

public boolean getIsCentralAnalyzerEnabled()
Returns the global configuration for enabling the Maven Central analyzer.


getIsNexusAnalyzerEnabled

public boolean getIsNexusAnalyzerEnabled()
Returns the global configuration for enabling the Nexus analyzer.


getNexusUrl

public String getNexusUrl()
Returns the global configuration for the Nexus URL to use when enabled.


getIsNexusProxyBypassed

public boolean getIsNexusProxyBypassed()
Returns the global configuration to determine if the Nexus analyzer should bypass any proxy defined in Jenkins.


getMonoPath

public String getMonoPath()
Returns the global configuration for the path and filename for the mono binary.


getTempPath

public String getTempPath()
Returns the global configuration for the path to the temporary directory.



Copyright © 2012-2015 OWASP. All Rights Reserved.