Pull request #138: added versions to analyze result

Merge in RED/redaction-service from improved-redaction-performance to master

* commit '93d75e2f1c9f692989b69d2c20df7073f6db45c7':
  added versions to analyze result
This commit is contained in:
Timo Bejan 2021-04-16 15:12:39 +02:00
commit 8429e262ea
2 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,8 @@ public class AnalyzeResult {
private boolean hasRedactions; private boolean hasRedactions;
private boolean hasImages; private boolean hasImages;
private boolean hasUpdates; private boolean hasUpdates;
private long dictionaryVersion;
private long rulesVersion;
} }

View File

@ -36,6 +36,9 @@ public class AnalyzeResponseService {
.hasRedactions(hasRedactions) .hasRedactions(hasRedactions)
.hasRequests(hasRequests) .hasRequests(hasRequests)
.hasImages(hasImages) .hasImages(hasImages)
.hasUpdates(hasUpdates).build(); .hasUpdates(hasUpdates)
.rulesVersion(redactionLog.getRulesVersion())
.dictionaryVersion(redactionLog.getDictionaryVersion())
.build();
} }
} }