Class ThresholdCondition

java.lang.Object
hudson.model.AbstractDescribableImpl<ThresholdCondition>
com.aspectsecurity.contrast.contrastjenkins.ThresholdCondition
All Implemented Interfaces:
Describable<ThresholdCondition>

public class ThresholdCondition extends AbstractDescribableImpl<ThresholdCondition>
ThresholdCondition class contains the variables and logic to populate the conditions when verifying for vulnerabilities.
  • Constructor Details

    • ThresholdCondition

      @DataBoundConstructor public ThresholdCondition(Integer thresholdCount, String thresholdSeverity, String thresholdVulnType, int applicationState, ApplicationDefinition applicationDefinition, String applicationId, boolean autoRemediated, boolean confirmed, boolean suspicious, boolean notAProblem, boolean remediated, boolean reported, boolean fixed, boolean beingTracked, boolean untracked)
  • Method Details

    • setApplicationId

      @DataBoundSetter public void setApplicationId(String applicationId)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getStringForOverriden

      public String getStringForOverriden()
      Returns the description of a condition that has been overridden with a job outcome policy.
      Returns:
    • getPreparedApplicationId

      public String getPreparedApplicationId()
      Background: Some configurations can make the Application ID to be stored as 'AppName (AppId)' This is a getter that only returns the actual application id. Returns a proper application Id.
      Returns:
      Returns the app id without the name attached
    • getVulnerabilityStatuses

      public List<String> getVulnerabilityStatuses()