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;
39 @ServiceProvider(service = IngestModuleFactory.class)
42 private static final HashSet<String> defaultDisabledKeywordListNames =
new HashSet<>(Arrays.asList(
"Phone Numbers",
"IP Addresses",
"URLs",
"Credit Card Numbers"));
47 return getModuleName();
50 static String getModuleName() {
66 XmlKeywordSearchList listManager = XmlKeywordSearchList.getCurrent();
67 List<String> enabledKeywordLists =
new ArrayList<>();
68 List<KeywordList> keywordLists = listManager.getListsL();
70 if (!defaultDisabledKeywordListNames.contains(keywordList.getName())) {
71 enabledKeywordLists.add(keywordList.getName());
85 if (!(settings instanceof KeywordSearchJobSettings)) {
86 throw new IllegalArgumentException(NbBundle.getMessage(
this.getClass(),
87 "KeywordSearchModuleFactory.getIngestJobSettingsPanel.exception.msg"));
90 if (jobSettingsPanel == null) {
93 jobSettingsPanel.reset((KeywordSearchJobSettings) settings);
95 return jobSettingsPanel;
105 KeywordSearchGlobalSettingsPanel globalSettingsPanel =
new KeywordSearchGlobalSettingsPanel();
106 globalSettingsPanel.load();
107 return globalSettingsPanel;
118 if (!(settings instanceof KeywordSearchJobSettings)) {
119 throw new IllegalArgumentException(NbBundle.getMessage(
this.getClass(),
120 "KeywordSearchModuleFactory.createFileIngestModule.exception.msg"));
FileIngestModule createFileIngestModule(IngestModuleIngestJobSettings settings)
String getModuleDescription()
String getModuleDisplayName()
IngestModuleIngestJobSettings getDefaultIngestJobSettings()
static String getVersion()
IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings)
IngestModuleGlobalSettingsPanel getGlobalSettingsPanel()
boolean isFileIngestModuleFactory()
boolean hasGlobalSettingsPanel()
boolean hasIngestJobSettingsPanel()
String getModuleVersionNumber()