Package org.parosproxy.paros.db

Examples of org.parosproxy.paros.db.RecordAlert


 
  private void writeAlertToDB(Alert alert) throws HttpMalformedHeaderException, SQLException {

      TableAlert tableAlert = getModel().getDb().getTableAlert();
        HistoryReference ref = new HistoryReference(getModel().getSession(), HistoryReference.TYPE_SCANNER, alert.getMessage());
        RecordAlert recordAlert = tableAlert.write(
                recordScan.getScanId(), alert.getPluginId(), alert.getAlert(), alert.getRisk(), alert.getReliability(),
                alert.getDescription(), alert.getUri(), alert.getParam(), alert.getOtherInfo(), alert.getSolution(), alert.getReference(),
            ref.getHistoryId()
                );
       
        alert.setAlertId(recordAlert.getAlertId());
       
  }
View Full Code Here


      TableAlert tableAlert = getModel().getDb().getTableAlert();
      Vector v = tableAlert.getAlertListBySession(session.getSessionId());
     
      for (int i=0; i<v.size(); i++) {
          int alertId = ((Integer) v.get(i)).intValue();
          RecordAlert recAlert = tableAlert.read(alertId);
          Alert alert = new Alert(recAlert);
          addAlertToDisplay(alert);
      }
  }
View Full Code Here

            psAlert = conn.prepareStatement("SELECT ALERT.ALERTID FROM ALERT JOIN SCAN ON ALERT.SCANID = SCAN.SCANID WHERE SCAN.SCANID = ? ORDER BY PLUGINID");
            psAlert.setInt(1, recordScan.getScanId());
            psAlert.executeQuery();
            ResultSet rs = psAlert.getResultSet();

            RecordAlert recordAlert = null;
            Alert alert = null;
            Alert lastAlert = null;

            StringBuffer sbURLs = new StringBuffer(100);
            String s = null;
View Full Code Here

            psAlert = conn.prepareStatement("SELECT ALERT.ALERTID FROM ALERT ORDER BY RISK, PLUGINID");
      psAlert.setInt(1, recordScan.getScanId());
      psAlert.executeQuery();
      ResultSet rs = psAlert.getResultSet();

      RecordAlert recordAlert = null;
      Alert alert = null;
      Alert lastAlert = null;

      StringBuffer sbURLs = new StringBuffer(100);
      String s = null;
View Full Code Here

        int scanId = 0;
        if (recordScan != null) {
          scanId = recordScan.getScanId();
        }
       
    RecordAlert recordAlert = tableAlert.write(scanId, alert.getPluginId(),
        alert.getAlert(), alert.getRisk(), alert.getReliability(),
        alert.getDescription(), alert.getUri(), alert.getParam(),
        alert.getOtherInfo(), alert.getSolution(),
        alert.getReference(), ref.getHistoryId(),
        alert.getSourceHistoryId());

    alert.setAlertId(recordAlert.getAlertId());

  }
View Full Code Here

    TableAlert tableAlert = getModel().getDb().getTableAlert();
    Vector<Integer> v = tableAlert.getAlertListBySession(session.getSessionId());

    for (int i = 0; i < v.size(); i++) {
      int alertId = ((Integer) v.get(i)).intValue();
      RecordAlert recAlert = tableAlert.read(alertId);
      Alert alert = new Alert(recAlert);
      addAlertToDisplay(alert);
    }
  }
View Full Code Here

TOP

Related Classes of org.parosproxy.paros.db.RecordAlert

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.