Autopsy  4.19.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory Class Reference

Inherits Detachable< Object >.

Public Member Functions

void refreshChildren ()
 

Protected Member Functions

void addNotify ()
 
boolean createKeys (List< Object > list)
 
Node createNodeForKey (Object key)
 
void finalize () throws Throwable
 

Private Attributes

final PropertyChangeListener pcl
 
final PropertyChangeListener weakPcl = WeakListeners.propertyChange(pcl, null)
 

Static Private Attributes

static final Set< Case.Events > EVENTS_OF_INTEREST
 
static final Set< String > EVENTS_OF_INTEREST_NAMES
 
static final Logger logger = Logger.getLogger(AutopsyTreeChildFactory.class.getName())
 

Detailed Description

A child factory to create the top level nodes in the main tree view. These nodes are the child nodes of the invisible root node of the tree. The child nodes that are created vary with the view option selected by the user: group by data type or group by person/host.

Definition at line 50 of file AutopsyTreeChildFactory.java.

Member Function Documentation

void org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.addNotify ( )
protected
boolean org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.createKeys ( List< Object >  list)
protected

Creates the keys for the top level nodes in the main tree view. These nodes are the child nodes of the invisible root node of the tree. The child nodes that are created vary with the view option selected by the user: group by data type or group by person/host.

IMPORTANT: Every time a key is added to the keys list, the NetBeans framework reacts. To avoid significant performance hits, all of the keys need to be added at once.

Parameters
listA list to contain the keys.
Returns
True, indicating that the list of keys is complete.

Definition at line 114 of file AutopsyTreeChildFactory.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.casemodule.CasePreferences.getGroupItemsInTreeByDataSource(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().

Node org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.createNodeForKey ( Object  key)
protected

Creates a node for a given key for the top level nodes in the main tree view.

Parameters
keyThe key.
Returns
A node for the key.

Definition at line 177 of file AutopsyTreeChildFactory.java.

void org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.finalize ( ) throws Throwable
protected
void org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.refreshChildren ( )

Refreshes the top level nodes in the main tree view.

Definition at line 194 of file AutopsyTreeChildFactory.java.

Referenced by org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.rebuildTree().

Member Data Documentation

final Set<Case.Events> org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.EVENTS_OF_INTEREST
staticprivate
Initial value:
= EnumSet.of(Case.Events.DATA_SOURCE_ADDED,
Case.Events.HOSTS_ADDED,
Case.Events.HOSTS_DELETED,
Case.Events.PERSONS_ADDED,
Case.Events.PERSONS_DELETED,
Case.Events.HOSTS_ADDED_TO_PERSON,
Case.Events.HOSTS_REMOVED_FROM_PERSON
)

Definition at line 52 of file AutopsyTreeChildFactory.java.

Referenced by org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.addNotify(), and org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.finalize().

final Set<String> org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.EVENTS_OF_INTEREST_NAMES
staticprivate
Initial value:
.map(evt -> evt.name())
.collect(Collectors.toSet())

Definition at line 61 of file AutopsyTreeChildFactory.java.

final Logger org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.logger = Logger.getLogger(AutopsyTreeChildFactory.class.getName())
staticprivate

Definition at line 65 of file AutopsyTreeChildFactory.java.

final PropertyChangeListener org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.pcl
private
Initial value:
= new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
String eventType = evt.getPropertyName();
if (EVENTS_OF_INTEREST_NAMES.contains(eventType)
&& Objects.equals(CasePreferences.getGroupItemsInTreeByDataSource(), true)) {
}
}
}

Listener for application events published when persons and/or hosts are added to or deleted from the data model for the current case. If the user has selected the group by person/host option for the tree, these events mean that the top-level person/host nodes in the tree need to be refreshed to reflect the changes.

Definition at line 74 of file AutopsyTreeChildFactory.java.

final PropertyChangeListener org.sleuthkit.autopsy.datamodel.AutopsyTreeChildFactory.weakPcl = WeakListeners.propertyChange(pcl, null)
private

Definition at line 85 of file AutopsyTreeChildFactory.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2021 Basis Technology. Generated on: Thu Sep 30 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.