Class ContrastPluginConfig.ContrastPluginConfigDescriptor
java.lang.Object
hudson.model.Descriptor<JobProperty<?>>
hudson.model.JobPropertyDescriptor
com.aspectsecurity.contrast.contrastjenkins.ContrastPluginConfig.ContrastPluginConfigDescriptor
- Enclosing class:
ContrastPluginConfig
@Extension
public static class ContrastPluginConfig.ContrastPluginConfigDescriptor
extends JobPropertyDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) doCheckApiKey(String value) Validation of the 'apiKey' form Field.doCheckOrgUuid(String value) Validation of the 'orgUuid' form Field.doCheckProfileName(String value) Validation of the 'name' form Field.doCheckServiceKey(String value) Validation of the 'serviceKey' form Field.doCheckTeamServerUrl(String value) Validation of the 'teamServerUrl' form Field.doCheckThresholdCount(String value) Validation of the 'thresholdCount' form Field.doCheckThresholdSeverity(String value) Validation of the 'thresholdSeverity' form Field.doCheckUsername(String value) Validation of the 'username' form Field.Fills the Threshold Severity select drop down with severities for the configured application.doFillThresholdVulnTypeItems(Item item, String teamServerProfileName) Fills the Threshold Category select drop down with vulnerability types for the configured profile.doTestTeamServerConnection(String username, Secret apiKey, Secret serviceKey, String teamServerUrl) Validates the configured TeamServer profile by attempting to get the default profile for the username.Methods inherited from class hudson.model.JobPropertyDescriptor
all, getPropertyDescriptors, isApplicable, newInstance, newInstanceMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
ContrastPluginConfigDescriptor
public ContrastPluginConfigDescriptor()
-
-
Method Details
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classDescriptor<JobProperty<?>>- Throws:
Descriptor.FormException
-
doFillTeamServerProfileNameItems
-
doFillThresholdVulnTypeItems
public ListBoxModel doFillThresholdVulnTypeItems(@AncestorInPath Item item, @QueryParameter("teamServerProfileName") String teamServerProfileName) throws IOException Fills the Threshold Category select drop down with vulnerability types for the configured profile.- Returns:
- ListBoxModel filled with vulnerability types.
- Throws:
IOException
-
doTestTeamServerConnection
public FormValidation doTestTeamServerConnection(@QueryParameter("username") String username, @QueryParameter("apiKey") Secret apiKey, @QueryParameter("serviceKey") Secret serviceKey, @QueryParameter("teamServerUrl") String teamServerUrl) throws IOException, javax.servlet.ServletException Validates the configured TeamServer profile by attempting to get the default profile for the username.- Parameters:
username- String username of the TeamServer userapiKey- String apiKey of the TeamServer userserviceKey- String serviceKey of the TeamServer userteamServerUrl- String TeamServer Url- Returns:
- FormValidation
- Throws:
IOExceptionjavax.servlet.ServletException
-
getTeamServerProfiles
-
getGlobalThresholdConditions
-
doFillThresholdSeverityItems
Fills the Threshold Severity select drop down with severities for the configured application.- Returns:
- ListBoxModel filled with severities.
-
doCheckThresholdCount
Validation of the 'thresholdCount' form Field.- Parameters:
value- This parameter receives the value that the user has typed.- Returns:
- Indicates the outcome of the validation. This is sent to the browser.
-
doCheckProfileName
Validation of the 'name' form Field.- Parameters:
value- This parameter receives the value that the user has typed.- Returns:
- Indicates the outcome of the validation. This is sent to the browser.
-
doCheckUsername
Validation of the 'username' form Field.- Parameters:
value- This parameter receives the value that the user has typed.- Returns:
- Indicates the outcome of the validation. This is sent to the browser.
-
doCheckApiKey
Validation of the 'apiKey' form Field.- Parameters:
value- This parameter receives the value that the user has typed.- Returns:
- Indicates the outcome of the validation. This is sent to the browser.
-
doCheckServiceKey
Validation of the 'serviceKey' form Field.- Parameters:
value- This parameter receives the value that the user has typed.- Returns:
- Indicates the outcome of the validation. This is sent to the browser.
-
doCheckThresholdSeverity
Validation of the 'thresholdSeverity' form Field.- Parameters:
value- This parameter receives the value that the user has typed.- Returns:
- Indicates the outcome of the validation. This is sent to the browser.
-
doCheckTeamServerUrl
Validation of the 'teamServerUrl' form Field.- Parameters:
value- This parameter receives the value that the user has typed.- Returns:
- Indicates the outcome of the validation. This is sent to the browser.
-
doCheckOrgUuid
Validation of the 'orgUuid' form Field.- Parameters:
value- This parameter receives the value that the user has typed.- Returns:
- Indicates the outcome of the validation. This is sent to the browser.
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<JobProperty<?>>
-
doFillVulnerableBuildResultItems
-