20 package org.sleuthkit.autopsy.commonfilesearch;
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 Map<Integer, CommonAttributeValueList> interCaseCommonFiles = eamDbAttrInst.findInterCaseValuesByCount(
Case.
getCurrentCase());
60 Set<String> mimeTypesToFilterOn =
new HashSet<>();
61 if (isFilterByMedia()) {
62 mimeTypesToFilterOn.addAll(MEDIA_PICS_VIDEO_MIME_TYPES);
64 if (isFilterByDoc()) {
65 mimeTypesToFilterOn.addAll(TEXT_FILES_MIME_TYPES);
72 InterCaseSearchResultsProcessor eamDbAttrInst =
new InterCaseSearchResultsProcessor(corAttrType);
73 Map<String, Map<String, CommonAttributeValueList>> interCaseCommonFiles = eamDbAttrInst.findInterCaseValuesByCase(
Case.
getCurrentCase());
74 Set<String> mimeTypesToFilterOn =
new HashSet<>();
75 if (isFilterByMedia()) {
76 mimeTypesToFilterOn.addAll(MEDIA_PICS_VIDEO_MIME_TYPES);
78 if (isFilterByDoc()) {
79 mimeTypesToFilterOn.addAll(TEXT_FILES_MIME_TYPES);
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());
CommonAttributeCountSearchResults findMatchesByCount()
CommonAttributeCaseSearchResults findMatchesByCase()
static Case getCurrentCase()
AllInterCaseCommonAttributeSearcher(boolean filterByMediaMimeType, boolean filterByDocMimeType, Type corAttrType, int percentageThreshold)