org.dspace.checker
Class SimpleReporterImpl

java.lang.Object
  extended by org.dspace.checker.SimpleReporterImpl
All Implemented Interfaces:
SimpleReporter

public class SimpleReporterImpl
extends Object
implements SimpleReporter

Simple Reporter implementation.

Author:
Jim Downing, Grace Carpenter, Nathan Sarr

Constructor Summary
SimpleReporterImpl()
          Main Constructor.
 
Method Summary
 int getBitstreamNotFoundReport(Date startDate, Date endDate, OutputStreamWriter osw)
          Send the bitstream not found report for the specified date range.
 int getChangedChecksumReport(Date startDate, Date endDate, OutputStreamWriter osw)
          Send the checksum changed report for the specified date range.
 int getDeletedBitstreamReport(Date startDate, Date endDate, OutputStreamWriter osw)
          Sends the Deleteted bitstream report to an administrator.
 int getNotToBeProcessedReport(Date startDate, Date endDate, OutputStreamWriter osw)
          Send the bitstreams that were set to not be processed report for the specified date range.
 int getUncheckedBitstreamsReport(OutputStreamWriter osw)
          Get any bitstreams that are not checked by the checksum checker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleReporterImpl

public SimpleReporterImpl()
Main Constructor.

Parameters:
reporter - reporter to select the information
Method Detail

getDeletedBitstreamReport

public int getDeletedBitstreamReport(Date startDate,
                                     Date endDate,
                                     OutputStreamWriter osw)
                              throws IOException
Sends the Deleteted bitstream report to an administrator. for the specified date range.

Specified by:
getDeletedBitstreamReport in interface SimpleReporter
Parameters:
startDate - the start date for the range
endDate - the end date for the range
osw - the output stream writer to write to.
Returns:
number of bitstreams found
Throws:
IOException - if io error occurs

getChangedChecksumReport

public int getChangedChecksumReport(Date startDate,
                                    Date endDate,
                                    OutputStreamWriter osw)
                             throws IOException
Send the checksum changed report for the specified date range.

Specified by:
getChangedChecksumReport in interface SimpleReporter
Parameters:
startDate - the start date for the range
endDate - the end date for the range
osw - the output stream writer to write to.
Returns:
number of bitstreams found
Throws:
IOException - if io error occurs

getBitstreamNotFoundReport

public int getBitstreamNotFoundReport(Date startDate,
                                      Date endDate,
                                      OutputStreamWriter osw)
                               throws IOException
Send the bitstream not found report for the specified date range.

Specified by:
getBitstreamNotFoundReport in interface SimpleReporter
Parameters:
startDate - the start date for the range.
endDate - the end date for the range.
osw - the output stream writer to write to.
Returns:
number of bitstreams found
Throws:
IOException - if io error occurs

getNotToBeProcessedReport

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

Specified by:
getNotToBeProcessedReport in interface SimpleReporter
Parameters:
startDate - the start date for the range
endDate - the end date for the range
osw - the output stream writer to write to.
Returns:
number of bitstreams found
Throws:
IOException - if io error occurs

getUncheckedBitstreamsReport

public int getUncheckedBitstreamsReport(OutputStreamWriter osw)
                                 throws IOException
Get any bitstreams that are not checked by the checksum checker.

Specified by:
getUncheckedBitstreamsReport in interface SimpleReporter
Parameters:
osw - the OutputStreamWriter to write to
Returns:
the number of unchecked bitstreams
Throws:
IOException - if io error occurs


Copyright © 2010 DuraSpace. All Rights Reserved.