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 "ExtractAllTermsReport.search.noFilesInIdxMsg=No files are in index yet. If Solr keyword search indexing and Solr indexing were enabled, wait for ingest to complete.",
55 "ExtractAllTermsReport.search.noFilesInIdxMsg2=No files are in index yet. Re-ingest the image with the Keyword Search Module and Solr indexing enabled.",
56 "ExtractAllTermsReport.search.searchIngestInProgressTitle=Keyword Search Ingest in Progress",
57 "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>",
58 "ExtractAllTermsReport.startExport=Starting Unique Word Extraction",
59 "ExtractAllTermsReport.export.error=Error During Unique Word Extraction",
60 "ExtractAllTermsReport.exportComplete=Unique Word Extraction Complete"
66 logger.log(Level.SEVERE,
"No open case when attempting to run {0} report", Bundle.ExtractAllTermsReport_getName_text());
72 progressPanel.
start();
83 if (filesIndexed == 0) {
84 if (isIngestRunning) {
94 if (isIngestRunning) {
95 if (KeywordSearchUtil.displayConfirmDialog(Bundle.ExtractAllTermsReport_search_searchIngestInProgressTitle(),
96 Bundle.ExtractAllTermsReport_search_ingestInProgressBody(), KeywordSearchUtil.DIALOG_MESSAGE_TYPE.WARN) ==
false) {
106 server.extractAllTermsForDataSource(outputFile, progressPanel);
108 logger.log(Level.SEVERE,
"Exception while extracting unique terms", ex);
124 "ExtractAllTermsReport.description.text=Extracts all unique words out of the current case. NOTE: The extracted words are lower-cased."})
127 return Bundle.ExtractAllTermsReport_description_text();
136 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()