-
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.
The draft summary table in a HTML report #345
- Loading branch information
Showing
4 changed files
with
161 additions
and
57 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
64 changes: 64 additions & 0 deletions
64
sechub-scan/src/main/java/com/mercedesbenz/sechub/domain/scan/ScanTypeCount.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,64 @@ | ||
// SPDX-License-Identifier: MIT | ||
package com.mercedesbenz.sechub.domain.scan; | ||
|
||
import com.mercedesbenz.sechub.commons.model.ScanType; | ||
|
||
public class ScanTypeCount { | ||
|
||
private ScanType scanType; | ||
private int highSeverityCount; | ||
private int mediumSeverityCount; | ||
private int lowSeverityCount; | ||
|
||
ScanTypeCount(ScanType scanType){ | ||
this.scanType = scanType; | ||
highSeverityCount = 0; | ||
mediumSeverityCount = 0; | ||
lowSeverityCount = 0; | ||
} | ||
|
||
public ScanType getScanType() { | ||
return scanType; | ||
} | ||
|
||
public void setScanType(ScanType scanType) { | ||
this.scanType = scanType; | ||
} | ||
|
||
public int getHighSeverityCount() { | ||
return highSeverityCount; | ||
} | ||
|
||
public void setHighSeverityCount(int highSeverityCount) { | ||
this.highSeverityCount = highSeverityCount; | ||
} | ||
|
||
public int getMediumSeverityCount() { | ||
return mediumSeverityCount; | ||
} | ||
|
||
public void setMediumSeverityCount(int mediumSeverityCount) { | ||
this.mediumSeverityCount = mediumSeverityCount; | ||
} | ||
|
||
public int getLowSeverityCount() { | ||
return lowSeverityCount; | ||
} | ||
|
||
public void setLowSeverityCount(int lowSeverityCount) { | ||
this.lowSeverityCount = lowSeverityCount; | ||
} | ||
|
||
public void incrementHighSeverityCount(){ | ||
this.highSeverityCount++; | ||
} | ||
|
||
public void incrementMediumSeverityCount(){ | ||
this.mediumSeverityCount++; | ||
} | ||
|
||
public void incrementLowSeverityCount(){ | ||
this.lowSeverityCount++; | ||
} | ||
|
||
} |
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
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