public class FixityResultImpl extends Object implements org.fcrepo.kernel.utils.FixityResult
| Constructor and Description |
|---|
FixityResultImpl()
Initialize an empty fixity result
|
FixityResultImpl(org.fcrepo.kernel.utils.CacheEntry entry)
Prepare a fixity result for a Low-Level cache entry
|
FixityResultImpl(org.fcrepo.kernel.utils.CacheEntry entry,
long size,
URI checksum)
Prepare a fixity result with the expected size and checksum
|
FixityResultImpl(long size,
URI checksum)
Prepare a fixity result given the computed checksum and size
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
URI |
getComputedChecksum() |
long |
getComputedSize() |
org.fcrepo.kernel.utils.CacheEntry |
getEntry()
Get the underlying Low-Level cache entry
|
Set<org.fcrepo.kernel.utils.FixityResult.FixityState> |
getStatus() |
String |
getStoreIdentifier()
Get the identifier for the entry's store
|
int |
hashCode() |
boolean |
isSuccess()
Was the fixity declared a success
|
boolean |
matches(long size)
Check if the fixity result matches the given size
|
boolean |
matches(long size,
URI checksum)
Does the fixity entry match the given size and checksum?
|
boolean |
matches(URI checksum)
Check if the fixity result matches the given checksum URI
|
void |
setRepaired()
Mark the fixity result as been automatically repaired
|
String |
toString() |
public FixityResultImpl()
public FixityResultImpl(org.fcrepo.kernel.utils.CacheEntry entry)
entry - public FixityResultImpl(long size,
URI checksum)
size - checksum - public FixityResultImpl(org.fcrepo.kernel.utils.CacheEntry entry,
long size,
URI checksum)
entry - size - checksum - public String getStoreIdentifier()
getStoreIdentifier in interface org.fcrepo.kernel.utils.FixityResultpublic org.fcrepo.kernel.utils.CacheEntry getEntry()
getEntry in interface org.fcrepo.kernel.utils.FixityResultpublic boolean matches(URI checksum)
matches in interface org.fcrepo.kernel.utils.FixityResultchecksum - public boolean matches(long size)
matches in interface org.fcrepo.kernel.utils.FixityResultsize - public boolean matches(long size,
URI checksum)
matches in interface org.fcrepo.kernel.utils.FixityResultsize - bitstream size in byteschecksum - checksum URI in the form urn:DIGEST:RESULTpublic boolean isSuccess()
isSuccess in interface org.fcrepo.kernel.utils.FixityResultpublic void setRepaired()
setRepaired in interface org.fcrepo.kernel.utils.FixityResultpublic Set<org.fcrepo.kernel.utils.FixityResult.FixityState> getStatus()
getStatus in interface org.fcrepo.kernel.utils.FixityResultpublic long getComputedSize()
getComputedSize in interface org.fcrepo.kernel.utils.FixityResultpublic URI getComputedChecksum()
getComputedChecksum in interface org.fcrepo.kernel.utils.FixityResultCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.