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

Inherits org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.

Public Member Functions

 RecentFilesPanel ()
 
 RecentFilesPanel (RecentFilesSummary dataHandler)
 
void close ()
 

Protected Member Functions

void fetchInformation (DataSource dataSource)
 
void fetchInformation (List< DataFetchComponents< DataSource,?>> dataFetchComponents, DataSource dataSource)
 
MenuItem getArtifactNavigateItem (BlackboardArtifact artifact)
 
synchronized DataSource getDataSource ()
 
MenuItem getFileNavigateItem (String path)
 
MenuItem getFileNavigateItem (AbstractFile file)
 
void notifyParentClose ()
 
void onNewDataSource (DataSource dataSource)
 
void onNewDataSource (List< DataFetchComponents< DataSource,?>> dataFetchComponents, List<?extends LoadableComponent<?>> loadableComponents, DataSource dataSource)
 
void submit (List<?extends SwingWorker<?,?>> workers)
 

Static Protected Member Functions

static< T > ExcelSheetExport convertToExcel (ExcelExportFunction< T > excelConverter, T data, String sheetName)
 
static< T > ExcelSheetExport getExport (DataFetcher< DataSource, T > dataFetcher, ExcelExportFunction< T > excelConverter, String sheetName, DataSource ds)
 
static< T > T getFetchResult (DataFetcher< DataSource, T > dataFetcher, String sheetName, DataSource ds)
 
static< T, CextendsExcelCellModel > ExcelSheetExport getTableExport (List< ColumnModel< T, C >> columnsModel, String sheetName, List< T > data)
 
static< T, CextendsExcelCellModel > ExcelSheetExport getTableExport (DataFetcher< DataSource, List< T >> dataFetcher, List< ColumnModel< T, C >> columnsModel, String sheetName, DataSource ds)
 

Private Member Functions

Supplier< List< MenuItem > > getPopupFunct (RecentFileDetails record)
 
void initalizeAttchementsTable ()
 
void initalizeDownloadTable ()
 
void initalizeOpenDocsTable ()
 
void initalizeTables ()
 
void initComponents ()
 

Private Attributes

final DataFetcher< DataSource, List< RecentAttachmentDetails > > attachmentsFetcher
 
javax.swing.JPanel attachmentsPane
 
final List< ColumnModel< RecentAttachmentDetails, DefaultCellModel<?> > > attachmentsTemplate
 
final List< DataFetchWorker.DataFetchComponents< DataSource,?> > dataFetchComponents = new ArrayList<>()
 
final DataFetcher< DataSource, List< RecentFileDetails > > docsFetcher
 
final List< ColumnModel< RecentFileDetails, DefaultCellModel<?> > > docsTemplate
 
final DataFetcher< DataSource, List< RecentDownloadDetails > > downloadsFetcher
 
javax.swing.JPanel downloadsPane
 
final List< ColumnModel< RecentDownloadDetails, DefaultCellModel<?> > > downloadsTemplate
 
final IngestRunningLabel ingestRunningLabel = new IngestRunningLabel()
 
javax.swing.JPanel openedDocPane
 
final List< JTablePanel<?> > tablePanelList = new ArrayList<>()
 

Static Private Attributes

static final DateFormat DATETIME_FORMAT = new SimpleDateFormat(DATETIME_FORMAT_STR, Locale.getDefault())
 
static final String DATETIME_FORMAT_STR = "yyyy/MM/dd HH:mm:ss"
 
static final long serialVersionUID = 1L
 

Detailed Description

Data Source Summary recent files panel.

Definition at line 57 of file RecentFilesPanel.java.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 122 of file RecentFilesPanel.java.

org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.RecentFilesPanel ( RecentFilesSummary  dataHandler)

Member Function Documentation

void org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.close ( )
static <T> ExcelSheetExport org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.convertToExcel ( ExcelExportFunction< T >  excelConverter,
data,
String  sheetName 
)
staticprotectedinherited

Helper method that converts data into an excel sheet export handling possible excel exceptions.

Parameters
excelConverterFunction to convert data to an excel sheet export.
dataThe data. If data is null, null will be returned.
sheetNameThe name(s) of the sheet (to be used in the error message).
Returns
The excel sheet export.

Definition at line 513 of file BaseDataSourceSummaryPanel.java.

void org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.fetchInformation ( DataSource  dataSource)
protected

Definition at line 184 of file RecentFilesPanel.java.

void org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.fetchInformation ( List< DataFetchComponents< DataSource,?>>  dataFetchComponents,
DataSource  dataSource 
)
protectedinherited

Utility method to be called when solely updating information (not showing a loading screen) that creates swing workers from the data source argument and data fetch components and then submits them to run.

Parameters
dataFetchComponentsThe components to be run.
dataSourceThe data source argument.

Definition at line 431 of file BaseDataSourceSummaryPanel.java.

MenuItem org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.getArtifactNavigateItem ( BlackboardArtifact  artifact)
protectedinherited

Given the relevant artifact, navigates to the artifact in the tree and closes data source summary dialog if open.

Parameters
artifactThe artifact.
Returns
The menu item for a go to artifact menu item.

Definition at line 260 of file BaseDataSourceSummaryPanel.java.

synchronized DataSource org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.getDataSource ( )
protectedinherited
Returns
The current data source.

Definition at line 391 of file BaseDataSourceSummaryPanel.java.

static <T> ExcelSheetExport org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.getExport ( DataFetcher< DataSource, T >  dataFetcher,
ExcelExportFunction< T >  excelConverter,
String  sheetName,
DataSource  ds 
)
staticprotectedinherited

Returns an excel sheet export given the fetching of data or null if no export created.

Parameters
dataFetcherThe means of fetching data.
excelConverterThe means of converting data to excel.
sheetNameThe name of the sheet (for error handling reporting).
dsThe data source to use for fetching data.
Returns
The excel sheet export or null if no export could be generated.

Definition at line 538 of file BaseDataSourceSummaryPanel.java.

static <T> T org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.getFetchResult ( DataFetcher< DataSource, T >  dataFetcher,
String  sheetName,
DataSource  ds 
)
staticprotectedinherited

Runs a data fetcher and returns the result handling any possible errors with a log message.

Parameters
dataFetcherThe means of fetching the data.
sheetNameThe name of the sheet.
dsThe data source.
Returns
The fetched data.

Definition at line 473 of file BaseDataSourceSummaryPanel.java.

MenuItem org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.getFileNavigateItem ( String  path)
protectedinherited

Creates a menu item to navigate to a file.

Parameters
pathThe path to the file.
Returns
The menu item or null if file cannot be found in data source.

Definition at line 308 of file BaseDataSourceSummaryPanel.java.

MenuItem org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.getFileNavigateItem ( AbstractFile  file)
protectedinherited

Given the relevant file, navigates to the file in the tree and closes data source summary dialog if open.

Parameters
fileThe file.
Returns
The menu item list for a go to artifact menu item.

Definition at line 336 of file BaseDataSourceSummaryPanel.java.

Supplier<List<MenuItem> > org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.getPopupFunct ( RecentFileDetails  record)
private

Takes a base class of RecentFileDetails and provides the pertinent menu items.

Parameters
recordThe RecentFileDetails instance.
Returns
The menu items list containing one action or navigating to the appropriate artifact/file and closing the data source summary dialog if open.

Definition at line 162 of file RecentFilesPanel.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.RecentFilesSummary.RecentFileDetails.getArtifact(), and org.sleuthkit.autopsy.datasourcesummary.datamodel.RecentFilesSummary.RecentFileDetails.getPath().

static <T,CextendsExcelCellModel> ExcelSheetExport org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.getTableExport ( List< ColumnModel< T, C >>  columnsModel,
String  sheetName,
List< T >  data 
)
staticprotectedinherited

Returns an excel table export of the data or null if no export created.

Parameters
columnsModelThe model for the columns.
sheetNameThe name for the sheet.
dataThe data to be exported.
Returns
The excel table export or null if no export could be generated.

Definition at line 554 of file BaseDataSourceSummaryPanel.java.

static <T,CextendsExcelCellModel> ExcelSheetExport org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.getTableExport ( DataFetcher< DataSource, List< T >>  dataFetcher,
List< ColumnModel< T, C >>  columnsModel,
String  sheetName,
DataSource  ds 
)
staticprotectedinherited

Returns an excel table export of the data or null if no export created.

Parameters
dataFetcherThe means of fetching data for the data source and the export.
columnsModelThe model for the columns.
sheetNameThe name for the sheet.
dsThe data source.
Returns
The excel export or null if no export created.

Definition at line 572 of file BaseDataSourceSummaryPanel.java.

void org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.initalizeAttchementsTable ( )
private
void org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.initalizeDownloadTable ( )
private
void org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.initalizeOpenDocsTable ( )
private
void org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.initalizeTables ( )
private

Setup the data model and columns for the panel tables.

Definition at line 212 of file RecentFilesPanel.java.

void org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.initComponents ( )
private

This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.

Definition at line 295 of file RecentFilesPanel.java.

void org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.notifyParentClose ( )
protectedinherited

Sends event that parent should close.

Definition at line 373 of file BaseDataSourceSummaryPanel.java.

void org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.onNewDataSource ( DataSource  dataSource)
protected

Definition at line 189 of file RecentFilesPanel.java.

void org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.onNewDataSource ( List< DataFetchComponents< DataSource,?>>  dataFetchComponents,
List<?extends LoadableComponent<?>>  loadableComponents,
DataSource  dataSource 
)
protectedinherited

Utility method that shows a loading screen with loadable components, create swing workers from the datafetch components and data source argument and submits them to be executed.

Parameters
dataFetchComponentsThe components to register.
loadableComponentsThe components to set to a loading screen.
dataSourceThe data source argument.

Definition at line 591 of file BaseDataSourceSummaryPanel.java.

void org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.submit ( List<?extends SwingWorker<?,?>>  workers)
protectedinherited

Submits the following swing workers for execution in sequential order. If there are any previous workers, those workers are cancelled.

Parameters
workersThe workers to submit for execution.

Definition at line 401 of file BaseDataSourceSummaryPanel.java.

Member Data Documentation

final DataFetcher<DataSource, List<RecentAttachmentDetails> > org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.attachmentsFetcher
private

Definition at line 70 of file RecentFilesPanel.java.

javax.swing.JPanel org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.attachmentsPane
private

Definition at line 412 of file RecentFilesPanel.java.

final List<ColumnModel<RecentAttachmentDetails, DefaultCellModel<?> > > org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.attachmentsTemplate
private
Initial value:
= Arrays.asList(
new ColumnModel<>(Bundle.RecentFilePanel_col_header_path(),
(prog) -> {
return new DefaultCellModel<>(prog.getPath())
.setPopupMenuRetriever(getPopupFunct(prog));
}, 250),
new ColumnModel<>(Bundle.RecentFilesPanel_col_head_date(),
getDateFunct(),
80),
new ColumnModel<>(Bundle.RecentFilePanel_col_header_sender(),
(prog) -> {
return new DefaultCellModel<>(prog.getSender())
.setPopupMenuRetriever(getPopupFunct(prog));
}, 150))

Definition at line 97 of file RecentFilesPanel.java.

final List<DataFetchWorker.DataFetchComponents<DataSource, ?> > org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.dataFetchComponents = new ArrayList<>()
private

Definition at line 64 of file RecentFilesPanel.java.

final DateFormat org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.DATETIME_FORMAT = new SimpleDateFormat(DATETIME_FORMAT_STR, Locale.getDefault())
staticprivate

Definition at line 61 of file RecentFilesPanel.java.

final String org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.DATETIME_FORMAT_STR = "yyyy/MM/dd HH:mm:ss"
staticprivate

Definition at line 60 of file RecentFilesPanel.java.

final DataFetcher<DataSource, List<RecentFileDetails> > org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.docsFetcher
private

Definition at line 68 of file RecentFilesPanel.java.

final List<ColumnModel<RecentFileDetails, DefaultCellModel<?> > > org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.docsTemplate
private
Initial value:
= Arrays.asList(
new ColumnModel<>(Bundle.RecentFilePanel_col_header_path(),
(prog) -> {
return new DefaultCellModel<>(prog.getPath())
.setPopupMenuRetriever(getPopupFunct(prog));
}, 250),
new ColumnModel<>(Bundle.RecentFilesPanel_col_head_date(),
getDateFunct(),
80))

Definition at line 72 of file RecentFilesPanel.java.

final DataFetcher<DataSource, List<RecentDownloadDetails> > org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.downloadsFetcher
private

Definition at line 69 of file RecentFilesPanel.java.

javax.swing.JPanel org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.downloadsPane
private

Definition at line 413 of file RecentFilesPanel.java.

final List<ColumnModel<RecentDownloadDetails, DefaultCellModel<?> > > org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.downloadsTemplate
private
Initial value:
= Arrays.asList(
new ColumnModel<>(Bundle.RecentFilePanel_col_header_domain(),
(prog) -> {
return new DefaultCellModel<>(prog.getWebDomain())
.setPopupMenuRetriever(getPopupFunct(prog));
}, 100),
new ColumnModel<>(Bundle.RecentFilePanel_col_header_path(),
(prog) -> {
return new DefaultCellModel<>(prog.getPath())
.setPopupMenuRetriever(getPopupFunct(prog));
}, 250),
new ColumnModel<>(Bundle.RecentFilesPanel_col_head_date(),
getDateFunct(),
80))

Definition at line 82 of file RecentFilesPanel.java.

final IngestRunningLabel org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.ingestRunningLabel = new IngestRunningLabel()
private

Definition at line 66 of file RecentFilesPanel.java.

javax.swing.JPanel org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.openedDocPane
private

Definition at line 414 of file RecentFilesPanel.java.

final long org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.serialVersionUID = 1L
staticprivate

Definition at line 59 of file RecentFilesPanel.java.

final List<JTablePanel<?> > org.sleuthkit.autopsy.datasourcesummary.ui.RecentFilesPanel.tablePanelList = new ArrayList<>()
private

Definition at line 63 of file RecentFilesPanel.java.


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

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