This commit is contained in:
apriestman 2021-07-29 12:06:44 -04:00
parent 96542711fc
commit 8bdd91fbd1

View File

@ -200,10 +200,6 @@ public class IngestEventsListener {
createCrProperties = value; createCrProperties = value;
} }
static private String createOtherCasesAttrString(List<String> caseDisplayNames) {
return caseDisplayNames.stream().distinct().collect(Collectors.joining(","));
}
/** /**
* Make a "previously seen" artifact based on a new artifact being * Make a "previously seen" artifact based on a new artifact being
* previously seen. * previously seen.
@ -227,7 +223,7 @@ public class IngestEventsListener {
value), value),
new BlackboardAttribute( new BlackboardAttribute(
TSK_OTHER_CASES, MODULE_NAME, TSK_OTHER_CASES, MODULE_NAME,
createOtherCasesAttrString(caseDisplayNames))); caseDisplayNames.stream().distinct().collect(Collectors.joining(","))));
makeAndPostArtifact(BlackboardArtifact.Type.TSK_PREVIOUSLY_SEEN, originalArtifact, attributesForNewArtifact, Bundle.IngestEventsListener_prevTaggedSet_text()); makeAndPostArtifact(BlackboardArtifact.Type.TSK_PREVIOUSLY_SEEN, originalArtifact, attributesForNewArtifact, Bundle.IngestEventsListener_prevTaggedSet_text());
} }
@ -256,7 +252,7 @@ public class IngestEventsListener {
value), value),
new BlackboardAttribute( new BlackboardAttribute(
TSK_OTHER_CASES, MODULE_NAME, TSK_OTHER_CASES, MODULE_NAME,
createOtherCasesAttrString(caseDisplayNames))); caseDisplayNames.stream().distinct().collect(Collectors.joining(","))));
makeAndPostArtifact(BlackboardArtifact.Type.TSK_PREVIOUSLY_SEEN, originalArtifact, attributesForNewArtifact, Bundle.IngestEventsListener_prevExists_text()); makeAndPostArtifact(BlackboardArtifact.Type.TSK_PREVIOUSLY_SEEN, originalArtifact, attributesForNewArtifact, Bundle.IngestEventsListener_prevExists_text());
} }