Pull request #22: RED-242: Return sectionNumber for tests

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

* commit '8344b7ccafcf98e7376c53a0a79708c51daa6d0a':
  RED-242: Return sectionNumber for tests
This commit is contained in:
Dominique Eiflaender 2020-08-12 15:51:50 +02:00
commit 98e0bf5606
2 changed files with 2 additions and 0 deletions

View File

@ -17,5 +17,6 @@ public class RedactionLogEntry {
private String section;
private float[] color;
private List<Rectangle> positions = new ArrayList<>();
private int sectionNumber;
}

View File

@ -167,6 +167,7 @@ public class AnnotationHighlightService {
redactionLogEntry.setSection(entity.getHeadline());
redactionLogEntry.setHint(isHint(entity));
classifiedDoc.getRedactionLogEntities().add(redactionLogEntry);
redactionLogEntry.setSectionNumber(entity.getSectionNumber());
}
}