public class FixityResultImpl extends Object implements org.fcrepo.kernel.utils.FixityResult
| Constructor and Description |
|---|
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
|
FixityResultImpl(String storeIdentifier,
long size,
URI checksum) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
URI |
getComputedChecksum() |
long |
getComputedSize() |
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(long size,
URI checksum)
size - checksum - public FixityResultImpl(org.fcrepo.kernel.utils.CacheEntry entry,
long size,
URI checksum)
throws javax.jcr.RepositoryException
entry - size - checksum - javax.jcr.RepositoryExceptionpublic String getStoreIdentifier() throws javax.jcr.RepositoryException
getStoreIdentifier in interface org.fcrepo.kernel.utils.FixityResultjavax.jcr.RepositoryExceptionpublic 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.