コード例 #1
0
 @SuppressWarnings("unchecked")
 @Override
 public void markAllOpen(List<Vulnerability> vulns) {
   for (Vulnerability vuln : vulns) {
     if (vuln != null && !vuln.isActive()) {
       vuln.setActive(true);
       vuln.setFoundByScanner(true);
       determineVulnerabilityDefectConsistencyState(vuln);
       saveOrUpdate(vuln);
     }
   }
 }
コード例 #2
0
 @SuppressWarnings("unchecked")
 @Override
 public void markAllClosed(List<Vulnerability> vulns) {
   for (Vulnerability vuln : vulns) {
     if (vuln != null && vuln.isActive()) {
       vuln.setActive(false);
       vuln.setCloseTime(Calendar.getInstance());
       vuln.setFoundByScanner(false);
       determineVulnerabilityDefectConsistencyState(vuln);
       saveOrUpdate(vuln);
     }
   }
 }