Class ThresholdCondition.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<ThresholdCondition>
com.aspectsecurity.contrast.contrastjenkins.ThresholdCondition.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
ThresholdCondition

@Extension public static class ThresholdCondition.DescriptorImpl extends Descriptor<ThresholdCondition>
Descriptor for ThresholdCondition.
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • doCheckThresholdCount

      public FormValidation doCheckThresholdCount(@QueryParameter String value)
      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

      public FormValidation doCheckThresholdSeverity(@QueryParameter String value)
      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

      public FormValidation doCheckThresholdVulnType(@QueryParameter String value)
      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

      public void refreshApps(String teamServerProfileName)
    • doFillAgentTypeItems

      public ListBoxModel 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

      public ListBoxModel doFillThresholdSeverityItems()
      Fills the Threshold Severity select drop down with severities for the configured application.
      Returns:
      ListBoxModel filled with severities.
    • getDisplayName

      public String getDisplayName()
      Display name in the Build Action dropdown.
      Overrides:
      getDisplayName in class Descriptor<ThresholdCondition>
      Returns:
      String