Package org.dspace.checker.service
Interface SimpleReporterService
-
- All Known Implementing Classes:
SimpleReporterServiceImpl
public interface SimpleReporterServiceSimple Reporting Class which can return several different reports.- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBitstreamNotFoundReport(Context context, 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.intgetChangedChecksumReport(Context context, 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.intgetDeletedBitstreamReport(Context context, Date startDate, Date endDate, OutputStreamWriter osw)Returns the bitstreams set found to be deleted for the specified date range.intgetNotToBeProcessedReport(Context context, Date startDate, Date endDate, OutputStreamWriter osw)The bitstreams that were set to not be processed report for the specified date range.intgetUncheckedBitstreamsReport(Context context, OutputStreamWriter osw)The bitstreams that are not known to the checksum checker.
-
-
-
Method Detail
-
getDeletedBitstreamReport
int getDeletedBitstreamReport(Context context, Date startDate, Date endDate, OutputStreamWriter osw) throws IOException, SQLException
Returns the bitstreams set found to be deleted for the specified date range.- Parameters:
context- contextstartDate- the start date rangeendDate- the end date rangeosw- the output stream writer to write to- Returns:
- number of bitstreams found
- Throws:
IOException- if IO error if io error occursSQLException- if database error
-
getChangedChecksumReport
int getChangedChecksumReport(Context context, Date startDate, Date 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- contextstartDate- 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 occursSQLException- if database error
-
getBitstreamNotFoundReport
int getBitstreamNotFoundReport(Context context, Date startDate, Date 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- contextstartDate- 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 occursSQLException- if database error
-
getNotToBeProcessedReport
int getNotToBeProcessedReport(Context context, Date startDate, Date endDate, OutputStreamWriter osw) throws IOException, SQLException
The bitstreams that were set to not be processed report for the specified date range.- Parameters:
context- contextstartDate- 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 occursSQLException- 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- contextosw- the output stream writer to write to- Returns:
- number of bitstreams found
- Throws:
IOException- if IO error if io error occursSQLException- if database error
-
-