From 34e227f9a04057a788e8a487fbeeb3db8af3d76b Mon Sep 17 00:00:00 2001 From: Oliver Spohngellert Date: Tue, 12 Jan 2016 12:54:53 -0500 Subject: [PATCH] Resolved backwards compatability issues regarding getArtifactType --- .../sleuthkit/autopsy/ingest/ModuleDataEvent.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/ingest/ModuleDataEvent.java b/Core/src/org/sleuthkit/autopsy/ingest/ModuleDataEvent.java index 652c6d8645..f01d9bbdf6 100644 --- a/Core/src/org/sleuthkit/autopsy/ingest/ModuleDataEvent.java +++ b/Core/src/org/sleuthkit/autopsy/ingest/ModuleDataEvent.java @@ -56,7 +56,6 @@ public class ModuleDataEvent extends ChangeEvent { * @param moduleName Module name * @param artifactType Type of artifact that was posted to blackboard */ - @Deprecated public ModuleDataEvent(String moduleName, ARTIFACT_TYPE artifactType) { super(artifactType); this.blackboardArtifactType = new BlackboardArtifact.Type(artifactType.getTypeID(), artifactType.getLabel(), artifactType.getDisplayName()); @@ -91,7 +90,6 @@ public class ModuleDataEvent extends ChangeEvent { * @param artifacts List of specific artifact values that were added to * blackboard */ - @Deprecated public ModuleDataEvent(String moduleName, ARTIFACT_TYPE artifactType, Collection artifacts) { this(moduleName, artifactType); this.artifacts = artifacts; @@ -115,6 +113,16 @@ public class ModuleDataEvent extends ChangeEvent { public Collection getArtifacts() { return artifacts; } + + /** + * get artifact type of the new artifacts associated with the event + * + * @return + */ + public ARTIFACT_TYPE getArtifactType() { + return this.blackboardArtifactType.getArtifactType(); + } + /** * get module name that created the artifacts and fired the event *