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.TypesSummaryGetter Class Reference

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

Public Member Functions

 TypesSummaryGetter ()
 
default Set< Case.Events > getCaseEventUpdates ()
 
Long getCountOfAllocatedFiles (DataSource currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 
Long getCountOfDirectories (DataSource currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 
Long getCountOfFiles (DataSource currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 
Long getCountOfSlackFiles (DataSource currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException
 
Long getCountOfUnallocatedFiles (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 TypesSummary typesSummary
 

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 DataSourceSummaryCountsPanel.

Definition at line 41 of file TypesSummaryGetter.java.

Constructor & Destructor Documentation

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

Main constructor.

Definition at line 51 of file TypesSummaryGetter.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.TypesSummaryGetter.getCountOfAllocatedFiles ( DataSource  currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Get count of allocated files in a data source.

Parameters
currentDataSourceThe data source.
Returns
The count.
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 102 of file TypesSummaryGetter.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.TypesSummary.getCountOfAllocatedFiles().

Long org.sleuthkit.autopsy.datasourcesummary.ui.TypesSummaryGetter.getCountOfDirectories ( DataSource  currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Get count of directories in a data source.

Parameters
currentDataSourceThe data source.
Returns
The count.
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 134 of file TypesSummaryGetter.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.TypesSummary.getCountOfDirectories().

Long org.sleuthkit.autopsy.datasourcesummary.ui.TypesSummaryGetter.getCountOfFiles ( DataSource  currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Get count of regular files (not directories) in a data source.

Parameters
currentDataSourceThe data source.
Returns
The count.
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 86 of file TypesSummaryGetter.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.TypesSummary.getCountOfFiles().

Long org.sleuthkit.autopsy.datasourcesummary.ui.TypesSummaryGetter.getCountOfSlackFiles ( DataSource  currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Get count of slack files in a data source.

Parameters
currentDataSourceThe data source.
Returns
The count.
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 150 of file TypesSummaryGetter.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.TypesSummary.getCountOfSlackFiles().

Long org.sleuthkit.autopsy.datasourcesummary.ui.TypesSummaryGetter.getCountOfUnallocatedFiles ( DataSource  currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException

Get count of unallocated files in a data source.

Parameters
currentDataSourceThe data source.
Returns
The count.
Exceptions
SleuthkitCaseProviderException
TskCoreException
SQLException

Definition at line 118 of file TypesSummaryGetter.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.TypesSummary.getCountOfUnallocatedFiles().

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

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

Definition at line 71 of file TypesSummaryGetter.java.

References org.sleuthkit.autopsy.datasourcesummary.ui.TypesSummaryGetter.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.TypesSummaryGetter.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 56 of file TypesSummaryGetter.java.

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

boolean org.sleuthkit.autopsy.datasourcesummary.ui.TypesSummaryGetter.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.TypesSummaryGetter.INGEST_JOB_EVENTS
staticprivate
Initial value:
= new HashSet<>(
Arrays.asList(IngestManager.IngestJobEvent.COMPLETED, IngestManager.IngestJobEvent.CANCELLED))

Definition at line 43 of file TypesSummaryGetter.java.

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

final TypesSummary org.sleuthkit.autopsy.datasourcesummary.ui.TypesSummaryGetter.typesSummary
private

Definition at line 46 of file TypesSummaryGetter.java.


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

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