Autopsy  4.19.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | Static Private Attributes | List of all members Class Reference

Inherits, and Serializable.

Public Member Functions

 DataSourceNameChangedEvent (Content dataSource, String newName)
Content getDataSource ()
Object getNewValue ()
Object getSource ()
SourceType getSourceType ()

Private Attributes

transient Content dataSource
final String newName

Static Private Attributes

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

Detailed Description

Definition at line 33 of file

Constructor & Destructor Documentation ( Content  dataSource,
String  newName 

Constructs an event published when a data source is added to a case.

dataSourceThe data source that was added.
newNameThe new name of the data source

Putting the object id of the data source into newValue to allow for lazy loading of the Content object. This bypasses the issues related to the serialization and de-serialization of Content objects when the event is published over a network.

Definition at line 46 of file

References org.sleuthkit.autopsy.casemodule.Case.Events.DATA_SOURCE_NAME_CHANGED,, and

Member Function Documentation

Content ( )

Gets the data source that was added.

The data source.

The dataSource field is set in the constructor, but it is transient so it will become null when the event is serialized for publication over a network. Doing a lazy load of the Content object bypasses the issues related to the serialization and de-serialization of Content objects and may also save database round trips from other nodes since subscribers to this event are often not interested in the event data.

Definition at line 73 of file

References, org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().

Referenced by

Object ( )

Gets the new name for the data source

The new name for the data source

Definition at line 64 of file


Object ( )

Gets the event source type (local or remote) as a string.

A string, either "LOCAL" or "REMOTE."

Definition at line 88 of file

SourceType ( )

Member Data Documentation

transient Content
final Logger = Logger.getLogger(DataSourceAddedEvent.class.getName())

Definition at line 36 of file

final String
final long = 1L

Definition at line 35 of file

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

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