Package org.dspace.checker.service
Interface ChecksumHistoryService
- All Known Implementing Classes:
ChecksumHistoryServiceImpl
public interface ChecksumHistoryService
Service interface class for the ChecksumHistory object.
The implementation of this class is responsible for all business logic calls for the ChecksumHistory object and is
autowired by spring
- Author:
- kevinvandevelde at atmire.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddHistory(Context context, MostRecentChecksum mostRecentChecksum) voiddeleteByBitstream(Context context, Bitstream bitstream) intdeleteByDateAndCode(Context context, Instant retentionDate, ChecksumResultCode result) intprune(Context context, Map<ChecksumResultCode, Long> interests) Prune the history records from the database.voidupdateMissingBitstreams(Context context)
-
Method Details
-
updateMissingBitstreams
- Throws:
SQLException
-
addHistory
- Throws:
SQLException
-
deleteByDateAndCode
int deleteByDateAndCode(Context context, Instant retentionDate, ChecksumResultCode result) throws SQLException - Throws:
SQLException
-
deleteByBitstream
- Throws:
SQLException
-
prune
Prune the history records from the database.- Parameters:
context- contextinterests- set of results and the duration of time before they are removed from the database- Returns:
- number of bitstreams deleted
- Throws:
SQLException- if database error
-