Autopsy
4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits org.sleuthkit.autopsy.events.AutopsyEvent, and Serializable.
Public Member Functions | |
DataSourceAddedEvent (Content dataSource, UUID dataSourceId) | |
UUID | getAddingDataSourceEventId () |
Content | getDataSource () |
UUID | getDataSourceId () |
Object | getNewValue () |
Object | getSource () |
SourceType | getSourceType () |
Private Attributes | |
transient Content | dataSource |
final UUID | dataSourceId |
Static Private Attributes | |
static final Logger | logger = Logger.getLogger(DataSourceAddedEvent.class.getName()) |
static final long | serialVersionUID = 1L |
Event published when a data source is added to a case.
Definition at line 34 of file DataSourceAddedEvent.java.
org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.DataSourceAddedEvent | ( | Content | dataSource, |
UUID | dataSourceId | ||
) |
Constructs an event published when a data source is added to a case.
dataSource | The data source that was added. |
dataSourceId | A unique identifier associated with the data source. Used to pair this DataSourceAddedEvent with a AddindDataSourceEvent. |
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 49 of file DataSourceAddedEvent.java.
References org.sleuthkit.autopsy.casemodule.Case.Events.DATA_SOURCE_ADDED, org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.dataSource, and org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.dataSourceId.
UUID org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.getAddingDataSourceEventId | ( | ) |
Gets the unique id used to pair this DataSourceAddedEvent with the corresponding AddingDataSourceEvent.
Definition at line 105 of file DataSourceAddedEvent.java.
References org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.dataSourceId.
Content org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.getDataSource | ( | ) |
Gets the data source that was added.
Definition at line 95 of file DataSourceAddedEvent.java.
References org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.getNewValue().
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.DataSourceAddedTask.run().
UUID org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.getDataSourceId | ( | ) |
Gets the unique id used to pair this DataSourceAddedEvent with the corresponding AddingDataSourceEvent.
Definition at line 118 of file DataSourceAddedEvent.java.
References org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.dataSourceId.
Object org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.getNewValue | ( | ) |
Gets the data source that was added.
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 68 of file DataSourceAddedEvent.java.
References org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.dataSource, org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().
Referenced by org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.getDataSource().
|
inherited |
Gets the source type (local or remote) as a string. This is for clients that do not have access to the AutopsyEvent type, and is necessary because the events package is not currently a public package within the Autopsy-Core NetBeans Module (NBM).
Definition at line 82 of file AutopsyEvent.java.
|
inherited |
Gets the source type (local or remote).
Definition at line 69 of file AutopsyEvent.java.
References org.sleuthkit.autopsy.events.AutopsyEvent.sourceType.
|
private |
Definition at line 38 of file DataSourceAddedEvent.java.
Referenced by org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.DataSourceAddedEvent(), and org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.getNewValue().
|
private |
Definition at line 39 of file DataSourceAddedEvent.java.
Referenced by org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.DataSourceAddedEvent(), org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.getAddingDataSourceEventId(), and org.sleuthkit.autopsy.casemodule.events.DataSourceAddedEvent.getDataSourceId().
|
staticprivate |
Definition at line 37 of file DataSourceAddedEvent.java.
|
staticprivate |
Definition at line 36 of file DataSourceAddedEvent.java.
Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.