Interface SimpleReporterService

All Known Implementing Classes:
SimpleReporterServiceImpl

public interface SimpleReporterService
Simple Reporting Class which can return several different reports.
Author:
Jim Downing, Grace Carpenter, Nathan Sarr
  • Method Details

    • getDeletedBitstreamReport

      int getDeletedBitstreamReport(Context context, Instant startDate, Instant endDate, OutputStreamWriter osw) throws IOException, SQLException
      Returns the bitstreams set found to be deleted for the specified date range.
      Parameters:
      context - context
      startDate - the start date range
      endDate - the end date range
      osw - the output stream writer to write to
      Returns:
      number of bitstreams found
      Throws:
      IOException - if IO error if io error occurs
      SQLException - if database error
    • getChangedChecksumReport

      int getChangedChecksumReport(Context context, Instant startDate, Instant endDate, OutputStreamWriter osw) throws IOException, SQLException
      The a report of bitstreams found where the checksum has been changed since the last check for the specified date range.
      Parameters:
      context - context
      startDate - the start date range.
      endDate - then end date range.
      osw - the output stream writer to write to
      Returns:
      number of bitstreams found
      Throws:
      IOException - if IO error if io error occurs
      SQLException - if database error
    • getBitstreamNotFoundReport

      int getBitstreamNotFoundReport(Context context, Instant startDate, Instant endDate, OutputStreamWriter osw) throws IOException, SQLException
      The report of bitstreams for the specified date range where it was determined the bitstreams can no longer be found.
      Parameters:
      context - context
      startDate - the start date range.
      endDate - the end date range.
      osw - the output stream writer to write to
      Returns:
      number of bitstreams found
      Throws:
      IOException - if IO error if io error occurs
      SQLException - if database error
    • getNotToBeProcessedReport

      int getNotToBeProcessedReport(Context context, Instant startDate, Instant endDate, OutputStreamWriter osw) throws IOException, SQLException
      The bitstreams that were set to not be processed report for the specified date range.
      Parameters:
      context - context
      startDate - the start date range.
      endDate - the end date range.
      osw - the output stream writer to write to
      Returns:
      number of bitstreams found
      Throws:
      IOException - if IO error if io error occurs
      SQLException - if database error
    • getUncheckedBitstreamsReport

      int getUncheckedBitstreamsReport(Context context, OutputStreamWriter osw) throws IOException, SQLException
      The bitstreams that are not known to the checksum checker. This means they are in the bitstream table but not in the most recent checksum table
      Parameters:
      context - context
      osw - the output stream writer to write to
      Returns:
      number of bitstreams found
      Throws:
      IOException - if IO error if io error occurs
      SQLException - if database error