7673 Add ingest job IDs to artifact posts

This commit is contained in:
Richard Cordovano 2021-10-21 12:36:34 -04:00
parent 7bf19ac6ab
commit 76eef843f6

View File

@ -35,9 +35,9 @@ import org.sleuthkit.datamodel.BlackboardArtifact;
import org.sleuthkit.datamodel.TskCoreException; import org.sleuthkit.datamodel.TskCoreException;
/** /**
* An event published when an artifact (data artifct or analysis result = "new * An event published when an artifact (data artifact or analysis result) is
* data") is posted to the blackboard. The "old" value is a legacy * posted to the blackboard. The "old" value is a legacy ModuleDataEvent object.
* ModuleDataEvent object. The "new" value is null. * The "new" value is null.
*/ */
public final class BlackboardPostEvent extends AutopsyEvent implements Serializable { public final class BlackboardPostEvent extends AutopsyEvent implements Serializable {
@ -46,14 +46,15 @@ public final class BlackboardPostEvent extends AutopsyEvent implements Serializa
private transient ModuleDataEvent eventData; private transient ModuleDataEvent eventData;
/** /**
* Constructs an event to be published when new content is added to a case * Constructs an event published when an artifact (data artifact or analysis
* or there is a change a recorded attribute of existing content. * 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 * @param eventData A ModuleDataEvent object containing the data associated
* with the blackboard post. * with the blackboard post.
*/ */
public BlackboardPostEvent(ModuleDataEvent eventData) { public BlackboardPostEvent(ModuleDataEvent eventData) {
/** /*
* Putting a serializable data holding object into oldValue to allow for * Putting a serializable data holding object into oldValue to allow for
* lazy loading of the ModuleDataEvent object for remote events. This * lazy loading of the ModuleDataEvent object for remote events. This
* bypasses the issues related to the serialization and de-serialization * bypasses the issues related to the serialization and de-serialization
@ -79,13 +80,13 @@ public final class BlackboardPostEvent extends AutopsyEvent implements Serializa
*/ */
@Override @Override
public Object getOldValue() { public Object getOldValue() {
/** /*
* The eventData field is set in the constructor, but it is transient so * The eventData field is set in the constructor, but it is transient,
* it will become null when the event is serialized for publication over * so it will become null when the event is serialized for publication
* a network. Doing a lazy load of the ModuleDataEvent object bypasses * over a network. Doing a lazy load of the ModuleDataEvent object
* the issues related to the serialization and de-serialization of * bypasses the issues related to the serialization and de-serialization
* BlackboardArtifact objects and may also save database round trips * of BlackboardArtifact objects and may also save database round trips
* from other nodes since subscribers to this event are often not * from other hosts since subscribers to this event are often not
* interested in the event data. * interested in the event data.
*/ */
if (null != eventData) { if (null != eventData) {