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

Inherits org.sleuthkit.autopsy.datamodel.DisplayableItemNode.


class  HostGroupingChildren

Public Member Functions

Action[] getActions (boolean context)
NodeSelectionInfo getChildNodeSelectionInfo ()
String getItemType ()
boolean isLeafTypeNode ()
void setChildNodeSelectionInfo (NodeSelectionInfo selectedChildNodeInfo)

Protected Member Functions

Sheet createSheet ()
synchronized final void updatePropertySheet (NodeProperty<?>...newProps)

Private Member Functions

 HostNode (Children children, Host host)
 HostNode (Children children, Host host, String displayName)

Static Private Member Functions

static String getHostName (Host host)

Private Attributes

final Host host
final PropertyChangeListener hostChangePcl
final Long hostId
final PropertyChangeListener weakPcl = WeakListeners.propertyChange(hostChangePcl, null)

Static Private Attributes

static final CreateSleuthkitNodeVisitor CREATE_TSK_NODE_VISITOR = new CreateSleuthkitNodeVisitor()
static final Function< DataSourceGrouping, Node > HOST_DATA_SOURCES
static final Function< DataSourceGrouping, Node > HOST_GROUPING_CONVERTER
static final String ICON_PATH = "org/sleuthkit/autopsy/images/host.png"
static final Logger logger = Logger.getLogger(HostNode.class.getName())

Detailed Description

A node to be displayed in the UI tree for a host and data sources grouped in this host.

Definition at line 58 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datamodel.HostNode.HostNode ( Children  children,
Host  host 


childrenThe children for this host node.
hostThe host.

Definition at line 240 of file

org.sleuthkit.autopsy.datamodel.HostNode.HostNode ( Children  children,
Host  host,
String  displayName 


childrenThe children for this host node.
hostThe host.
displayNameThe displayName.

Definition at line 251 of file

References org.sleuthkit.autopsy.casemodule.Case.addEventTypeSubscriber(), and org.sleuthkit.autopsy.casemodule.Case.Events.HOSTS_UPDATED.

Member Function Documentation

Sheet org.sleuthkit.autopsy.datamodel.HostNode.createSheet ( )

Definition at line 281 of file

Action [] org.sleuthkit.autopsy.datamodel.HostNode.getActions ( boolean  context)
NodeSelectionInfo org.sleuthkit.autopsy.datamodel.DisplayableItemNode.getChildNodeSelectionInfo ( )

Gets information about which child node of this node, if any, should be selected.

The child node selection information, or null if no child should be selected.

Definition at line 142 of file

References org.sleuthkit.autopsy.datamodel.DisplayableItemNode.selectedChildNodeInfo.

static String org.sleuthkit.autopsy.datamodel.HostNode.getHostName ( Host  host)

Definition at line 205 of file

String org.sleuthkit.autopsy.datamodel.HostNode.getItemType ( )

Definition at line 269 of file

boolean org.sleuthkit.autopsy.datamodel.HostNode.isLeafTypeNode ( )

Definition at line 264 of file

void org.sleuthkit.autopsy.datamodel.DisplayableItemNode.setChildNodeSelectionInfo ( NodeSelectionInfo  selectedChildNodeInfo)

Adds information about which child node of this node, if any, should be selected. Can be null.

selectedChildNodeInfoThe child node selection information.

Definition at line 131 of file

References org.sleuthkit.autopsy.datamodel.DisplayableItemNode.selectedChildNodeInfo.

Referenced by org.sleuthkit.autopsy.directorytree.ViewContextAction.setNodeSelection(), org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.viewArtifact(), and org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent.viewOsAccount().

synchronized final void org.sleuthkit.autopsy.datamodel.DisplayableItemNode.updatePropertySheet ( NodeProperty<?>...  newProps)

Updates the node property sheet by replacing existing properties with new properties with the same property name.

newPropsThe replacement property objects.

Definition at line 152 of file

Member Data Documentation

final CreateSleuthkitNodeVisitor org.sleuthkit.autopsy.datamodel.HostNode.CREATE_TSK_NODE_VISITOR = new CreateSleuthkitNodeVisitor()

Definition at line 153 of file

final Host

Definition at line 211 of file

final Function<DataSourceGrouping, Node> org.sleuthkit.autopsy.datamodel.HostNode.HOST_DATA_SOURCES
Initial value:
= key -> {
if (key.getDataSource() instanceof SleuthkitVisitableItem) {
return ((SleuthkitVisitableItem) key.getDataSource()).accept(CREATE_TSK_NODE_VISITOR);
} else {
return null;

Means of creating just data source nodes underneath the host (i.e. no results, reports, etc.)

Definition at line 159 of file

final Function<DataSourceGrouping, Node> org.sleuthkit.autopsy.datamodel.HostNode.HOST_GROUPING_CONVERTER
Initial value:
= key -> {
if (key == null || key.getDataSource() == null) {
return null;
return new DataSourceGroupingNode(key.getDataSource());

Shows data sources with results, reports, etc.

Definition at line 170 of file

final PropertyChangeListener org.sleuthkit.autopsy.datamodel.HostNode.hostChangePcl
Initial value:
= new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent evt) {
String eventType = evt.getPropertyName();
if (hostId != null && eventType.equals(Case.Events.HOSTS_UPDATED.toString()) && evt instanceof HostsUpdatedEvent) {
((HostsUpdatedEvent) evt).getHosts().stream()
.filter(h -> h != null && h.getHostId() == hostId)
.ifPresent((newHost) -> {

Listener for handling host change events.

Definition at line 181 of file

final Long org.sleuthkit.autopsy.datamodel.HostNode.hostId

Definition at line 212 of file

final String org.sleuthkit.autopsy.datamodel.HostNode.ICON_PATH = "org/sleuthkit/autopsy/images/host.png"

Definition at line 152 of file

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

Definition at line 151 of file

final PropertyChangeListener org.sleuthkit.autopsy.datamodel.HostNode.weakPcl = WeakListeners.propertyChange(hostChangePcl, null)

Definition at line 197 of file

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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.