From 76eef843f6dba3fcab744a97dae11562d8c81699 Mon Sep 17 00:00:00 2001 From: Richard Cordovano Date: Thu, 21 Oct 2021 12:36:34 -0400 Subject: [PATCH] 7673 Add ingest job IDs to artifact posts --- .../ingest/events/BlackboardPostEvent.java | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/ingest/events/BlackboardPostEvent.java b/Core/src/org/sleuthkit/autopsy/ingest/events/BlackboardPostEvent.java index c9aba430dd..6429fdc682 100644 --- a/Core/src/org/sleuthkit/autopsy/ingest/events/BlackboardPostEvent.java +++ b/Core/src/org/sleuthkit/autopsy/ingest/events/BlackboardPostEvent.java @@ -35,9 +35,9 @@ import org.sleuthkit.datamodel.BlackboardArtifact; import org.sleuthkit.datamodel.TskCoreException; /** - * An event published when an artifact (data artifct or analysis result = "new - * data") is posted to the blackboard. The "old" value is a legacy - * ModuleDataEvent object. The "new" value is null. + * An event published when an artifact (data artifact or analysis result) is + * posted to the blackboard. The "old" value is a legacy ModuleDataEvent object. + * The "new" value is null. */ public final class BlackboardPostEvent extends AutopsyEvent implements Serializable { @@ -46,14 +46,15 @@ public final class BlackboardPostEvent extends AutopsyEvent implements Serializa private transient ModuleDataEvent eventData; /** - * Constructs an event to be published when new content is added to a case - * or there is a change a recorded attribute of existing content. + * Constructs an event published when an artifact (data artifact or analysis + * result) is posted to the blackboard. The "old" value is a legacy + * ModuleDataEvent object. The "new" value is null. * * @param eventData A ModuleDataEvent object containing the data associated * with the blackboard post. */ public BlackboardPostEvent(ModuleDataEvent eventData) { - /** + /* * Putting a serializable data holding object into oldValue to allow for * lazy loading of the ModuleDataEvent object for remote events. This * bypasses the issues related to the serialization and de-serialization @@ -79,13 +80,13 @@ public final class BlackboardPostEvent extends AutopsyEvent implements Serializa */ @Override public Object getOldValue() { - /** - * The eventData field is set in the constructor, but it is transient so - * it will become null when the event is serialized for publication over - * a network. Doing a lazy load of the ModuleDataEvent object bypasses - * the issues related to the serialization and de-serialization of - * BlackboardArtifact objects and may also save database round trips - * from other nodes since subscribers to this event are often not + /* + * The eventData field is set in the constructor, but it is transient, + * so it will become null when the event is serialized for publication + * over a network. Doing a lazy load of the ModuleDataEvent object + * bypasses the issues related to the serialization and de-serialization + * of BlackboardArtifact objects and may also save database round trips + * from other hosts since subscribers to this event are often not * interested in the event data. */ if (null != eventData) {