Autopsy  4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Protected Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.commonfilesearch.AllDataSourcesCommonFilesAlgorithm Class Reference

Inherits org.sleuthkit.autopsy.commonfilesearch.CommonFilesMetadataBuilder.

Public Member Functions

 AllDataSourcesCommonFilesAlgorithm (Map< Long, String > dataSourceIdMap, boolean filterByMediaMimeType, boolean filterByDocMimeType)
 
CommonFilesMetadata findCommonFiles () throws TskCoreException, NoCurrentCaseException, SQLException
 

Protected Member Functions

String buildCategorySelectionString ()
 
String buildSqlSelectStatement ()
 
String buildTabTitle ()
 

Static Private Attributes

static final String WHERE_CLAUSE = "%s md5 in (select md5 from tsk_files where (known != 1 OR known IS NULL)%s GROUP BY md5 HAVING COUNT(*) > 1) order by md5"
 

Detailed Description

Provides logic for selecting common files from all data sources.

Definition at line 27 of file AllDataSourcesCommonFilesAlgorithm.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.commonfilesearch.AllDataSourcesCommonFilesAlgorithm.AllDataSourcesCommonFilesAlgorithm ( Map< Long, String >  dataSourceIdMap,
boolean  filterByMediaMimeType,
boolean  filterByDocMimeType 
)

Implements the algorithm for getting common files across all data sources.

Parameters
dataSourceIdMapa map of obj_id to datasource name
filterByMediaMimeTypematch only on files whose mime types can be broadly categorized as media types
filterByDocMimeTypematch only on files whose mime types can be broadly categorized as document types

Definition at line 39 of file AllDataSourcesCommonFilesAlgorithm.java.

Member Function Documentation

String org.sleuthkit.autopsy.commonfilesearch.CommonFilesMetadataBuilder.buildCategorySelectionString ( )
protectedinherited
String org.sleuthkit.autopsy.commonfilesearch.AllDataSourcesCommonFilesAlgorithm.buildSqlSelectStatement ( )
protected

Definition at line 45 of file AllDataSourcesCommonFilesAlgorithm.java.

String org.sleuthkit.autopsy.commonfilesearch.AllDataSourcesCommonFilesAlgorithm.buildTabTitle ( )
protected
CommonFilesMetadata org.sleuthkit.autopsy.commonfilesearch.CommonFilesMetadataBuilder.findCommonFiles ( ) throws TskCoreException, NoCurrentCaseException, SQLException
inherited

Generate a meta data object which encapsulates everything need to add the tree table tab to the top component.

Returns
a data object with all of the matched files in a hierarchical format
Exceptions
TskCoreException
NoCurrentCaseException
SQLException

Definition at line 169 of file CommonFilesMetadataBuilder.java.

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

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

Member Data Documentation

final String org.sleuthkit.autopsy.commonfilesearch.AllDataSourcesCommonFilesAlgorithm.WHERE_CLAUSE = "%s md5 in (select md5 from tsk_files where (known != 1 OR known IS NULL)%s GROUP BY md5 HAVING COUNT(*) > 1) order by md5"
staticprivate

Definition at line 29 of file AllDataSourcesCommonFilesAlgorithm.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.