Add properties to enable incremental scans
@@ -30,6 +30,10 @@ public class CxProperties {
private boolean multiTenant;
private String scanPreset;
private String configuration;
+ private Boolean incremental = false;
+ private Integer incrementalThreshold = 7;
+ private Integer incrementalNumScans = 5;
+
private String team;
private Boolean offline = false;
private Integer scanTimeout = 120;
@@ -83,6 +87,18 @@ public class CxProperties {
return this.multiTenant;
}
+ public @NotNull Boolean getIcremental() {
+ return this.incremental;
+ }
+
+ public @NotNull Integer getIncrementalThreshold() {
+ return this.incrementalThreshold;
+ }
+
+ public @NotNull Integer getIncrementalNumScans(){
+ return this.incrementalNumScans;
+ }
+
public String getScanPreset() {
return this.scanPreset;
}
@@ -114,6 +130,7 @@ public class CxProperties {
public String getJiraIssuetypeField() {
return this.jiraIssuetypeField;
}
+
public @NotNull
@NotBlank String getPortalUrl() {
return this.portalUrl;
@@ -167,6 +184,18 @@ public class CxProperties {
this.multiTenant = multiTenant;
}
+ public void setIncremental(@NotNull Boolean incremental) {
+ this.incremental = incremental;
+ }
+
+ public void setIncrementalThreshold(@NotNull Integer incrementalThreshold){
+ this.incrementalThreshold = incrementalThreshold;
+ }
+
+ public void setIncrementalNumScans(@NotNull Integer incrementalNumScans){
+ this.incrementalNumScans = incrementalNumScans;
+ }
+
public void setScanPreset(String scanPreset) {
this.scanPreset = scanPreset;
}
