org.dspace.checker
Class ChecksumHistory

java.lang.Object
  extended by org.dspace.checker.ChecksumHistory

public class ChecksumHistory
extends Object

Represents a history record for the bitstream.

Author:
Jim Downing, Grace Carpenter, Nathan Sarr

Constructor Summary
ChecksumHistory()
           
ChecksumHistory(int bitstreamId)
          Minimal Constructor.
ChecksumHistory(int bitstrmId, Date startDate, Date endDate, String checksumExpted, String checksumCalc, String inResult)
          * Full history info Constructor.
 
Method Summary
 int getBitstreamId()
           
 String getChecksumCalculated()
           
 String getChecksumExpected()
          Get the extpected checksum.
 Date getProcessEndDate()
          Get the process end date.
 Date getProcessStartDate()
          Get the process start date.
 String getResult()
          Return the processing result.
 void setChecksumCalculated(String checksumCalculated)
          Set the checksum calculated.
 void setChecksumExpected(String checksumExpected)
          Set the expected checksum.
 void setProcessEndDate(Date processEndDate)
          Set the process end date.
 void setProcessStartDate(Date processStartDate)
          Set the process start date.
 void setResult(String result)
          Set the checksum processing result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChecksumHistory

public ChecksumHistory()

ChecksumHistory

public ChecksumHistory(int bitstreamId)
Minimal Constructor.

Parameters:
bitstreamId - bitstream id in the database

ChecksumHistory

public ChecksumHistory(int bitstrmId,
                       Date startDate,
                       Date endDate,
                       String checksumExpted,
                       String checksumCalc,
                       String inResult)
* Full history info Constructor.

Parameters:
bitstrmId - bitstream Id.
startDate - process start date
endDate - process end date
checksumExpted - expected checksum
checksumCalc - calculated checksum
inResult - result information
Method Detail

getBitstreamId

public int getBitstreamId()
Returns:
Returns the bitstreamId.

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 String getResult()
Return the processing result.

Returns:

setResult

public void setResult(String result)
Set the checksum processing result.

Parameters:
result - The result to set.


Copyright © 2010 DuraSpace. All Rights Reserved.