Pull request #140: RED-2836: Upgraded to new redaction-service api

Merge in RED/redaction-report-service from RED-2836 to master

* commit '1f11c1f85c1f419c0cfd7bc5a7a87b6e8c58042b':
  RED-2836: Upgraded to new redaction-service api
This commit is contained in:
Dominique Eiflaender 2022-03-21 13:56:07 +01:00
commit 6a2f6e4bc1
4 changed files with 8 additions and 4 deletions

View File

@ -14,7 +14,7 @@
<version>1.0-SNAPSHOT</version>
<properties>
<persistence-service.version>1.27.0</persistence-service.version>
<persistence-service.version>1.98.0</persistence-service.version>
</properties>
<dependencies>

View File

@ -14,8 +14,8 @@
<version>1.0-SNAPSHOT</version>
<properties>
<persistence-service.version>1.25.0</persistence-service.version>
<redaction-service.version>3.68.0</redaction-service.version>
<persistence-service.version>1.98.0</persistence-service.version>
<redaction-service.version>3.86.0</redaction-service.version>
</properties>
<dependencies>

View File

@ -42,6 +42,10 @@ public class RedactionLogConverterService {
return;
}
if(entry.isFalsePositive()){
return;
}
Set<Integer> pages = new HashSet<>();
for (Rectangle position : entry.getPositions()) {

View File

@ -132,7 +132,7 @@ public class ReportGenerationService {
RedactionLog redactionLog;
try {
redactionLog = redactionLogClient.getRedactionLog(dossierId, fileId, true);
redactionLog = redactionLogClient.getRedactionLog(dossierId, fileId, new ArrayList<>(), true, false);
//filter DECLINED redactions out, they should not be in reports
Iterator<RedactionLogEntry> iter = redactionLog.getRedactionLogEntry().iterator();