public class SimpleReporterServiceImpl extends Object implements SimpleReporterService
| Modifier and Type | Field and Description |
|---|---|
protected BitstreamService |
bitstreamService |
protected MostRecentChecksumService |
mostRecentChecksumService |
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleReporterServiceImpl()
Main Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
applyDateFormatLong(Date thisDate) |
protected String |
applyDateFormatShort(Date thisDate) |
int |
getBitstreamNotFoundReport(Context context,
Date startDate,
Date endDate,
OutputStreamWriter osw)
Send the bitstream not found report for the specified date range.
|
int |
getChangedChecksumReport(Context context,
Date startDate,
Date endDate,
OutputStreamWriter osw)
Send the checksum changed report for the specified date range.
|
int |
getDeletedBitstreamReport(Context context,
Date startDate,
Date endDate,
OutputStreamWriter osw)
Sends the Deleted bitstream report to an administrator.
|
int |
getNotToBeProcessedReport(Context context,
Date startDate,
Date endDate,
OutputStreamWriter osw)
Send the bitstreams that were set to not be processed report for the
specified date range.
|
int |
getUncheckedBitstreamsReport(Context context,
OutputStreamWriter osw)
Get any bitstreams that are not checked by the checksum checker.
|
protected void |
printDSpaceInfoRecords(Context context,
List<Bitstream> bitstreams,
OutputStreamWriter osw)
Create a list of the found history records.
|
protected void |
printHistoryRecords(List<MostRecentChecksum> mostRecentChecksums,
OutputStreamWriter osw)
Create a list of the found history records.
|
@Autowired(required=true) protected MostRecentChecksumService mostRecentChecksumService
@Autowired(required=true) protected BitstreamService bitstreamService
protected SimpleReporterServiceImpl()
public int getDeletedBitstreamReport(Context context, Date startDate, Date endDate, OutputStreamWriter osw) throws IOException, SQLException
getDeletedBitstreamReport in interface SimpleReporterServicecontext - contextstartDate - the start date for the rangeendDate - the end date for the rangeosw - the output stream writer to write to.IOException - if IO error
if io error occursSQLException - if database errorpublic int getChangedChecksumReport(Context context, Date startDate, Date endDate, OutputStreamWriter osw) throws IOException, SQLException
getChangedChecksumReport in interface SimpleReporterServicecontext - contextstartDate - the start date for the rangeendDate - the end date for the rangeosw - the output stream writer to write to.IOException - if IO error
if io error occursSQLException - if database errorpublic int getBitstreamNotFoundReport(Context context, Date startDate, Date endDate, OutputStreamWriter osw) throws IOException, SQLException
getBitstreamNotFoundReport in interface SimpleReporterServicecontext - contextstartDate - the start date for the range.endDate - the end date for the range.osw - the output stream writer to write to.IOException - if IO error
if io error occursSQLException - if database errorpublic int getNotToBeProcessedReport(Context context, Date startDate, Date endDate, OutputStreamWriter osw) throws IOException, SQLException
getNotToBeProcessedReport in interface SimpleReporterServicecontext - contextstartDate - the start date for the rangeendDate - the end date for the rangeosw - the output stream writer to write to.IOException - if IO error
if io error occursSQLException - if database errorpublic int getUncheckedBitstreamsReport(Context context, OutputStreamWriter osw) throws IOException, SQLException
getUncheckedBitstreamsReport in interface SimpleReporterServicecontext - contextosw - the OutputStreamWriter to write toIOException - if IO error
if io error occursSQLException - if database errorprotected void printHistoryRecords(List<MostRecentChecksum> mostRecentChecksums, OutputStreamWriter osw) throws IOException
mostRecentChecksums - the list of history records to be iterated over.osw - the output stream writer to write to.IOException - if IO error
if io error occursprotected void printDSpaceInfoRecords(Context context, List<Bitstream> bitstreams, OutputStreamWriter osw) throws IOException, SQLException
context - contextbitstreams - the list of history records to be iterated over.osw - the output stream to write to.IOException - if IO error
if io error occursSQLException - if database errorCopyright © 2016 DuraSpace. All rights reserved.