public interface ChecksumStore
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes and cleans up the ChecksumStore.
|
void |
deleteEntry(String fileId,
String collectionId)
Deletes a given entry from the cache.
|
Collection<String> |
getAllFileIDs(String collectionId)
Retrieval of all the file ids in the store.
|
Date |
getCalculationDate(String fileId,
String collectionId)
Retrieve the calculation date for the checksum of the file.
|
String |
getChecksum(String fileId,
String collectionId)
Retrieve the checksum for the given file.
|
ExtractedChecksumResultSet |
getEntries(XMLGregorianCalendar minTimeStamp,
XMLGregorianCalendar maxTimeStamp,
Long maxNumberOfResults,
String collectionId)
Retrieves the entries from the store.
|
ChecksumEntry |
getEntry(String fileId,
String collectionId) |
ExtractedFileIDsResultSet |
getFileIDs(XMLGregorianCalendar minTimeStamp,
XMLGregorianCalendar maxTimeStamp,
Long maxNumberOfResults,
String collectionId)
Retrieval of file ids.
|
boolean |
hasFile(String fileId,
String collectionId)
Tells whether a given file id can be found in the cache.
|
void |
insertChecksumCalculation(String fileId,
String collectionId,
String checksum,
Date calculationDate)
Inserts a checksum calculation for a given file.
|
Date getCalculationDate(String fileId, String collectionId)
fileId
- The id of the file.collectionId
- The id of the collection for the file.String getChecksum(String fileId, String collectionId)
fileId
- The id of the file.collectionId
- The id of the collection for the file.ChecksumEntry getEntry(String fileId, String collectionId)
fileId
- The id of the file.collectionId
- The id of the collection for the file.ExtractedChecksumResultSet getEntries(XMLGregorianCalendar minTimeStamp, XMLGregorianCalendar maxTimeStamp, Long maxNumberOfResults, String collectionId)
minTimeStamp
- The minimum date for the timestamp of the extracted checksum entries.maxTimeStamp
- The maximum date for the timestamp of the extracted checksum entries.maxNumberOfResults
- The maximum number of results.collectionId
- The id of the collection for the file.void insertChecksumCalculation(String fileId, String collectionId, String checksum, Date calculationDate)
fileId
- The id of the file.collectionId
- The id of the collection for the file.checksum
- The checksum of the file.calculationDate
- The date for the calculation of the checksum for the file.ExtractedFileIDsResultSet getFileIDs(XMLGregorianCalendar minTimeStamp, XMLGregorianCalendar maxTimeStamp, Long maxNumberOfResults, String collectionId)
minTimeStamp
- The minimum date for the timestamp of the extracted file ids.maxTimeStamp
- The maximum date for the timestamp of the extracted file ids.maxNumberOfResults
- The maximum number of results.collectionId
- The id of the collection for the file.Collection<String> getAllFileIDs(String collectionId)
collectionId
- The id of the collection for the file.void deleteEntry(String fileId, String collectionId)
fileId
- The id of the file, whose entry should be removed from the cache.collectionId
- The id of the collection for the file.boolean hasFile(String fileId, String collectionId)
fileId
- The id of the file to find in the cache.collectionId
- The id of the collection for the file.void close()
Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.