Package org.dspace.checker
Class ChecksumHistory
- java.lang.Object
-
- org.dspace.checker.ChecksumHistory
-
- All Implemented Interfaces:
ReloadableEntity<Long>
@Entity public class ChecksumHistory extends Object implements ReloadableEntity<Long>
Represents a history record for the bitstream.
- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedChecksumHistory()Protected constructor, create object using:ChecksumHistoryService.addHistory(Context, MostRecentChecksum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitstreamgetBitstream()StringgetChecksumCalculated()StringgetChecksumExpected()Get the extpected checksum.LonggetID()The unique identifier of this entity instance.DategetProcessEndDate()Get the process end date.DategetProcessStartDate()Get the process start date.ChecksumResultgetResult()Return the processing result.voidsetBitstream(Bitstream bitstream)voidsetChecksumCalculated(String checksumCalculated)Set the checksum calculated.voidsetChecksumExpected(String checksumExpected)Set the expected checksum.voidsetProcessEndDate(Date processEndDate)Set the process end date.voidsetProcessStartDate(Date processStartDate)Set the process start date.voidsetResult(ChecksumResult result)Set the checksum processing result.
-
-
-
Constructor Detail
-
ChecksumHistory
protected ChecksumHistory()
Protected constructor, create object using:ChecksumHistoryService.addHistory(Context, MostRecentChecksum)
-
-
Method Detail
-
getID
public Long 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
public Bitstream getBitstream()
- Returns:
- Returns the bitstreamId.
-
setBitstream
public void setBitstream(Bitstream bitstream)
-
getChecksumCalculated
public String getChecksumCalculated()
- Returns:
- Returns the checksumCalculated.
-
setChecksumCalculated
public void setChecksumCalculated(String checksumCalculated)
Set the checksum calculated.- Parameters:
checksumCalculated- The checksumCalculated to set.
-
getChecksumExpected
public String getChecksumExpected()
Get the extpected checksum.- Returns:
- Returns the checksumExpected.
-
setChecksumExpected
public void setChecksumExpected(String checksumExpected)
Set the expected checksum.- Parameters:
checksumExpected- The checksumExpected to set.
-
getProcessEndDate
public Date getProcessEndDate()
Get the process end date. This is the date and time the processing ended.- Returns:
- Returns the processEndDate.
-
setProcessEndDate
public void setProcessEndDate(Date processEndDate)
Set the process end date. This is the date and time the processing ended.- Parameters:
processEndDate- The processEndDate to set.
-
getProcessStartDate
public Date getProcessStartDate()
Get the process start date. This is the date and time the processing started.- Returns:
- Returns the processStartDate.
-
setProcessStartDate
public void setProcessStartDate(Date processStartDate)
Set the process start date. This is the date and time the processing started.- Parameters:
processStartDate- The processStartDate to set.
-
getResult
public ChecksumResult getResult()
Return the processing result.- Returns:
- result
-
setResult
public void setResult(ChecksumResult result)
Set the checksum processing result.- Parameters:
result- The result to set.
-
-