handling add to dict requests
This commit is contained in:
parent
279fdc6985
commit
af46bdca90
@ -635,13 +635,14 @@ public class RedactionLogCreatorService {
|
||||
|
||||
for (var manualRedaction : manualRedactions.getEntriesToAdd()) {
|
||||
|
||||
if (manualRedaction.getProcessedDate() == null) {
|
||||
|
||||
if (manualRedaction.isAddToDictionary() || manualRedaction.isAddToDossierDictionary()) {
|
||||
var redactionLogEntry = createRedactionLogEntry(manualRedaction, manualRedaction.getId(), dossierTemplateId);
|
||||
redactionLogEntry.setDictionaryEntry(manualRedaction.isAddToDossierDictionary());
|
||||
redactionLogEntry.setDossierDictionaryEntry(manualRedaction.isAddToDossierDictionary());
|
||||
redactionLogEntry.setPositions(manualRedaction.getPositions());
|
||||
|
||||
manualRedaction.
|
||||
|
||||
var found = redactionLog.getRedactionLogEntry().stream().filter(r -> r.getId().equalsIgnoreCase(redactionLogEntry.getId())).findAny();
|
||||
if (found.isPresent()) {
|
||||
@ -656,6 +657,7 @@ public class RedactionLogCreatorService {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class PreviewReasonHolder implements ReasonHolder {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user