Autopsy  4.18.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.UserActivityPanel Class Reference

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

Public Member Functions

 UserActivityPanel ()
 
 UserActivityPanel (UserActivitySummary userActivityData)
 
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

List< MenuItemgetPopup (LastAccessedArtifact record)
 
String getShortFolderName (String path, String appName)
 
void initComponents ()
 

Private Attributes

final List< DataFetchComponents< DataSource,?> > dataFetchComponents
 
final IngestRunningLabel ingestRunningLabel = new IngestRunningLabel()
 
final JTablePanel< TopDomainsResultrecentDomainsTable
 
final List< JTablePanel<?> > tables
 
final DataFetcher< DataSource, List< TopAccountResult > > topAccountsFetcher
 
final JTablePanel< TopAccountResulttopAccountsTable
 
final List< ColumnModel< TopAccountResult, DefaultCellModel<?> > > topAccountsTemplate
 
final DataFetcher< DataSource, List< TopDeviceAttachedResult > > topDevicesAttachedFetcher
 
final JTablePanel< TopDeviceAttachedResulttopDevicesAttachedTable
 
final List< ColumnModel< TopDeviceAttachedResult, DefaultCellModel<?> > > topDevicesTemplate
 
final DataFetcher< DataSource, List< TopDomainsResult > > topDomainsFetcher
 
final List< ColumnModel< TopDomainsResult, DefaultCellModel<?> > > topDomainsTemplate
 
final DataFetcher< DataSource, List< TopProgramsResult > > topProgramsFetcher
 
final JTablePanel< TopProgramsResulttopProgramsTable
 
final List< ColumnModel< TopProgramsResult, DefaultCellModel<?> > > topProgramsTemplate
 
final DataFetcher< DataSource, List< TopWebSearchResult > > topWebSearchesFetcher
 
final JTablePanel< TopWebSearchResulttopWebSearchesTable
 
final List< ColumnModel< TopWebSearchResult, DefaultCellModel<?> > > topWebSearchesTemplate
 
final UserActivitySummary userActivityData
 

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
 
static final int TOP_ACCOUNTS_COUNT = 5
 
static final int TOP_DEVICES_COUNT = 10
 
static final int TOP_DOMAINS_COUNT = 10
 
static final int TOP_PROGS_COUNT = 10
 
static final int TOP_SEARCHES_COUNT = 10
 

Detailed Description

A panel to display user activity.

Definition at line 77 of file UserActivityPanel.java.

Constructor & Destructor Documentation

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

Creates a new UserActivityPanel.

Definition at line 273 of file UserActivityPanel.java.

org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.UserActivityPanel ( UserActivitySummary  userActivityData)

Member Function Documentation

void org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.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.UserActivityPanel.fetchInformation ( DataSource  dataSource)
protected

Definition at line 354 of file UserActivityPanel.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.

List<MenuItem> org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.getPopup ( LastAccessedArtifact  record)
private

Takes a base class of LastAccessedArtifact and provides the pertinent menu items. going to artifact.

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

Definition at line 337 of file UserActivityPanel.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.UserActivitySummary.LastAccessedArtifact.getArtifact().

String org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.getShortFolderName ( String  path,
String  appName 
)
private

Queries DataSourceTopProgramsSummary instance for short folder name.

Parameters
pathThe path for the application.
appNameThe application name.
Returns
The underlying short folder name if one exists.

Definition at line 349 of file UserActivityPanel.java.

References org.sleuthkit.autopsy.datasourcesummary.datamodel.UserActivitySummary.getShortFolderName().

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.UserActivityPanel.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 388 of file UserActivityPanel.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.UserActivityPanel.onNewDataSource ( DataSource  dataSource)
protected

Definition at line 359 of file UserActivityPanel.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 List<DataFetchComponents<DataSource, ?> > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.dataFetchComponents
private

Definition at line 267 of file UserActivityPanel.java.

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

Definition at line 81 of file UserActivityPanel.java.

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

Definition at line 80 of file UserActivityPanel.java.

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

Definition at line 265 of file UserActivityPanel.java.

final JTablePanel<TopDomainsResult> org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.recentDomainsTable
private
Initial value:
= JTablePanel.getJTablePanel(topDomainsTemplate)
.setKeyFunction((domain) -> domain.getDomain())

Definition at line 236 of file UserActivityPanel.java.

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

Definition at line 79 of file UserActivityPanel.java.

final List<JTablePanel<?> > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.tables
private
final int org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.TOP_ACCOUNTS_COUNT = 5
staticprivate

Definition at line 85 of file UserActivityPanel.java.

final int org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.TOP_DEVICES_COUNT = 10
staticprivate

Definition at line 86 of file UserActivityPanel.java.

final int org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.TOP_DOMAINS_COUNT = 10
staticprivate

Definition at line 83 of file UserActivityPanel.java.

final int org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.TOP_PROGS_COUNT = 10
staticprivate

Definition at line 82 of file UserActivityPanel.java.

final int org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.TOP_SEARCHES_COUNT = 10
staticprivate

Definition at line 84 of file UserActivityPanel.java.

final DataFetcher<DataSource, List<TopAccountResult> > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topAccountsFetcher
private

Definition at line 255 of file UserActivityPanel.java.

final JTablePanel<TopAccountResult> org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topAccountsTable
private
Initial value:
= JTablePanel.getJTablePanel(topAccountsTemplate)
.setKeyFunction((topAccount) -> topAccount.getAccountType())

Definition at line 248 of file UserActivityPanel.java.

final List<ColumnModel<TopAccountResult, DefaultCellModel<?> > > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topAccountsTemplate
private
Initial value:
= Arrays.asList(
new ColumnModel<>(
Bundle.UserActivityPanel_TopAccountTableModel_accountType_header(),
(account) -> {
return new DefaultCellModel<>(account.getAccountType())
.setPopupMenu(getPopup(account));
},
250
),
new ColumnModel<>(
Bundle.UserActivityPanel_TopAccountTableModel_lastAccess_header(),
getDateFunct(),
150
)
)

Definition at line 213 of file UserActivityPanel.java.

final DataFetcher<DataSource, List<TopDeviceAttachedResult> > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topDevicesAttachedFetcher
private

Definition at line 254 of file UserActivityPanel.java.

final JTablePanel<TopDeviceAttachedResult> org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topDevicesAttachedTable
private
Initial value:
= JTablePanel.getJTablePanel(topDevicesTemplate)
.setKeyFunction((topDevice) -> topDevice.getDeviceId())

Definition at line 244 of file UserActivityPanel.java.

final List<ColumnModel<TopDeviceAttachedResult, DefaultCellModel<?> > > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topDevicesTemplate
private

Definition at line 180 of file UserActivityPanel.java.

final DataFetcher<DataSource, List<TopDomainsResult> > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topDomainsFetcher
private

Definition at line 252 of file UserActivityPanel.java.

final List<ColumnModel<TopDomainsResult, DefaultCellModel<?> > > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topDomainsTemplate
private
Initial value:
= Arrays.asList(
new ColumnModel<>(
Bundle.UserActivityPanel_TopDomainsTableModel_domain_header(),
(recentDomain) -> {
return new DefaultCellModel<>(recentDomain.getDomain())
.setPopupMenu(getPopup(recentDomain));
},
250),
new ColumnModel<>(
Bundle.UserActivityPanel_TopDomainsTableModel_count_header(),
(recentDomain) -> {
return new DefaultCellModel<>(recentDomain.getVisitTimes(), (num) -> num == null ? "" : num.toString())
.setPopupMenu(getPopup(recentDomain));
},
100),
new ColumnModel<>(
Bundle.UserActivityPanel_TopDomainsTableModel_lastAccess_header(),
getDateFunct(),
150)
)

Definition at line 127 of file UserActivityPanel.java.

final DataFetcher<DataSource, List<TopProgramsResult> > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topProgramsFetcher
private

Definition at line 251 of file UserActivityPanel.java.

final JTablePanel<TopProgramsResult> org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topProgramsTable
private
Initial value:
= JTablePanel.getJTablePanel(topProgramsTemplate)
.setKeyFunction((prog) -> prog.getProgramPath() + ":" + prog.getProgramName())

Definition at line 232 of file UserActivityPanel.java.

final List<ColumnModel<TopProgramsResult, DefaultCellModel<?> > > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topProgramsTemplate
private

Definition at line 89 of file UserActivityPanel.java.

final DataFetcher<DataSource, List<TopWebSearchResult> > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topWebSearchesFetcher
private

Definition at line 253 of file UserActivityPanel.java.

final JTablePanel<TopWebSearchResult> org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topWebSearchesTable
private
Initial value:
= JTablePanel.getJTablePanel(topWebSearchesTemplate)
.setKeyFunction((query) -> query.getSearchString())

Definition at line 240 of file UserActivityPanel.java.

final List<ColumnModel<TopWebSearchResult, DefaultCellModel<?> > > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topWebSearchesTemplate
private
Initial value:
= Arrays.asList(
new ColumnModel<>(
Bundle.UserActivityPanel_TopWebSearchTableModel_searchString_header(),
(webSearch) -> {
return new DefaultCellModel<>(webSearch.getSearchString())
.setPopupMenu(getPopup(webSearch));
},
250
),
new ColumnModel<>(
Bundle.UserActivityPanel_TopWebSearchTableModel_dateAccessed_header(),
getDateFunct(),
150
),
new ColumnModel<>(
Bundle.UserActivityPanel_TopWebSearchTableModel_translatedResult_header(),
(webSearch) -> {
return new DefaultCellModel<>(webSearch.getTranslatedResult())
.setPopupMenu(getPopup(webSearch));
},
250
)
)

Definition at line 152 of file UserActivityPanel.java.

final UserActivitySummary org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.userActivityData
private

Definition at line 268 of file UserActivityPanel.java.


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.