19 package org.sleuthkit.autopsy.keywordsearch;
21 import java.util.ArrayList;
22 import java.util.Arrays;
23 import java.util.HashSet;
24 import java.util.List;
25 import org.openide.util.NbBundle;
26 import org.openide.util.lookup.ServiceProvider;
40 @ServiceProvider(service = IngestModuleFactory.class)
43 private static final HashSet<String> defaultDisabledKeywordListNames =
new HashSet<>(Arrays.asList(
"Phone Numbers",
"IP Addresses",
"URLs",
"Credit Card Numbers"));
48 return getModuleName();
51 static String getModuleName() {
67 XmlKeywordSearchList listManager = XmlKeywordSearchList.getCurrent();
68 List<String> enabledKeywordLists =
new ArrayList<>();
69 List<KeywordList> keywordLists = listManager.getListsL();
71 if (!defaultDisabledKeywordListNames.contains(keywordList.getName())) {
72 enabledKeywordLists.add(keywordList.getName());
86 if (!(settings instanceof KeywordSearchJobSettings)) {
87 throw new IllegalArgumentException(NbBundle.getMessage(
this.getClass(),
88 "KeywordSearchModuleFactory.getIngestJobSettingsPanel.exception.msg"));
91 if (jobSettingsPanel == null) {
94 jobSettingsPanel.reset((KeywordSearchJobSettings) settings);
96 return jobSettingsPanel;
106 KeywordSearchGlobalSettingsPanel globalSettingsPanel =
new KeywordSearchGlobalSettingsPanel();
107 globalSettingsPanel.load();
108 return globalSettingsPanel;
119 if (!(settings instanceof KeywordSearchJobSettings)) {
120 throw new IllegalArgumentException(NbBundle.getMessage(
this.getClass(),
121 "KeywordSearchModuleFactory.createFileIngestModule.exception.msg"));
134 throw new IllegalArgumentException(NbBundle.getMessage(
this.getClass(),
135 "KeywordSearchModuleFactory.createFileIngestModule.exception.msg"));
149 throw new IllegalArgumentException(NbBundle.getMessage(
this.getClass(),
150 "KeywordSearchModuleFactory.createFileIngestModule.exception.msg"));
boolean isDataArtifactIngestModuleFactory()
FileIngestModule createFileIngestModule(IngestModuleIngestJobSettings settings)
String getModuleDescription()
String getModuleDisplayName()
IngestModuleIngestJobSettings getDefaultIngestJobSettings()
AnalysisResultIngestModule createAnalysisResultIngestModule(IngestModuleIngestJobSettings settings)
DataArtifactIngestModule createDataArtifactIngestModule(IngestModuleIngestJobSettings settings)
static String getVersion()
IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings)
IngestModuleGlobalSettingsPanel getGlobalSettingsPanel()
boolean isFileIngestModuleFactory()
boolean hasGlobalSettingsPanel()
boolean hasIngestJobSettingsPanel()
boolean isAnalysisResultIngestModuleFactory()
String getModuleVersionNumber()