Class ContrastPluginConfig.ContrastPluginConfigDescriptor

java.lang.Object
hudson.model.Descriptor<JobProperty<?>>
hudson.model.JobPropertyDescriptor
com.aspectsecurity.contrast.contrastjenkins.ContrastPluginConfig.ContrastPluginConfigDescriptor
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
ContrastPluginConfig

@Extension public static class ContrastPluginConfig.ContrastPluginConfigDescriptor extends JobPropertyDescriptor
  • 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:
      configure in class Descriptor<JobProperty<?>>
      Throws:
      Descriptor.FormException
    • doFillTeamServerProfileNameItems

      public ListBoxModel doFillTeamServerProfileNameItems(@AncestorInPath Item item)
    • 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 user
      apiKey - String apiKey of the TeamServer user
      serviceKey - String serviceKey of the TeamServer user
      teamServerUrl - String TeamServer Url
      Returns:
      FormValidation
      Throws:
      IOException
      javax.servlet.ServletException
    • getTeamServerProfiles

      public TeamServerProfile[] getTeamServerProfiles()
    • getGlobalThresholdConditions

      public GlobalThresholdCondition[] getGlobalThresholdConditions()
    • doFillThresholdSeverityItems

      public ListBoxModel doFillThresholdSeverityItems()
      Fills the Threshold Severity select drop down with severities for the configured application.
      Returns:
      ListBoxModel filled with severities.
    • 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.
    • doCheckProfileName

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

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

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

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

      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.
    • doCheckTeamServerUrl

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

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

      public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<JobProperty<?>>
    • doFillVulnerableBuildResultItems

      public ListBoxModel doFillVulnerableBuildResultItems()