mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-16 17:57:43 +00:00
Resolved backwards compatability issues regarding getArtifactType
This commit is contained in:
parent
b15a1553a2
commit
34e227f9a0
@ -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<BlackboardArtifact> artifacts) {
|
||||
this(moduleName, artifactType);
|
||||
this.artifacts = artifacts;
|
||||
@ -115,6 +113,16 @@ public class ModuleDataEvent extends ChangeEvent {
|
||||
public Collection<BlackboardArtifact> 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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user