Class ValidatingObjectHandler
- java.lang.Object
-
- org.fcrepo.migration.validator.impl.ValidatingObjectHandler
-
- All Implemented Interfaces:
org.fcrepo.migration.FedoraObjectVersionHandler,ValidationHandler
public class ValidatingObjectHandler extends Object implements ValidationHandler
A streaming object handler implementation that performs object scoped validations on behalf of the Fedora3ObjectValidator.- Author:
- dbernstein
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.fcrepo.migration.validator.api.ValidationHandler
ValidationHandler.DateTimeResolver, ValidationHandler.PropertyResolver, ValidationHandler.ValidationResultBuilder
-
-
Field Summary
-
Fields inherited from interface org.fcrepo.migration.validator.api.ValidationHandler
DOWNLOAD_NAME_PROP, F3_CREATED_DATE, F3_LABEL, F3_LAST_MODIFIED_DATE, F3_OWNER_ID, F3_STATE, ISO_8601, OCFL_PROPERTY_RESOLVERS, RELS_DELETED_ENTRY, RELS_INT
-
-
Constructor Summary
Constructors Constructor Description ValidatingObjectHandler(org.fcrepo.storage.ocfl.OcflObjectSession session, ObjectValidationConfig config)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ValidationResult>getValidationResults()Result the validation results after processObject has been called.voidprocessObjectVersions(Iterable<org.fcrepo.migration.ObjectVersionReference> iterable, org.fcrepo.migration.ObjectInfo objectInfo)voidvalidateDatastream(String dsId, org.fcrepo.migration.ObjectReference objectReference)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fcrepo.migration.validator.api.ValidationHandler
parseRdf, splitRelsInt, validateChecksum, validateCreatedDate, validateLastModified, validateObjectProperty, validateSizeMeta, validateSizeOnDisk
-
-
-
-
Constructor Detail
-
ValidatingObjectHandler
public ValidatingObjectHandler(org.fcrepo.storage.ocfl.OcflObjectSession session, ObjectValidationConfig config)Constructor- Parameters:
session-config-
-
-
Method Detail
-
processObjectVersions
public void processObjectVersions(Iterable<org.fcrepo.migration.ObjectVersionReference> iterable, org.fcrepo.migration.ObjectInfo objectInfo)
- Specified by:
processObjectVersionsin interfaceorg.fcrepo.migration.FedoraObjectVersionHandler
-
getValidationResults
public List<ValidationResult> getValidationResults()
Result the validation results after processObject has been called.- Specified by:
getValidationResultsin interfaceValidationHandler- Returns:
-
validateDatastream
public void validateDatastream(String dsId, org.fcrepo.migration.ObjectReference objectReference)
-
-