Class ThresholdCondition.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<ThresholdCondition>
com.aspectsecurity.contrast.contrastjenkins.ThresholdCondition.DescriptorImpl
- Enclosing class:
ThresholdCondition
@Extension
public static class ThresholdCondition.DescriptorImpl
extends Descriptor<ThresholdCondition>
Descriptor for
ThresholdCondition.-
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 TypeMethodDescriptiondoCheckApplicationId(Item item, String teamServerProfileName, String value) Validation of the 'applicationId' form Field.doCheckThresholdCount(String value) Validation of the 'thresholdCount' form Field.doCheckThresholdSeverity(String value) Validation of the 'thresholdSeverity' form Field.doCheckThresholdVulnType(String value) Validation of the 'thresholdCategory' form Field.doFillApplicationIdItems(Item item, String teamServerProfileName) Fills the Threshold Category combo box with application ids.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.Display name in the Build Action dropdown.voidrefreshApps(String teamServerProfileName) Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, 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, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
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.
-
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.
-
doCheckThresholdVulnType
Validation of the 'thresholdCategory' 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.
-
doCheckApplicationId
public FormValidation doCheckApplicationId(@AncestorInPath Item item, @QueryParameter("teamServerProfileName") @RelativePath("..") String teamServerProfileName, @QueryParameter String value) Validation of the 'applicationId' 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.
-
doFillApplicationIdItems
public ComboBoxModel doFillApplicationIdItems(@AncestorInPath Item item, @QueryParameter("teamServerProfileName") @RelativePath("..") String teamServerProfileName) Fills the Threshold Category combo box with application ids.- Returns:
- ComboBoxModel filled with application ids.
-
refreshApps
-
doFillAgentTypeItems
-
doFillThresholdVulnTypeItems
public ListBoxModel doFillThresholdVulnTypeItems(@AncestorInPath Item item, @QueryParameter("teamServerProfileName") @RelativePath("..") 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
-
doFillThresholdSeverityItems
Fills the Threshold Severity select drop down with severities for the configured application.- Returns:
- ListBoxModel filled with severities.
-
getDisplayName
Display name in the Build Action dropdown.- Overrides:
getDisplayNamein classDescriptor<ThresholdCondition>- Returns:
- String
-