mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 02:07:42 +00:00
7673 Add ingest job IDs to artifact posts
This commit is contained in:
parent
7bf19ac6ab
commit
76eef843f6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user