public interface VerificationPolicy
The ResourceSync Specification is a framework. Depending on community-specific agreements, the hash,
last modification date and size of a resource may or may not be given as attributes on an item. Depending on the
specific implementation of the ResourceManager
these attributes, if given, may or may not be
verifiable. A VerificationPolicy should adjust for these Source community- and Destination-specific
circumstances.
Modifier and Type | Method and Description |
---|---|
boolean |
continueVerification(VerificationStatus stHash,
VerificationStatus stLastMod,
VerificationStatus stSize)
Should successive verifications go on, given the status of verifications.
|
boolean |
isVerified(VerificationStatus stHash,
VerificationStatus stLastMod,
VerificationStatus stSize)
Can the resource be marked as verified, given the status of verifications.
|
boolean |
repeatDownload(VerificationStatus stHash,
VerificationStatus stLastMod,
VerificationStatus stSize)
Should we repeat the download of a resource, given the status of verifications.
|
boolean continueVerification(VerificationStatus stHash, VerificationStatus stLastMod, VerificationStatus stSize)
stHash
- VerificationStatus
of hash of resourcestLastMod
- VerificationStatus
of last modified date of resourcestSize
- VerificationStatus
of the size of the resourcetrue
if verification should continue, false
otherwiseboolean repeatDownload(VerificationStatus stHash, VerificationStatus stLastMod, VerificationStatus stSize)
stHash
- VerificationStatus
of hash of resourcestLastMod
- VerificationStatus
of last modified date of resourcestSize
- VerificationStatus
of the size of the resourcetrue
if download should be repeated, false
otherwiseboolean isVerified(VerificationStatus stHash, VerificationStatus stLastMod, VerificationStatus stSize)
stHash
- VerificationStatus
of hash of resourcestLastMod
- VerificationStatus
of last modified date of resourcestSize
- VerificationStatus
of the size of the resourcetrue
if resource should be marked as verified, false
otherwiseCopyright © 2017. All rights reserved.