pending add to dict
This commit is contained in:
parent
5db6db52e5
commit
91108a7299
@ -277,15 +277,17 @@ public class RedactionLogMergeService {
|
|||||||
|
|
||||||
for (ManualRedactionEntry manualRedactionEntry : manualAdds) {
|
for (ManualRedactionEntry manualRedactionEntry : manualAdds) {
|
||||||
|
|
||||||
RedactionLogEntry redactionLogEntry = createRedactionLogEntry(manualRedactionEntry, manualRedactionEntry.getAnnotationId(), dossierTemplateId);
|
if (shouldCreateManualEntry(manualRedactionEntry)) {
|
||||||
redactionLogEntry.setPositions(convertPositions(manualRedactionEntry.getPositions()));
|
RedactionLogEntry redactionLogEntry = createRedactionLogEntry(manualRedactionEntry, manualRedactionEntry.getAnnotationId(), dossierTemplateId);
|
||||||
redactionLogEntry.setComments(comments.get(manualRedactionEntry.getAnnotationId()));
|
redactionLogEntry.setPositions(convertPositions(manualRedactionEntry.getPositions()));
|
||||||
redactionLogEntry.setTextBefore(manualRedactionEntry.getTextBefore());
|
redactionLogEntry.setComments(comments.get(manualRedactionEntry.getAnnotationId()));
|
||||||
redactionLogEntry.setTextAfter(manualRedactionEntry.getTextAfter());
|
redactionLogEntry.setTextBefore(manualRedactionEntry.getTextBefore());
|
||||||
|
redactionLogEntry.setTextAfter(manualRedactionEntry.getTextAfter());
|
||||||
|
|
||||||
sectionTextService.handleSectionText(sectionGrid, redactionLogEntry);
|
sectionTextService.handleSectionText(sectionGrid, redactionLogEntry);
|
||||||
|
|
||||||
redactionLogEntries.add(redactionLogEntry);
|
redactionLogEntries.add(redactionLogEntry);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return redactionLogEntries;
|
return redactionLogEntries;
|
||||||
@ -300,6 +302,14 @@ public class RedactionLogMergeService {
|
|||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private boolean shouldCreateManualEntry(ManualRedactionEntry manualRedactionEntry) {
|
||||||
|
|
||||||
|
return (!manualRedactionEntry.isAddToDictionary() && !manualRedactionEntry.isAddToDossierDictionary())
|
||||||
|
|| ((manualRedactionEntry.isAddToDictionary() || manualRedactionEntry.isAddToDictionary()) && manualRedactionEntry.getProcessedDate() == null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private RedactionLogEntry createRedactionLogEntry(ManualRedactionEntry manualRedactionEntry, String id,
|
private RedactionLogEntry createRedactionLogEntry(ManualRedactionEntry manualRedactionEntry, String id,
|
||||||
String dossierTemplateId) {
|
String dossierTemplateId) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user