19 package org.sleuthkit.autopsy.keywordsearch;
21 import java.nio.file.Path;
22 import java.nio.file.Paths;
23 import java.util.logging.Level;
24 import javax.swing.JPanel;
25 import org.openide.util.NbBundle;
26 import org.openide.util.lookup.ServiceProvider;
39 @ServiceProvider(service = GeneralReportModule.class)
43 private static final String OUTPUT_FILE_NAME =
"Unique Words.txt";
46 "ExtractAllTermsReport.getName.text=Extract Unique Words"})
49 return Bundle.ExtractAllTermsReport_getName_text();
53 "ExtractAllTermsReport.error.noOpenCase=No currently open case.",
54 "# {0} - Keyword search commit frequency",
55 "ExtractAllTermsReport.search.noFilesInIdxMsg=No files are in index yet. Try again later. Index is updated every {0} minutes.",
56 "ExtractAllTermsReport.search.noFilesInIdxMsg2=No files are in index yet. Try again later",
57 "ExtractAllTermsReport.search.searchIngestInProgressTitle=Keyword Search Ingest in Progress",
58 "ExtractAllTermsReport.search.ingestInProgressBody=<html>Keyword Search Ingest is currently running.<br />Not all files have been indexed and unique word extraction might yield incomplete results.<br />Do you want to proceed with unique word extraction anyway?</html>",
59 "ExtractAllTermsReport.startExport=Starting Unique Word Extraction",
60 "ExtractAllTermsReport.export.error=Error During Unique Word Extraction",
61 "ExtractAllTermsReport.exportComplete=Unique Word Extraction Complete"
67 logger.log(Level.SEVERE,
"No open case when attempting to run {0} report", Bundle.ExtractAllTermsReport_getName_text());
73 progressPanel.
start();
84 if (filesIndexed == 0) {
85 if (isIngestRunning) {
95 if (isIngestRunning) {
96 if (KeywordSearchUtil.displayConfirmDialog(Bundle.ExtractAllTermsReport_search_searchIngestInProgressTitle(),
97 Bundle.ExtractAllTermsReport_search_ingestInProgressBody(), KeywordSearchUtil.DIALOG_MESSAGE_TYPE.WARN) ==
false) {
107 server.extractAllTermsForDataSource(outputFile, progressPanel);
109 logger.log(Level.SEVERE,
"Exception while extracting unique terms", ex);
125 "ExtractAllTermsReport.description.text=Extracts all unique words out of the current case. NOTE: The extracted words are lower-cased."})
128 return Bundle.ExtractAllTermsReport_description_text();
137 return OUTPUT_FILE_NAME;
int queryNumIndexedFiles()
static synchronized IngestManager getInstance()
void complete(ReportStatus reportStatus)
static synchronized Server getServer()
boolean isIngestRunning()
void setIndeterminate(boolean indeterminate)
synchronized static Logger getLogger(String name)
void updateStatusLabel(String statusMessage)
static boolean isCaseOpen()
String getReportDirectoryPath()