Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Static 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.PersonNode Class Reference

Inherits org.sleuthkit.autopsy.datamodel.DisplayableItemNode.

Classes

class  PersonChildren
 

Public Member Functions

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

Static Public Member Functions

static String getUnknownPersonId ()
 

Protected Member Functions

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

Private Member Functions

 PersonNode (Person person, String displayName)
 

Static Private Member Functions

static String getDisplayName (Person person)
 

Private Attributes

final Person person
 
final PropertyChangeListener personChangePcl
 
final Long personId
 
final PropertyChangeListener weakPcl = WeakListeners.propertyChange(personChangePcl, null)
 

Static Private Attributes

static final String ICON_PATH = "org/sleuthkit/autopsy/images/person.png"
 

Detailed Description

A main tree view node that represents a person in a case. Its child nodes, if any, represent hosts in the case. There must be at least one person in a case for the person nodes layer to appear. If the persons layer is present, any hosts that are not associated with a person are grouped under an "Unknown Persons" person node.

Definition at line 55 of file PersonNode.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datamodel.PersonNode.PersonNode ( Person  person,
String  displayName 
)
private

Constructor.

Parameters
personThe person.
displayNameThe display name for the person.

Definition at line 211 of file PersonNode.java.

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

Member Function Documentation

Sheet org.sleuthkit.autopsy.datamodel.PersonNode.createSheet ( )
protected

Definition at line 240 of file PersonNode.java.

Action [] org.sleuthkit.autopsy.datamodel.PersonNode.getActions ( boolean  context)

Definition at line 256 of file PersonNode.java.

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.PersonNode.getDisplayName ( Person  person)
staticprivate

Gets the display name for this person or "Unknown Persons".

Parameters
personThe person.
Returns
The non-empty string for the display name.

Definition at line 190 of file PersonNode.java.

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

Definition at line 228 of file PersonNode.java.

static String org.sleuthkit.autopsy.datamodel.PersonNode.getUnknownPersonId ( )
static
boolean org.sleuthkit.autopsy.datamodel.PersonNode.isLeafTypeNode ( )

Definition at line 223 of file PersonNode.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 String org.sleuthkit.autopsy.datamodel.PersonNode.ICON_PATH = "org/sleuthkit/autopsy/images/person.png"
staticprivate

Definition at line 57 of file PersonNode.java.

final Person org.sleuthkit.autopsy.datamodel.PersonNode.person
private

Definition at line 158 of file PersonNode.java.

final PropertyChangeListener org.sleuthkit.autopsy.datamodel.PersonNode.personChangePcl
private
Initial value:
= new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
String eventType = evt.getPropertyName();
if (personId != null && eventType.equals(Case.Events.PERSONS_UPDATED.toString()) && evt instanceof PersonsUpdatedEvent) {
((PersonsUpdatedEvent) evt).getNewValue().stream()
.filter(p -> p != null && p.getPersonId() == personId)
.findFirst()
.ifPresent((newPerson) -> {
setName(newPerson.getName());
setDisplayName(newPerson.getName());
});
}
}
}

Listener for application events that are published when the properties of persons in the case change.

Definition at line 165 of file PersonNode.java.

final Long org.sleuthkit.autopsy.datamodel.PersonNode.personId
private

Definition at line 159 of file PersonNode.java.

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

Definition at line 181 of file PersonNode.java.


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

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