Go to the documentation of this file.
20package org.sleuthkit.autopsy.commonpropertiessearch;
22import java.sql.SQLException;
23import java.util.HashSet;
26import org.openide.util.NbBundle;
27import org.sleuthkit.autopsy.casemodule.Case;
28import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
29import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase;
30import org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoException;
31import org.sleuthkit.datamodel.TskCoreException;
32import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.Type;
33import static org.sleuthkit.autopsy.commonpropertiessearch.AbstractCommonAttributeSearcher.MEDIA_PICS_VIDEO_MIME_TYPES;
56 super(filterByMediaMimeType, filterByDocMimeType, corAttrType, percentageThreshold);
58 this.corrleationCaseId = correlationCaseId;
59 this.correlationCaseName =
"";
76 CorrelationCase correlationCase = this.getCorrelationCaseFromId(this.corrleationCaseId);
78 InterCaseSearchResultsProcessor eamDbAttrInst =
new InterCaseSearchResultsProcessor(this.corAttrType);
79 Set<String> mimeTypesToFilterOn =
new HashSet<>();
80 if (isFilterByMedia()) {
81 mimeTypesToFilterOn.addAll(MEDIA_PICS_VIDEO_MIME_TYPES);
83 if (isFilterByDoc()) {
84 mimeTypesToFilterOn.addAll(TEXT_FILES_MIME_TYPES);
86 Map<Integer, CommonAttributeValueList> interCaseCommonFiles = eamDbAttrInst.findSingleInterCaseValuesByCount(
Case.
getCurrentCase(), mimeTypesToFilterOn, correlationCase);
105 CorrelationCase correlationCase = this.getCorrelationCaseFromId(this.corrleationCaseId);
107 InterCaseSearchResultsProcessor eamDbAttrInst =
new InterCaseSearchResultsProcessor(this.corAttrType);
108 Set<String> mimeTypesToFilterOn =
new HashSet<>();
109 if (isFilterByMedia()) {
110 mimeTypesToFilterOn.addAll(MEDIA_PICS_VIDEO_MIME_TYPES);
112 if (isFilterByDoc()) {
113 mimeTypesToFilterOn.addAll(TEXT_FILES_MIME_TYPES);
115 Map<String, Map<String, CommonAttributeValueList>> interCaseCommonFiles = eamDbAttrInst.findSingleInterCaseValuesByCase(
Case.
getCurrentCase(), mimeTypesToFilterOn, correlationCase);
123 "# {2} - threshold string",
124 "SingleInterCaseCommonAttributeSearcher.buildTabTitle.titleInterSingle=Common Properties (Central Repository Case: {0}, {1}{2})"})
127 String getTabTitle() {
129 if (typeString.equals(
"Files")) {
130 typeString = this.buildCategorySelectionString();
132 return Bundle.SingleInterCaseCommonAttributeSearcher_buildTabTitle_titleInterSingle(this.correlationCaseName, typeString, this.getPercentThresholdString());
static Case getCurrentCase()
final int corrleationCaseId
CommonAttributeCountSearchResults findMatchesByCount()
CommonAttributeCaseSearchResults findMatchesByCase()
SingleInterCaseCommonAttributeSearcher(int correlationCaseId, boolean filterByMediaMimeType, boolean filterByDocMimeType, Type corAttrType, int percentageThreshold)
String correlationCaseName
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.