Autopsy  4.18.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary Class Reference

Inherits org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultUpdateGovernor.

Public Member Functions

 MimeTypeSummary ()
 
 MimeTypeSummary (SleuthkitCaseProvider provider)
 
default Set< Case.Events > getCaseEventUpdates ()
 
Long getCountOfAllRegularFiles (DataSource dataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 
Long getCountOfFilesForMimeTypes (DataSource currentDataSource, Set< String > setOfMimeTypes) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 
Long getCountOfFilesNotInMimeTypes (DataSource currentDataSource, Set< String > setOfMimeTypes) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 
Long getCountOfFilesWithNoMimeType (DataSource currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 
Set< IngestManager.IngestJobEvent > getIngestJobEventUpdates ()
 
default boolean isRefreshRequired (ModuleDataEvent evt)
 
default boolean isRefreshRequired (IngestManager.IngestJobEvent evt)
 
boolean isRefreshRequired (ModuleContentEvent evt)
 
boolean isRefreshRequired (AbstractFile file)
 
boolean isRefreshRequired (IngestManager.IngestJobEvent evt)
 
default boolean isRefreshRequiredForCaseEvent (PropertyChangeEvent evt)
 

Private Member Functions

String getSqlSet (Set< String > setValues)
 

Private Attributes

final SleuthkitCaseProvider provider
 

Static Private Attributes

static final Set< IngestManager.IngestJobEvent > INGEST_JOB_EVENTS
 

Detailed Description

Provides methods to query for datasource files by mime type.

Definition at line 38 of file MimeTypeSummary.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.MimeTypeSummary ( )
org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.MimeTypeSummary ( SleuthkitCaseProvider  provider)

Main constructor.

Parameters
providerThe means of obtaining a sleuthkit case.

Definition at line 57 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.provider.

Member Function Documentation

default Set<Case.Events> org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultUpdateGovernor.getCaseEventUpdates ( )
inherited
Returns
The set of Case Events for which data should be updated.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.UpdateGovernor.

Definition at line 57 of file DefaultUpdateGovernor.java.

Long org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfAllRegularFiles ( DataSource  dataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Get a count of all regular files in a datasource.

Parameters
dataSourceThe datasource.
Returns
The count of regular files.
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 147 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider.get().

Long org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesForMimeTypes ( DataSource  currentDataSource,
Set< String >  setOfMimeTypes 
) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Get the number of files in the case database for the current data source which have the specified mimetypes.

Parameters
currentDataSourcethe data source which we are finding a file count
setOfMimeTypesthe set of mime types which we are finding the number of occurences of
Returns
a Long value which represents the number of occurrences of the specified mime types in the current case for the specified data source, null if no count was retrieved
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 99 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider.get(), and org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getSqlSet().

Long org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesNotInMimeTypes ( DataSource  currentDataSource,
Set< String >  setOfMimeTypes 
) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Get the number of files in the case database for the current data source which do not have the specified mimetypes.

Parameters
currentDataSourcethe data source which we are finding a file count
setOfMimeTypesthe set of mime types that should be excluded.
Returns
a Long value which represents the number of files that do not have the specific mime type, but do have a mime type.
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 125 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider.get(), and org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getSqlSet().

Long org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesWithNoMimeType ( DataSource  currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Gets the number of files in the data source with no assigned mime type.

Parameters
currentDataSourceThe data source.
Returns
The number of files with no mime type or null if there is an issue searching the data source.
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 165 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider.get().

Set<IngestManager.IngestJobEvent> org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getIngestJobEventUpdates ( )
Returns
The set of Ingest Job Events for which data should be updated.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultUpdateGovernor.

Definition at line 77 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.INGEST_JOB_EVENTS.

String org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getSqlSet ( Set< String >  setValues)
private

Derives a sql set string (i.e. "('val1', 'val2', 'val3')"). A naive attempt is made to sanitize the strings by removing single quotes from values.

Parameters
setValuesThe values that should be present in the set. Single quotes are removed.
Returns
The sql set string.

Definition at line 185 of file MimeTypeSummary.java.

Referenced by org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesForMimeTypes(), and org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesNotInMimeTypes().

default boolean org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultUpdateGovernor.isRefreshRequired ( ModuleDataEvent  evt)
inherited

Given a module data event, whether or not an update should occur.

Parameters
evtThe ModuleDataEvent that is occurring.
Returns
Whether or not this event should trigger an update.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.UpdateGovernor.

Implemented in org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultArtifactUpdateGovernor.

Definition at line 47 of file DefaultUpdateGovernor.java.

default boolean org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultUpdateGovernor.isRefreshRequired ( IngestManager.IngestJobEvent  evt)
inherited
boolean org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.isRefreshRequired ( ModuleContentEvent  evt)

Given a module content event, whether or not an update should occur.

Parameters
evtThe ModuleContentEvent.
Returns
Whether or not this event should trigger an update.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultUpdateGovernor.

Definition at line 62 of file MimeTypeSummary.java.

boolean org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.isRefreshRequired ( AbstractFile  evt)

Whether or not a newly added AbstractFile should trigger an update.

Parameters
evtThe AbstractFile.
Returns
True if an update should occur.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultUpdateGovernor.

Definition at line 67 of file MimeTypeSummary.java.

boolean org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.isRefreshRequired ( IngestManager.IngestJobEvent  evt)

Given an ingest job event, determines whether or not an update should occur.

Parameters
evtThe event.
Returns
Whether or not this event should trigger an update.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.UpdateGovernor.

Definition at line 72 of file MimeTypeSummary.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.INGEST_JOB_EVENTS.

default boolean org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultUpdateGovernor.isRefreshRequiredForCaseEvent ( PropertyChangeEvent  evt)
inherited

Given a case event, whether or not an update should occur.

Parameters
evtThe event.
Returns
Whether or not this event should trigger an update.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.UpdateGovernor.

Definition at line 37 of file DefaultUpdateGovernor.java.

Member Data Documentation

final Set<IngestManager.IngestJobEvent> org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.INGEST_JOB_EVENTS
staticprivate
Initial value:
= new HashSet<>(
Arrays.asList(IngestManager.IngestJobEvent.COMPLETED, IngestManager.IngestJobEvent.CANCELLED))

Definition at line 42 of file MimeTypeSummary.java.

Referenced by org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getIngestJobEventUpdates(), and org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.isRefreshRequired().

final SleuthkitCaseProvider org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.provider
private

The documentation for this class was generated from the following file:

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.