19 package org.sleuthkit.autopsy.datasourcesummary.datamodel;
22 import java.sql.SQLException;
23 import java.util.Arrays;
24 import java.util.HashSet;
25 import java.util.List;
27 import java.util.stream.Collectors;
102 return DataSourceInfoUtilities.getCountOfRegNonSlackFiles(
105 "mime_type IN " +
getSqlSet(setOfMimeTypes)
128 return DataSourceInfoUtilities.getCountOfRegNonSlackFiles(
131 "mime_type NOT IN " +
getSqlSet(setOfMimeTypes)
132 +
" AND mime_type IS NOT NULL AND mime_type <> '' "
150 return DataSourceInfoUtilities.getCountOfRegNonSlackFiles(provider.
get(), dataSource, null);
168 return DataSourceInfoUtilities.getCountOfRegNonSlackFiles(
171 "(mime_type IS NULL OR mime_type = '') "
186 List<String> quotedValues = setValues
188 .map(str -> String.format(
"'%s'", str.replace(
"'",
"")))
189 .collect(Collectors.toList());
191 String commaSeparatedQuoted = String.join(
", ", quotedValues);
192 return String.format(
"(%s) ", commaSeparatedQuoted);
SleuthkitCaseProvider DEFAULT
Long getCountOfFilesNotInMimeTypes(DataSource currentDataSource, Set< String > setOfMimeTypes)
static final Set< IngestManager.IngestJobEvent > INGEST_JOB_EVENTS
boolean isRefreshRequired(ModuleContentEvent evt)
Long getCountOfFilesForMimeTypes(DataSource currentDataSource, Set< String > setOfMimeTypes)
Long getCountOfFilesWithNoMimeType(DataSource currentDataSource)
boolean isRefreshRequired(IngestManager.IngestJobEvent evt)
final SleuthkitCaseProvider provider
MimeTypeSummary(SleuthkitCaseProvider provider)
boolean isRefreshRequired(AbstractFile file)
String getSqlSet(Set< String > setValues)
Long getCountOfAllRegularFiles(DataSource dataSource)
Set< IngestManager.IngestJobEvent > getIngestJobEventUpdates()