Skip to content

Commit f03f13f

Browse files
committed
add JavaDoc description
1 parent c0f6c57 commit f03f13f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

dspace-api/src/main/java/org/dspace/health/MetadataCheck.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@
3131
import org.json.JSONObject;
3232

3333
/**
34+
* This check runs the "metadataqa" curation task on the whole repository,
35+
* and provides a report about the number of errors and warnings.
36+
*
3437
* @author Milan Kuchtiak
3538
*/
3639
public class MetadataCheck extends Check {
3740

41+
private static final String CURATION_TASK_NAME = "metadataqa";
3842
private static final String QA_METADATA_ERROR_PATTERNS_JSON = "metadata-check-patterns.json";
3943
private static final String VALIDATION_TYPE_OTHER = "validation.other";
4044
private static final int COUNT_INDENTATION = 30;
@@ -88,7 +92,7 @@ public String run(ReportInfo ri) {
8892
JSONObject root = new JSONObject();
8993

9094
Curator curator = new Curator();
91-
curator.addTask("metadataqa");
95+
curator.addTask(CURATION_TASK_NAME);
9296

9397
MetadataReporter reporter = new MetadataReporter(
9498
maxErrorsToShow,

0 commit comments

Comments
 (0)