Pull request #68: RED-692: Added matchedRule to RedactionLog

Merge in RED/redaction-service from RED-692 to master

* commit 'f75aff5186536c4e5897bb67342c155aa7a26fd4':
  RED-692: Added matchedRule to RedactionLog
This commit is contained in:
Dominique Eiflaender 2020-11-16 13:31:47 +01:00
commit 977ece1892
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ public class RedactionLogEntry {
private String type; private String type;
private String value; private String value;
private String reason; private String reason;
private int matchedRule;
private String legalBasis; private String legalBasis;
private boolean redacted; private boolean redacted;
private boolean isHint; private boolean isHint;

View File

@ -271,6 +271,7 @@ public class AnnotationHighlightService {
.isHint(isHint(entity)) .isHint(isHint(entity))
.section(entity.getHeadline()) .section(entity.getHeadline())
.sectionNumber(entity.getSectionNumber()) .sectionNumber(entity.getSectionNumber())
.matchedRule(entity.getMatchedRule())
.build(); .build();
} }