19 package org.sleuthkit.autopsy.keywordsearch;
21 import java.util.ArrayList;
22 import java.util.HashSet;
23 import java.util.List;
54 this.namesOfDisabledKeywordLists =
new HashSet<>();
57 this.ocrEnabled = null;
58 this.limitedOCREnabled = null;
60 this.indexToSolr =
true;
75 KeywordSearchJobSettings(List<String> namesOfEnabledKeywordLists, List<String> namesOfDisabledKeywordLists,
boolean ocrEnabled,
boolean limitedOCREnabled,
boolean ocrOnly,
boolean indexToSolr) {
89 @SuppressWarnings(
"deprecation")
91 if (ocrEnabled == null) {
92 ocrEnabled = KeywordSearchSettings.getOcrOption();
113 @SuppressWarnings(
"deprecation")
114 boolean isLimitedOCREnabled() {
115 if (limitedOCREnabled == null) {
116 limitedOCREnabled = KeywordSearchSettings.getLimitedOcrOption();
129 void setLimitedOCREnabled(
boolean limitedOCREnabled) {
138 boolean isOCROnly() {
149 void setOCROnly(
boolean ocrOnly) {
169 boolean keywordListIsEnabled(String keywordListName) {
171 return namesOfEnabledKeywordLists.contains(keywordListName);
179 List<String> getNamesOfEnabledKeyWordLists() {
189 List<String> getNamesOfDisabledKeyWordLists() {
199 if (null == this.namesOfDisabledKeywordLists) {
200 this.namesOfDisabledKeywordLists =
new HashSet<>();
204 boolean isIndexToSolrEnabled() {
208 void setIndexToSolrEnabled(
boolean enabled){
209 indexToSolr = enabled;
final HashSet< String > namesOfEnabledKeywordLists
Boolean limitedOCREnabled
HashSet< String > namesOfDisabledKeywordLists
static final long serialVersionUID
void setOCREnabled(boolean ocrEnabled)
void upgradeFromOlderVersions()