@Extension
public static class ContrastPluginConfig.ContrastPluginConfigDescriptor
extends hudson.model.JobPropertyDescriptor
| Constructor and Description |
|---|
ContrastPluginConfigDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
hudson.util.FormValidation |
doCheckApiKey(String value)
Validation of the 'apiKey' form Field.
|
hudson.util.FormValidation |
doCheckOrgUuid(String value)
Validation of the 'orgUuid' form Field.
|
hudson.util.FormValidation |
doCheckProfileName(String value)
Validation of the 'name' form Field.
|
hudson.util.FormValidation |
doCheckServiceKey(String value)
Validation of the 'serviceKey' form Field.
|
hudson.util.FormValidation |
doCheckTeamServerUrl(String value)
Validation of the 'teamServerUrl' form Field.
|
hudson.util.FormValidation |
doCheckThresholdCount(String value)
Validation of the 'thresholdCount' form Field.
|
hudson.util.FormValidation |
doCheckThresholdSeverity(String value)
Validation of the 'thresholdSeverity' form Field.
|
hudson.util.FormValidation |
doCheckUsername(String value)
Validation of the 'username' form Field.
|
hudson.util.ListBoxModel |
doFillTeamServerProfileNameItems() |
hudson.util.ListBoxModel |
doFillThresholdSeverityItems()
Fills the Threshold Severity select drop down with severities for the configured application.
|
hudson.util.ListBoxModel |
doFillThresholdVulnTypeItems(String teamServerProfileName)
Fills the Threshold Category select drop down with vulnerability types for the configured profile.
|
hudson.util.ListBoxModel |
doFillVulnerableBuildResultItems() |
hudson.util.FormValidation |
doTestTeamServerConnection(String username,
hudson.util.Secret apiKey,
hudson.util.Secret serviceKey,
String teamServerUrl)
Validates the configured TeamServer profile by attempting to get the default profile for the username.
|
String |
getDisplayName() |
GlobalThresholdCondition[] |
getGlobalThresholdConditions() |
TeamServerProfile[] |
getTeamServerProfiles() |
all, getPropertyDescriptors, isApplicable, newInstanceaddHelpFileRedirect, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<hudson.model.JobProperty<?>>hudson.model.Descriptor.FormExceptionpublic hudson.util.ListBoxModel doFillTeamServerProfileNameItems()
public hudson.util.ListBoxModel doFillThresholdVulnTypeItems(@QueryParameter(value="teamServerProfileName")
String teamServerProfileName)
throws IOException
IOExceptionpublic hudson.util.FormValidation doTestTeamServerConnection(@QueryParameter(value="username")
String username,
@QueryParameter(value="apiKey")
hudson.util.Secret apiKey,
@QueryParameter(value="serviceKey")
hudson.util.Secret serviceKey,
@QueryParameter(value="teamServerUrl")
String teamServerUrl)
throws IOException,
javax.servlet.ServletException
username - String username of the TeamServer userapiKey - String apiKey of the TeamServer userserviceKey - String serviceKey of the TeamServer userteamServerUrl - String TeamServer UrlIOExceptionjavax.servlet.ServletExceptionpublic TeamServerProfile[] getTeamServerProfiles()
public GlobalThresholdCondition[] getGlobalThresholdConditions()
public hudson.util.ListBoxModel doFillThresholdSeverityItems()
public hudson.util.FormValidation doCheckThresholdCount(@QueryParameter
String value)
value - This parameter receives the value that the user has typed.public hudson.util.FormValidation doCheckProfileName(@QueryParameter
String value)
value - This parameter receives the value that the user has typed.public hudson.util.FormValidation doCheckUsername(@QueryParameter
String value)
value - This parameter receives the value that the user has typed.public hudson.util.FormValidation doCheckApiKey(@QueryParameter
String value)
value - This parameter receives the value that the user has typed.public hudson.util.FormValidation doCheckServiceKey(@QueryParameter
String value)
value - This parameter receives the value that the user has typed.public hudson.util.FormValidation doCheckThresholdSeverity(@QueryParameter
String value)
value - This parameter receives the value that the user has typed.public hudson.util.FormValidation doCheckTeamServerUrl(@QueryParameter
String value)
value - This parameter receives the value that the user has typed.public hudson.util.FormValidation doCheckOrgUuid(@QueryParameter
String value)
value - This parameter receives the value that the user has typed.public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<hudson.model.JobProperty<?>>public hudson.util.ListBoxModel doFillVulnerableBuildResultItems()
Copyright © 2016–2022. All rights reserved.