19 package org.sleuthkit.autopsy.datamodel;
21 import java.beans.PropertyChangeEvent;
22 import java.beans.PropertyChangeListener;
23 import java.util.ArrayList;
24 import java.util.Arrays;
25 import java.util.Collections;
26 import java.util.Comparator;
27 import java.util.EnumSet;
28 import java.util.List;
29 import java.util.Objects;
30 import java.util.logging.Level;
31 import org.openide.nodes.ChildFactory;
32 import org.openide.nodes.Node;
54 private final PropertyChangeListener
pcl =
new PropertyChangeListener() {
56 public void propertyChange(PropertyChangeEvent evt) {
57 String eventType = evt.getPropertyName();
90 List<DataSource> dataSources = tskCase.getDataSources();
92 Collections.sort(dataSources,
new Comparator<DataSource>() {
94 public int compare(DataSource dataS1, DataSource dataS2) {
95 String dataS1Name = dataS1.getName().toLowerCase();
96 String dataS2Name = dataS2.getName().toLowerCase();
97 return dataS1Name.compareTo(dataS2Name);
101 List<DataSourceGrouping> keys =
new ArrayList<>();
102 dataSources.forEach((datasource) -> {
109 List<AutopsyVisitableItem> keys =
new ArrayList<>(Arrays.asList(
119 }
catch (TskCoreException tskCoreException) {
120 logger.log(Level.SEVERE,
"Error getting datas sources list from the database.", tskCoreException);
122 logger.log(Level.SEVERE,
"Exception while getting open case.", ex);
137 if (key instanceof SleuthkitVisitableItem) {
143 logger.log(Level.SEVERE,
"Unknown key type ", key.getClass().getName());
final PropertyChangeListener pcl
boolean createKeys(List< Object > list)
SleuthkitCase getSleuthkitCase()
static Boolean getGroupItemsInTreeByDataSource()
Node createNodeForKey(Object key)
synchronized static Logger getLogger(String name)
static Case getCurrentCaseThrows()
static void addEventTypeSubscriber(Set< Events > eventTypes, PropertyChangeListener subscriber)
static final Logger logger
static void removeEventTypeSubscriber(Set< Events > eventTypes, PropertyChangeListener subscriber)