Package org.dspace.checker
Class ChecksumHistory
java.lang.Object
org.dspace.checker.ChecksumHistory
- All Implemented Interfaces:
ReloadableEntity<Long>
Represents a history record for the bitstream.
- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor, create object using:ChecksumHistoryService.addHistory(Context, MostRecentChecksum) -
Method Summary
Modifier and TypeMethodDescriptionGet the extpected checksum.getID()The unique identifier of this entity instance.Get the process end date.Get the process start date.Return the processing result.voidsetBitstream(Bitstream bitstream) voidsetChecksumCalculated(String checksumCalculated) Set the checksum calculated.voidsetChecksumExpected(String checksumExpected) Set the expected checksum.voidsetProcessEndDate(Instant processEndDate) Set the process end date.voidsetProcessStartDate(Instant processStartDate) Set the process start date.voidsetResult(ChecksumResult result) Set the checksum processing result.
-
Constructor Details
-
ChecksumHistory
protected ChecksumHistory()Protected constructor, create object using:ChecksumHistoryService.addHistory(Context, MostRecentChecksum)
-
-
Method Details
-
getID
Description copied from interface:ReloadableEntityThe unique identifier of this entity instance.- Specified by:
getIDin interfaceReloadableEntity<Long>- Returns:
- the value of the primary key for this instance.
-
getBitstream
- Returns:
- Returns the bitstreamId.
-
setBitstream
-
getChecksumCalculated
- Returns:
- Returns the checksumCalculated.
-
setChecksumCalculated
Set the checksum calculated.- Parameters:
checksumCalculated- The checksumCalculated to set.
-
getChecksumExpected
Get the extpected checksum.- Returns:
- Returns the checksumExpected.
-
setChecksumExpected
Set the expected checksum.- Parameters:
checksumExpected- The checksumExpected to set.
-
getProcessEndDate
Get the process end date. This is the date and time the processing ended.- Returns:
- Returns the processEndDate.
-
setProcessEndDate
Set the process end date. This is the date and time the processing ended.- Parameters:
processEndDate- The processEndDate to set.
-
getProcessStartDate
Get the process start date. This is the date and time the processing started.- Returns:
- Returns the processStartDate.
-
setProcessStartDate
Set the process start date. This is the date and time the processing started.- Parameters:
processStartDate- The processStartDate to set.
-
getResult
Return the processing result.- Returns:
- result
-
setResult
Set the checksum processing result.- Parameters:
result- The result to set.
-