Autopsy  4.7.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.commonfilesearch.DataSourceLoader Class Reference

Public Member Functions

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

Private Member Functions

void loadImageSources (SleuthkitCase tskDb, Map< Long, String > dataSouceMap) 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.commonfilesearch.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 83 of file DataSourceLoader.java.

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

Referenced by org.sleuthkit.autopsy.commonfilesearch.CommonFilesPanel.setupDataSources().

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

Member Data Documentation

final String org.sleuthkit.autopsy.commonfilesearch.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.commonfilesearch.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-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.