20 package org.sleuthkit.autopsy.commonpropertiessearch;
22 import java.sql.SQLException;
23 import java.util.HashSet;
26 import org.openide.util.NbBundle;
53 super(filterByMediaMimeType, filterByDocMimeType, corAttrType, percentageThreshold);
58 InterCaseSearchResultsProcessor eamDbAttrInst =
new InterCaseSearchResultsProcessor(corAttrType);
59 Set<String> mimeTypesToFilterOn =
new HashSet<>();
60 if (isFilterByMedia()) {
61 mimeTypesToFilterOn.addAll(MEDIA_PICS_VIDEO_MIME_TYPES);
63 if (isFilterByDoc()) {
64 mimeTypesToFilterOn.addAll(TEXT_FILES_MIME_TYPES);
66 Map<Integer, CommonAttributeValueList> interCaseCommonFiles = eamDbAttrInst.findInterCaseValuesByCount(
Case.
getCurrentCase(), mimeTypesToFilterOn);
72 InterCaseSearchResultsProcessor eamDbAttrInst =
new InterCaseSearchResultsProcessor(corAttrType);
73 Set<String> mimeTypesToFilterOn =
new HashSet<>();
74 if (isFilterByMedia()) {
75 mimeTypesToFilterOn.addAll(MEDIA_PICS_VIDEO_MIME_TYPES);
77 if (isFilterByDoc()) {
78 mimeTypesToFilterOn.addAll(TEXT_FILES_MIME_TYPES);
80 Map<String, Map<String, CommonAttributeValueList>> interCaseCommonFiles = eamDbAttrInst.findInterCaseValuesByCase(
Case.
getCurrentCase(), mimeTypesToFilterOn);
86 "# {1} - threshold string",
87 "AllInterCaseCommonAttributeSearcher.buildTabTitle.titleInterAll=Common Properties (All Central Repository Cases, {0}{1})"})
89 String getTabTitle() {
90 String typeString = this.corAttrType.getDisplayName();
91 if (typeString.equals(
"Files")) {
92 typeString = this.buildCategorySelectionString();
94 return Bundle.AllInterCaseCommonAttributeSearcher_buildTabTitle_titleInterAll(typeString, this.getPercentThresholdString());
CommonAttributeCaseSearchResults findMatchesByCase()
AllInterCaseCommonAttributeSearcher(boolean filterByMediaMimeType, boolean filterByDocMimeType, Type corAttrType, int percentageThreshold)
static Case getCurrentCase()
CommonAttributeCountSearchResults findMatchesByCount()