Package org.dspace.checker.service
Interface ChecksumHistoryService
-
- All Known Implementing Classes:
ChecksumHistoryServiceImpl
public interface ChecksumHistoryServiceService 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddHistory(Context context, MostRecentChecksum mostRecentChecksum)voiddeleteByBitstream(Context context, Bitstream bitstream)intdeleteByDateAndCode(Context context, Date retentionDate, ChecksumResultCode result)intprune(Context context, Map<ChecksumResultCode,Long> interests)Prune the history records from the database.voidupdateMissingBitstreams(Context context)
-
-
-
Method Detail
-
updateMissingBitstreams
void updateMissingBitstreams(Context context) throws SQLException
- Throws:
SQLException
-
addHistory
void addHistory(Context context, MostRecentChecksum mostRecentChecksum) throws SQLException
- Throws:
SQLException
-
deleteByDateAndCode
int deleteByDateAndCode(Context context, Date retentionDate, ChecksumResultCode result) throws SQLException
- Throws:
SQLException
-
deleteByBitstream
void deleteByBitstream(Context context, Bitstream bitstream) throws SQLException
- Throws:
SQLException
-
prune
int prune(Context context, Map<ChecksumResultCode,Long> interests) throws SQLException
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
-
-