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.

Classes

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 HostNode.java.

Constructor & Destructor Documentation

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

Constructor.

Parameters
childrenThe children for this host node.
hostThe host.

Definition at line 240 of file HostNode.java.

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

Constructor.

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

Definition at line 251 of file HostNode.java.

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 ( )
protected

Definition at line 281 of file HostNode.java.

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

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

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

Definition at line 142 of file DisplayableItemNode.java.

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

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

Definition at line 205 of file HostNode.java.

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

Definition at line 269 of file HostNode.java.

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

Definition at line 264 of file HostNode.java.

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

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

Parameters
selectedChildNodeInfoThe child node selection information.

Definition at line 131 of file DisplayableItemNode.java.

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)
protectedinherited

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

Parameters
newPropsThe replacement property objects.

Definition at line 152 of file DisplayableItemNode.java.

Member Data Documentation

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

Definition at line 153 of file HostNode.java.

final Host org.sleuthkit.autopsy.datamodel.HostNode.host
private

Definition at line 211 of file HostNode.java.

final Function<DataSourceGrouping, Node> org.sleuthkit.autopsy.datamodel.HostNode.HOST_DATA_SOURCES
staticprivate
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 HostNode.java.

final Function<DataSourceGrouping, Node> org.sleuthkit.autopsy.datamodel.HostNode.HOST_GROUPING_CONVERTER
staticprivate
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 HostNode.java.

final PropertyChangeListener org.sleuthkit.autopsy.datamodel.HostNode.hostChangePcl
private
Initial value:
= new PropertyChangeListener() {
@Override
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)
.findFirst()
.ifPresent((newHost) -> {
setName(newHost.getName());
setDisplayName(newHost.getName());
});
}
}
}

Listener for handling host change events.

Definition at line 181 of file HostNode.java.

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

Definition at line 212 of file HostNode.java.

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

Definition at line 152 of file HostNode.java.

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

Definition at line 151 of file HostNode.java.

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

Definition at line 197 of file HostNode.java.


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.