Class ResultsReportHandler
- java.lang.Object
-
- org.fcrepo.migration.validator.report.ResultsReportHandler
-
- All Implemented Interfaces:
ReportHandler
public class ResultsReportHandler extends Object implements ReportHandler
This class handles/processes validation results by collecting detected errors Although there may be production uses, this class is currently designed to facilitate testing.- Since:
- 2020-12-20
- Author:
- awoods
-
-
Constructor Summary
Constructors Constructor Description ResultsReportHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginReport()A hook indicating the start of a result processing runvoidendReport()A hook indicating the end of a result processing runList<ValidationResult>getErrors()List<ValidationResult>getPassed()StringobjectLevelReport(ObjectValidationResults objectValidationResults)A hook hook for processing an object level validation reportStringrepositoryLevelReport(ObjectValidationResults objectValidationResults)A hook for processing a repository level validation reportStringvalidationSummary(ValidationResultsSummary validationSummary)A hook for processing a validation run's summary info.
-
-
-
Method Detail
-
beginReport
public void beginReport()
A hook indicating the start of a result processing run- Specified by:
beginReportin interfaceReportHandler
-
objectLevelReport
public String objectLevelReport(ObjectValidationResults objectValidationResults)
A hook hook for processing an object level validation report- Specified by:
objectLevelReportin interfaceReportHandler- Parameters:
objectValidationResults- An individual object validation report- Returns:
- filename of object report
-
repositoryLevelReport
public String repositoryLevelReport(ObjectValidationResults objectValidationResults)
Description copied from interface:ReportHandlerA hook for processing a repository level validation report- Specified by:
repositoryLevelReportin interfaceReportHandler- Parameters:
objectValidationResults- An individual validation report- Returns:
- filename of repository report
-
validationSummary
public String validationSummary(ValidationResultsSummary validationSummary)
A hook for processing a validation run's summary info.- Specified by:
validationSummaryin interfaceReportHandler- Parameters:
validationSummary- to be processed- Returns:
- filename of full report
-
endReport
public void endReport()
A hook indicating the end of a result processing run- Specified by:
endReportin interfaceReportHandler
-
getErrors
public List<ValidationResult> getErrors()
-
getPassed
public List<ValidationResult> getPassed()
-
-