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

Inherits AbstractAction.

Inherited by org.sleuthkit.autopsy.datasourcesummary.ui.DataSourceSummaryNode.DataSourceSummaryEntryNode.ViewDataSourceInContextAction.

Classes

class  AncestorVisitor
 

Public Member Functions

 ViewContextAction (String displayName, BlackboardArtifactNode artifactNode)
 
 ViewContextAction (String displayName, AbstractFsContentNode<?extends AbstractFile > fileSystemContentNode)
 
 ViewContextAction (String displayName, AbstractAbstractFileNode<?extends AbstractFile > abstractAbstractFileNode)
 
 ViewContextAction (String displayName, Content content)
 
void actionPerformed (ActionEvent event)
 

Private Member Functions

Node findParentNodeInTree (Content parentContent, Node node)
 

Private Attributes

final Content content
 

Static Private Attributes

static final Logger logger = Logger.getLogger(ViewContextAction.class.getName())
 
static final long serialVersionUID = 1L
 

Detailed Description

An action that displays the context for some content by expanding the data sources branch of the tree view to the level of the parent of the content, selecting the parent in the tree view, then selecting the content in the results view.

Definition at line 67 of file ViewContextAction.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.directorytree.ViewContextAction.ViewContextAction ( String  displayName,
BlackboardArtifactNode  artifactNode 
)

An action that displays the context for the source content of an artifact by expanding the data sources branch of the tree view to the level of the parent of the content, selecting the parent in the tree view, then selecting the content in the results view.

Parameters
displayNameThe display name for the action.
artifactNodeThe artifact node for the artifact.

Definition at line 82 of file ViewContextAction.java.

References org.sleuthkit.autopsy.core.UserPreferences.hideKnownFilesInDataSourcesTree(), and org.sleuthkit.autopsy.core.UserPreferences.hideSlackFilesInDataSourcesTree().

org.sleuthkit.autopsy.directorytree.ViewContextAction.ViewContextAction ( String  displayName,
AbstractFsContentNode<?extends AbstractFile >  fileSystemContentNode 
)

An action that displays the context for some file system content by expanding the data sources branch of the tree view to the level of the parent of the content, selecting the parent in the tree view, then selecting the content in the results view.

Parameters
displayNameThe display name for the action.
fileSystemContentNodeThe file system content node for the content.

Definition at line 105 of file ViewContextAction.java.

org.sleuthkit.autopsy.directorytree.ViewContextAction.ViewContextAction ( String  displayName,
AbstractAbstractFileNode<?extends AbstractFile >  abstractAbstractFileNode 
)

An action that displays the context for abstract file by expanding the data sources branch of the tree view to the level of the parent of the content, selecting the parent in the tree view, then selecting the content in the results view.

Parameters
displayNameThe display name for the action.
abstractAbstractFileNodeThe AbstractAbstractFileNode node for the content.

Definition at line 120 of file ViewContextAction.java.

org.sleuthkit.autopsy.directorytree.ViewContextAction.ViewContextAction ( String  displayName,
Content  content 
)

An action that displays the context for some content by expanding the data sources branch of the tree view to the level of the parent of the content, selecting the parent in the tree view, then selecting the content in the results view.

Parameters
displayNameThe display name for the action.
contentThe content.

Definition at line 134 of file ViewContextAction.java.

References org.sleuthkit.autopsy.directorytree.ViewContextAction.content.

Member Function Documentation

void org.sleuthkit.autopsy.directorytree.ViewContextAction.actionPerformed ( ActionEvent  event)
Node org.sleuthkit.autopsy.directorytree.ViewContextAction.findParentNodeInTree ( Content  parentContent,
Node  node 
)
private

Searches tree for parent node by getting an ordered list of the ancestors of the specified content.

Parameters
parentContentparent content for the content to be searched for
nodeNode tree to search
Returns
Node object of the matching parent, NULL if not found

Convert the list of ancestors into a list of tree nodes.

IMPORTANT: The "dummy" root node used to create this single layer of children needs to be wrapped in a DirectoryTreeFilterNode so that its child nodes will also be wrapped in DirectoryTreeFilterNodes, via DirectoryTreeFilterNodeChildren. Otherwise, the display names of the nodes in the branch will not have child node counts and will not match the display names of the corresponding nodes in the actual tree view.

Definition at line 297 of file ViewContextAction.java.

Referenced by org.sleuthkit.autopsy.directorytree.ViewContextAction.actionPerformed().

Member Data Documentation

final Content org.sleuthkit.autopsy.directorytree.ViewContextAction.content
private
final Logger org.sleuthkit.autopsy.directorytree.ViewContextAction.logger = Logger.getLogger(ViewContextAction.class.getName())
staticprivate

Definition at line 70 of file ViewContextAction.java.

final long org.sleuthkit.autopsy.directorytree.ViewContextAction.serialVersionUID = 1L
staticprivate

Definition at line 69 of file ViewContextAction.java.


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

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