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

Public Member Functions

Map< Long, String > getDataSourceMap () throws NoCurrentCaseException, TskCoreException, SQLException
 

Private Member Functions

void loadImageSources (SleuthkitCase tskDb, Map< Long, String > dataSourceMap) throws SQLException, TskCoreException
 
void loadLogicalSources (SleuthkitCase tskDb, Map< Long, String > dataSouceMap) 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

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

Get a map of data source Ids to their string names for the current case.

Returns
Map of Long (id) to String (name)
Exceptions
NoCurrentCaseException
TskCoreException
SQLException

Definition at line 85 of file DataSourceLoader.java.

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

void org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader.loadImageSources ( SleuthkitCase  tskDb,
Map< Long, String >  dataSourceMap 
) throws SQLException, TskCoreException
private
void org.sleuthkit.autopsy.datamodel.utils.DataSourceLoader.loadLogicalSources ( SleuthkitCase  tskDb,
Map< Long, String >  dataSouceMap 
) throws TskCoreException, SQLException
private

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-2018 Basis Technology. Generated on: Fri Mar 22 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.