Autopsy  4.14.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
ModuleDataEvent.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011-2012 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.ingest;
20 
21 import java.util.Collection;
22 import javax.swing.event.ChangeEvent;
23 import org.sleuthkit.datamodel.BlackboardArtifact;
24 import org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE;
25 
49 public class ModuleDataEvent extends ChangeEvent {
50 
51  private String moduleName;
52  private BlackboardArtifact.Type blackboardArtifactType;
53  private Collection<BlackboardArtifact> artifacts;
54 
59  public ModuleDataEvent(String moduleName, ARTIFACT_TYPE artifactType) {
60  super(artifactType);
61  this.blackboardArtifactType = new BlackboardArtifact.Type(artifactType);
62  this.moduleName = moduleName;
63  }
64 
70  public ModuleDataEvent(String moduleName, BlackboardArtifact.Type blackboardArtifactType) {
73  this.moduleName = moduleName;
74  }
75 
82  public ModuleDataEvent(String moduleName, BlackboardArtifact.Type blackboardArtifactType, Collection<BlackboardArtifact> artifacts) {
84  this.artifacts = artifacts;
85  }
86 
93  public ModuleDataEvent(String moduleName, ARTIFACT_TYPE artifactType, Collection<BlackboardArtifact> artifacts) {
94  this(moduleName, artifactType);
95  this.artifacts = artifacts;
96  }
97 
104  public BlackboardArtifact.Type getBlackboardArtifactType() {
105  return this.blackboardArtifactType;
106  }
107 
113  public Collection<BlackboardArtifact> getArtifacts() {
114  return artifacts;
115  }
116 
123  @Deprecated
124  public ARTIFACT_TYPE getArtifactType() {
125  return BlackboardArtifact.ARTIFACT_TYPE.fromID(this.blackboardArtifactType.getTypeID());
126  }
127 
133  public String getModuleName() {
134  return moduleName;
135  }
136 }
Collection< BlackboardArtifact > getArtifacts()
BlackboardArtifact.Type getBlackboardArtifactType()
ModuleDataEvent(String moduleName, BlackboardArtifact.Type blackboardArtifactType, Collection< BlackboardArtifact > artifacts)
ModuleDataEvent(String moduleName, BlackboardArtifact.Type blackboardArtifactType)
Collection< BlackboardArtifact > artifacts
ModuleDataEvent(String moduleName, ARTIFACT_TYPE artifactType, Collection< BlackboardArtifact > artifacts)
ModuleDataEvent(String moduleName, ARTIFACT_TYPE artifactType)

Copyright © 2012-2020 Basis Technology. Generated on: Wed Apr 8 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.