mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +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 moduleName Module name
|
||||||
* @param artifactType Type of artifact that was posted to blackboard
|
* @param artifactType Type of artifact that was posted to blackboard
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public ModuleDataEvent(String moduleName, ARTIFACT_TYPE artifactType) {
|
public ModuleDataEvent(String moduleName, ARTIFACT_TYPE artifactType) {
|
||||||
super(artifactType);
|
super(artifactType);
|
||||||
this.blackboardArtifactType = new BlackboardArtifact.Type(artifactType.getTypeID(), artifactType.getLabel(), artifactType.getDisplayName());
|
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
|
* @param artifacts List of specific artifact values that were added to
|
||||||
* blackboard
|
* blackboard
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public ModuleDataEvent(String moduleName, ARTIFACT_TYPE artifactType, Collection<BlackboardArtifact> artifacts) {
|
public ModuleDataEvent(String moduleName, ARTIFACT_TYPE artifactType, Collection<BlackboardArtifact> artifacts) {
|
||||||
this(moduleName, artifactType);
|
this(moduleName, artifactType);
|
||||||
this.artifacts = artifacts;
|
this.artifacts = artifacts;
|
||||||
@ -115,6 +113,16 @@ public class ModuleDataEvent extends ChangeEvent {
|
|||||||
public Collection<BlackboardArtifact> getArtifacts() {
|
public Collection<BlackboardArtifact> getArtifacts() {
|
||||||
return artifacts;
|
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
|
* get module name that created the artifacts and fired the event
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user