Class ValidatingObjectHandler
- java.lang.Object
-
- org.fcrepo.migration.validator.impl.ValidatingObjectHandler
-
- All Implemented Interfaces:
org.fcrepo.migration.FedoraObjectVersionHandler
public class ValidatingObjectHandler extends Object implements org.fcrepo.migration.FedoraObjectVersionHandler
A streaming object handler implementation that performs object scoped validations on behalf of the Fedora3ObjectValidator.- Author:
- dbernstein
-
-
Field Summary
Fields Modifier and Type Field Description static StringF3_CREATED_DATEstatic StringF3_LABELstatic StringF3_LAST_MODIFIED_DATEstatic StringF3_OWNER_IDstatic StringF3_STATE
-
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)
-
-
-
Field Detail
-
F3_LABEL
public static final String F3_LABEL
- See Also:
- Constant Field Values
-
F3_STATE
public static final String F3_STATE
- See Also:
- Constant Field Values
-
F3_CREATED_DATE
public static final String F3_CREATED_DATE
- See Also:
- Constant Field Values
-
F3_LAST_MODIFIED_DATE
public static final String F3_LAST_MODIFIED_DATE
- See Also:
- Constant Field Values
-
F3_OWNER_ID
public static final String F3_OWNER_ID
- See Also:
- Constant Field Values
-
-
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.- Returns:
-
validateDatastream
public void validateDatastream(String dsId, org.fcrepo.migration.ObjectReference objectReference)
-
-