Autopsy  4.18.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader Class Reference

Static Public Member Functions

static Map< Long, String > getAllDataSources () throws NoCurrentCaseException, TskCoreException, SQLException
 
static Map< Long, String > getImageDataSources (SleuthkitCase tskDb) throws SQLException, TskCoreException
 
static Map< Long, String > getLogicalDataSources (SleuthkitCase tskDb) throws TskCoreException, SQLException
 

Static Private Attributes

static final String SELECT_DATA_SOURCES_IMAGE = "select obj_id, name from tsk_image_names where obj_id in (SELECT obj_id FROM tsk_objects WHERE obj_id in (select obj_id from data_source_info))"
 
static final String SELECT_DATA_SOURCES_LOGICAL = "select obj_id, name from tsk_files where obj_id in (SELECT obj_id FROM tsk_objects WHERE obj_id in (select obj_id from data_source_info))"
 

Detailed Description

Encapsulates logic required to create a mapping of data sources in the current case to their data source IDs.

Intended to be used within the context of a SwingWorker or other background thread.

Definition at line 39 of file DataSourceLoader.java.

Member Function Documentation

static Map<Long, String> org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader.getAllDataSources ( ) throws NoCurrentCaseException, TskCoreException, SQLException
static

Get a map of all data source Ids to their string names (data source file name only) for the current case.

Returns
Map of Long (id) to String (data source file name only)
Exceptions
NoCurrentCaseException
TskCoreException
SQLException

Definition at line 112 of file DataSourceLoader.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader.getImageDataSources(), org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader.getLogicalDataSources(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().

static Map<Long, String> org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader.getImageDataSources ( SleuthkitCase  tskDb) throws SQLException, TskCoreException
static

Query case database for a list of all existing image data sources and their object IDs.

Parameters
tskDbSleuthkitCase database handle
Returns
Map of Long (id) to String (data source file name only)
Exceptions
SQLException
TskCoreException

Definition at line 81 of file DataSourceLoader.java.

Referenced by org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader.getAllDataSources().

static Map<Long, String> org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader.getLogicalDataSources ( SleuthkitCase  tskDb) throws TskCoreException, SQLException
static

Query case database for a list of all existing logical data sources and their object IDs.

Parameters
tskDbSleuthkitCase database handle
Returns
Map of Long (id) to String (data source file name only)
Exceptions
TskCoreException
SQLException

Definition at line 55 of file DataSourceLoader.java.

Referenced by org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader.getAllDataSources().

Member Data Documentation

final String org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader.SELECT_DATA_SOURCES_IMAGE = "select obj_id, name from tsk_image_names where obj_id in (SELECT obj_id FROM tsk_objects WHERE obj_id in (select obj_id from data_source_info))"
staticprivate

Definition at line 43 of file DataSourceLoader.java.

final String org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader.SELECT_DATA_SOURCES_LOGICAL = "select obj_id, name from tsk_files where obj_id in (SELECT obj_id FROM tsk_objects WHERE obj_id in (select obj_id from data_source_info))"
staticprivate

Definition at line 41 of file DataSourceLoader.java.


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

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