20 package org.sleuthkit.autopsy.commonpropertiessearch;
23 import org.openide.util.NbBundle;
31 private static final String
WHERE_CLAUSE =
"%s md5 in (select md5 from tsk_files where md5 in (select md5 from tsk_files where (known != " + FileKnown.KNOWN.getFileKnownValue() +
" OR known IS NULL) and data_source_obj_id=%s%s) GROUP BY md5 HAVING COUNT(DISTINCT data_source_obj_id) > 1) order by md5";
49 super(dataSourceIdMap, filterByMediaMimeType, filterByDocMimeType, percentageThreshold);
50 this.selectedDataSourceId = dataSourceId;
51 this.dataSourceName = dataSourceIdMap.get(this.selectedDataSourceId);
56 Object[] args =
new String[]{SELECT_PREFIX, Long.toString(this.selectedDataSourceId), determineMimeTypeFilter()};
61 "# {0} - data source name",
62 "# {1} - build category",
63 "# {2} - threshold string",
64 "SingleIntraCaseCommonAttributeSearcher.buildTabTitle.titleIntraSingle=Common Properties (Data Source: {0}, {1}{2})"})
66 String getTabTitle() {
67 return Bundle.SingleIntraCaseCommonAttributeSearcher_buildTabTitle_titleIntraSingle(this.dataSourceName, this.buildCategorySelectionString(), this.getPercentThresholdString());
String buildSqlSelectStatement()
SingleIntraCaseCommonAttributeSearcher(Long dataSourceId, Map< Long, String > dataSourceIdMap, boolean filterByMediaMimeType, boolean filterByDocMimeType, int percentageThreshold)
static final String WHERE_CLAUSE
final Long selectedDataSourceId
final String dataSourceName