-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added summary section into report #345
- Loading branch information
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...b-commons-model/src/main/java/com/mercedesbenz/sechub/commons/model/SecHubReportScan.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.mercedesbenz.sechub.commons.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class SecHubReportScan { | ||
|
||
private long total = 0; | ||
private long red = 0; | ||
private long yellow = 0; | ||
private long green = 0; | ||
|
||
public long getTotal() { | ||
return total; | ||
} | ||
|
||
public long getRed() { | ||
return red; | ||
} | ||
|
||
public long getYellow() { | ||
return yellow; | ||
} | ||
|
||
public long getGreen() { | ||
return green; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...ommons-model/src/main/java/com/mercedesbenz/sechub/commons/model/SecHubReportSummary.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.mercedesbenz.sechub.commons.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class SecHubReportSummary { | ||
|
||
SecHubReportScan codeScan = new SecHubReportScan(); | ||
SecHubReportScan infraScan = new SecHubReportScan(); | ||
|
||
public SecHubReportScan getCodeScan() { | ||
return codeScan; | ||
} | ||
|
||
public void setCodeScan(SecHubReportScan codeScan) { | ||
this.codeScan = codeScan; | ||
} | ||
|
||
public SecHubReportScan getInfraScan() { | ||
return infraScan; | ||
} | ||
|
||
public void setInfraScan(SecHubReportScan infraScan) { | ||
this.infraScan = infraScan; | ||
} | ||
} |