Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Static 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 (UserActivitySummaryGetter 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 > T getFetchResult (DataFetcher< DataSource, T > dataFetcher, String sheetName, DataSource ds)
 

Private Member Functions

List< MenuItemgetPopup (LastAccessedArtifact record)
 
void initComponents ()
 

Static Private Member Functions

static String getShortFolderName (String path, String appName)
 

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 UserActivitySummaryGetter 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 73 of file UserActivityPanel.java.

Constructor & Destructor Documentation

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

Creates a new UserActivityPanel.

Definition at line 269 of file UserActivityPanel.java.

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

Member Function Documentation

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

Definition at line 351 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 426 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 255 of file BaseDataSourceSummaryPanel.java.

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

Definition at line 386 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 460 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 303 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 331 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 334 of file UserActivityPanel.java.

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

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

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 346 of file UserActivityPanel.java.

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

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 373 of file UserActivityPanel.java.

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

Sends event that parent should close.

Definition at line 368 of file BaseDataSourceSummaryPanel.java.

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

Definition at line 356 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 484 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 396 of file BaseDataSourceSummaryPanel.java.

Member Data Documentation

final List<DataFetchComponents<DataSource, ?> > org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.dataFetchComponents
private

Definition at line 263 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 77 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 76 of file UserActivityPanel.java.

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

Definition at line 261 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 232 of file UserActivityPanel.java.

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

Definition at line 75 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 81 of file UserActivityPanel.java.

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

Definition at line 82 of file UserActivityPanel.java.

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

Definition at line 79 of file UserActivityPanel.java.

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

Definition at line 78 of file UserActivityPanel.java.

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

Definition at line 80 of file UserActivityPanel.java.

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

Definition at line 251 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 244 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 209 of file UserActivityPanel.java.

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

Definition at line 250 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 240 of file UserActivityPanel.java.

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

Definition at line 176 of file UserActivityPanel.java.

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

Definition at line 248 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 123 of file UserActivityPanel.java.

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

Definition at line 247 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 228 of file UserActivityPanel.java.

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

Definition at line 85 of file UserActivityPanel.java.

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

Definition at line 249 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 236 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 148 of file UserActivityPanel.java.

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

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