Autopsy  4.19.3
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.Artifacts.UpdatableCountTypeNode Class Referenceabstract

Inherits org.sleuthkit.autopsy.datamodel.DisplayableItemNode.

Inherited by org.sleuthkit.autopsy.datamodel.accounts.Accounts.AccountsRootNode, org.sleuthkit.autopsy.datamodel.Artifacts.TypeNode, org.sleuthkit.autopsy.datamodel.EmailExtracted.RootNode, org.sleuthkit.autopsy.datamodel.HashsetHits.RootNode, org.sleuthkit.autopsy.datamodel.InterestingHits.RootNode, and org.sleuthkit.autopsy.datamodel.KeywordHits.RootNode.

Public Member Functions

 UpdatableCountTypeNode (Children children, Lookup lookup, String baseName, long filteringDSObjId, BlackboardArtifact.Type...types)
 
abstract< T > T accept (DisplayableItemNodeVisitor< T > visitor)
 
NodeSelectionInfo getChildNodeSelectionInfo ()
 
abstract String getItemType ()
 
abstract boolean isLeafTypeNode ()
 
void setChildNodeSelectionInfo (NodeSelectionInfo selectedChildNodeInfo)
 

Protected Member Functions

long fetchChildCount (SleuthkitCase skCase) throws TskCoreException
 
long getChildCount ()
 
synchronized final void updatePropertySheet (NodeProperty<?>...newProps)
 

Private Attributes

final String baseName
 
long childCount = 0
 
final long filteringDSObjId
 
final Set< BlackboardArtifact.Type > types
 

Static Private Attributes

static final Logger logger = Logger.getLogger(UpdatableCountTypeNode.class.getName())
 

Detailed Description

Abstract class for type(s) nodes. This class allows for displaying a count artifacts with the type(s) associated with this node.

Definition at line 444 of file Artifacts.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.UpdatableCountTypeNode ( Children  children,
Lookup  lookup,
String  baseName,
long  filteringDSObjId,
BlackboardArtifact.Type...  types 
)

Main constructor.

Parameters
childrenThe Children to associated with this node.
lookupThe Lookup to use with this name.
baseNameThe display name. The Node.displayName will be of format "[baseName] ([count])".
filteringDSObjIdThe data source object id to use for filtering. If id is less than or equal to 0, no filtering will occur.
typesThe types associated with this type node.

Definition at line 465 of file Artifacts.java.

References org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.baseName, org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.filteringDSObjId, and org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.types.

Member Function Documentation

abstract <T> T org.sleuthkit.autopsy.datamodel.DisplayableItemNode.accept ( DisplayableItemNodeVisitor< T >  visitor)
abstractinherited

Accepts a visitor DisplayableItemNodeVisitor that will perform an operation on this artifact type and return some object as the result of the operation.

Parameters
visitorThe visitor, where the type parameter of the visitor is the type of the object that will be returned as the result of the visit operation.
Returns
An object of type T.

Referenced by org.sleuthkit.autopsy.directorytree.DataResultFilterNode.getActions(), and org.sleuthkit.autopsy.directorytree.DataResultFilterNode.getPreferredAction().

long org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.fetchChildCount ( SleuthkitCase  skCase) throws TskCoreException
protected

Fetches the count to be displayed from the case.

Parameters
skCaseThe relevant SleuthkitCase.
Returns
The count to be displayed.
Exceptions
TskCoreException

Definition at line 493 of file Artifacts.java.

References org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.filteringDSObjId.

long org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.getChildCount ( )
protected

Returns the count of artifacts associated with these type(s).

Returns
The count of artifacts associated with these type(s).

Definition at line 480 of file Artifacts.java.

References org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.childCount.

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.

abstract String org.sleuthkit.autopsy.datamodel.DisplayableItemNode.getItemType ( )
abstractinherited

Gets the item type string of the node, suitable for use as a key.

Returns
A String representing the item type of node.
abstract boolean org.sleuthkit.autopsy.datamodel.DisplayableItemNode.isLeafTypeNode ( )
abstractinherited

Indicates whether or not the node is capable of having child nodes. Should only return true if the node is ALWAYS a leaf node.

Returns
True or false.

Referenced by org.sleuthkit.autopsy.directorytree.DirectoryTreeFilterChildren.IsLeafItemVisitor.defaultVisit().

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 String org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.baseName
private
long org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.childCount = 0
private
final long org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.filteringDSObjId
private
final Logger org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.logger = Logger.getLogger(UpdatableCountTypeNode.class.getName())
staticprivate

Definition at line 446 of file Artifacts.java.

final Set<BlackboardArtifact.Type> org.sleuthkit.autopsy.datamodel.Artifacts.UpdatableCountTypeNode.types
private

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

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