manual redaction fixes
This commit is contained in:
parent
da14646cb7
commit
00dd6b9008
@ -20,13 +20,14 @@ public class RedactionLogMergeService {
|
|||||||
|
|
||||||
public RedactionLog mergeRedactionLogData(RedactionLog redactionLog, String dossierTemplateId, ManualRedactions manualRedactions) {
|
public RedactionLog mergeRedactionLogData(RedactionLog redactionLog, String dossierTemplateId, ManualRedactions manualRedactions) {
|
||||||
|
|
||||||
log.info("Merging Redaction log with manual redactions ");
|
log.info("Merging Redaction log with manual redactions {}", manualRedactions);
|
||||||
if (manualRedactions != null) {
|
if (manualRedactions != null) {
|
||||||
|
|
||||||
var manualRedactionLogEntries = addManualAddEntries(manualRedactions.getEntriesToAdd(), manualRedactions.getComments(), dossierTemplateId);
|
var manualRedactionLogEntries = addManualAddEntries(manualRedactions.getEntriesToAdd(), manualRedactions.getComments(), dossierTemplateId);
|
||||||
|
|
||||||
redactionLog.getRedactionLogEntry().addAll(manualRedactionLogEntries);
|
redactionLog.getRedactionLogEntry().addAll(manualRedactionLogEntries);
|
||||||
|
|
||||||
|
log.info("Adding {}", manualRedactionLogEntries);
|
||||||
for (RedactionLogEntry entry : redactionLog.getRedactionLogEntry()) {
|
for (RedactionLogEntry entry : redactionLog.getRedactionLogEntry()) {
|
||||||
processRedactionLogEntry(manualRedactions, dossierTemplateId, entry);
|
processRedactionLogEntry(manualRedactions, dossierTemplateId, entry);
|
||||||
entry.setComments(manualRedactions.getComments().get(entry.getId()));
|
entry.setComments(manualRedactions.getComments().get(entry.getId()));
|
||||||
@ -175,6 +176,7 @@ public class RedactionLogMergeService {
|
|||||||
RedactionLogEntry redactionLogEntry = createRedactionLogEntry(manualRedactionEntry, manualRedactionEntry.getId(), dossierTemplateId);
|
RedactionLogEntry redactionLogEntry = createRedactionLogEntry(manualRedactionEntry, manualRedactionEntry.getId(), dossierTemplateId);
|
||||||
redactionLogEntry.setPositions(manualRedactionEntry.getPositions());
|
redactionLogEntry.setPositions(manualRedactionEntry.getPositions());
|
||||||
redactionLogEntry.setComments(comments.get(manualRedactionEntry.getId()));
|
redactionLogEntry.setComments(comments.get(manualRedactionEntry.getId()));
|
||||||
|
redactionLogEntries.add(redactionLogEntry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user