org.dspace.checker
Interface SimpleReporter

All Known Implementing Classes:
SimpleReporterImpl

public interface SimpleReporter

Simple Reporting Class which can return several different reports.

Author:
Jim Downing, Grace Carpenter, Nathan Sarr

Method Summary
 int getBitstreamNotFoundReport(Date startDate, Date endDate, OutputStreamWriter osw)
          The report of bitstreams for the specified date range where it was determined the bitstreams can no longer be found.
 int getChangedChecksumReport(Date startDate, Date endDate, OutputStreamWriter osw)
          The a report of bitstreams found where the checksum has been changed since the last check for the specified date range.
 int getDeletedBitstreamReport(Date startDate, Date endDate, OutputStreamWriter osw)
          Returns the bitstreams set found to be deleted for the specified date range.
 int getNotToBeProcessedReport(Date startDate, Date endDate, OutputStreamWriter osw)
          The bitstreams that were set to not be processed report for the specified date range.
 int getUncheckedBitstreamsReport(OutputStreamWriter osw)
          The bitstreams that are not known to the checksum checker.
 

Method Detail

getDeletedBitstreamReport

int getDeletedBitstreamReport(Date startDate,
                              Date endDate,
                              OutputStreamWriter osw)
                              throws IOException
Returns the bitstreams set found to be deleted for the specified date range.

Parameters:
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 occurs

getChangedChecksumReport

int getChangedChecksumReport(Date startDate,
                             Date endDate,
                             OutputStreamWriter osw)
                             throws IOException
The a report of bitstreams found where the checksum has been changed since the last check for the specified date range.

Parameters:
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 occurs

getBitstreamNotFoundReport

int getBitstreamNotFoundReport(Date startDate,
                               Date endDate,
                               OutputStreamWriter osw)
                               throws IOException
The report of bitstreams for the specified date range where it was determined the bitstreams can no longer be found.

Parameters:
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 occurs

getNotToBeProcessedReport

int getNotToBeProcessedReport(Date startDate,
                              Date endDate,
                              OutputStreamWriter osw)
                              throws IOException
The bitstreams that were set to not be processed report for the specified date range.

Parameters:
startDate - the start date range.
endDate - the end date range.
osw - the output stream writer to write to
Throws:
IOException - if io error occurs

getUncheckedBitstreamsReport

int getUncheckedBitstreamsReport(OutputStreamWriter osw)
                                 throws IOException
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:
osw - the output stream writer to write to
Returns:
number of bitstreams found
Throws:
IOException - if io error occurs


Copyright © 2010 DuraSpace. All Rights Reserved.