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

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

Public Member Functions

 MimeTypeSummaryGetter ()
 
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)
 
boolean isRefreshRequired (ModuleContentEvent evt)
 
boolean isRefreshRequired (AbstractFile file)
 
boolean isRefreshRequired (IngestManager.IngestJobEvent evt)
 
boolean isRefreshRequired (IngestJobEvent evt)
 
default boolean isRefreshRequiredForCaseEvent (PropertyChangeEvent evt)
 

Private Attributes

final MimeTypeSummary mimeTypeSummary
 

Static Private Attributes

static final Set< IngestManager.IngestJobEvent > INGEST_JOB_EVENTS
 

Detailed Description

Wrapper class for converting org.sleuthkit.autopsy.contentutils.TypesSummary functionality into a DefaultArtifactUpdateGovernor used by TypesPanel tab.

Definition at line 40 of file MimeTypeSummaryGetter.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.MimeTypeSummaryGetter ( )

Main constructor.

Definition at line 50 of file MimeTypeSummaryGetter.java.

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.ui.MimeTypeSummaryGetter.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 129 of file MimeTypeSummaryGetter.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfAllRegularFiles().

Long org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.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 92 of file MimeTypeSummaryGetter.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesForMimeTypes().

Long org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.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 113 of file MimeTypeSummaryGetter.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesNotInMimeTypes().

Long org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.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 146 of file MimeTypeSummaryGetter.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.MimeTypeSummary.getCountOfFilesWithNoMimeType().

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

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

Definition at line 70 of file MimeTypeSummaryGetter.java.

References org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.INGEST_JOB_EVENTS.

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.

boolean org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.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 55 of file MimeTypeSummaryGetter.java.

boolean org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.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 60 of file MimeTypeSummaryGetter.java.

boolean org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.isRefreshRequired ( IngestManager.IngestJobEvent  evt)
boolean org.sleuthkit.autopsy.datasourcesummary.uiutils.UpdateGovernor.isRefreshRequired ( IngestJobEvent  evt)
inherited

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.
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.ui.MimeTypeSummaryGetter.INGEST_JOB_EVENTS
staticprivate
Initial value:
= new HashSet<>(
Arrays.asList(IngestManager.IngestJobEvent.COMPLETED, IngestManager.IngestJobEvent.CANCELLED))

Definition at line 42 of file MimeTypeSummaryGetter.java.

Referenced by org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.getIngestJobEventUpdates(), and org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.isRefreshRequired().

final MimeTypeSummary org.sleuthkit.autopsy.datasourcesummary.ui.MimeTypeSummaryGetter.mimeTypeSummary
private

Definition at line 45 of file MimeTypeSummaryGetter.java.


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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.