Class GetBrowserReports

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetBrowserReports

public class GetBrowserReports extends DAO
A Data Access Object to read browser Reporting API data.
Since:
12.0
Version:
12.0
Author:
Luke
  • Constructor Details

    • GetBrowserReports

      public GetBrowserReports(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • getBrowserReports

      public List<BrowserReport> getBrowserReports() throws DAOException
      Retrieves all Reporting API reports from the database.
      Returns:
      a List of BrowserReport beans
      Throws:
      DAOException - if a JDBC error occurs
    • getStatistics

      public List<CSPViolations> getStatistics() throws DAOException
      Returns aggregated CSP violation data.
      Returns:
      a List of CSPViolations beans
      Throws:
      DAOException - if a JDBC error occurs
    • getReportsByURL

      public List<BrowserReport> getReportsByURL(String url) throws DAOException
      Retrieves all Reporting API reports for a particular URL from the database.
      Parameters:
      url - the site URL
      Returns:
      a List of BrowserReport beans
      Throws:
      DAOException - if a JDBC error occurs