Autopsy  4.9.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
RelaionshipSetNodeFactory.java
Go to the documentation of this file.
1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 package org.sleuthkit.autopsy.communications;
7 
8 import java.util.Collection;
9 import java.util.List;
10 import org.openide.nodes.ChildFactory;
11 import org.openide.nodes.Node;
12 import org.sleuthkit.datamodel.BlackboardArtifact;
13 
17 public class RelaionshipSetNodeFactory extends ChildFactory<BlackboardArtifact> {
18 
19  private final Collection<BlackboardArtifact> artifacts;
20 
21  public RelaionshipSetNodeFactory(Collection<BlackboardArtifact> artifacts) {
22  this.artifacts = artifacts;
23  }
24 
25  @Override
26  protected boolean createKeys(List<BlackboardArtifact> list) {
27  list.addAll(artifacts);
28  return true;
29  }
30 
31  @Override
32  protected Node createNodeForKey(BlackboardArtifact key) {
33  return new RelationshipNode(key);
34  }
35 }
RelaionshipSetNodeFactory(Collection< BlackboardArtifact > artifacts)

Copyright © 2012-2018 Basis Technology. Generated on: Tue Dec 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.