Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | 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 (TopProgramsSummary topProgramsData, UserActivitySummary userActivityData)
 
void close ()
 

Protected Member Functions

void fetchInformation (List< DataFetchComponents< DataSource,?>> dataFetchComponents, DataSource dataSource)
 
void fetchInformation (DataSource dataSource)
 
synchronized DataSource getDataSource ()
 
String getDefaultNoIngestMessage (String moduleName)
 
IngestModuleCheckUtil getIngestModuleCheckUtil ()
 
void onNewDataSource (DataSource dataSource)
 
void onNewDataSource (List< DataFetchComponents< DataSource,?>> dataFetchComponents, List<?extends LoadableComponent<?>> loadableComponents, DataSource dataSource)
 
void submit (List<?extends SwingWorker<?,?>> workers)
 

Private Member Functions

String getShortFolderName (String path, String appName)
 
void initComponents ()
 

Static Private Member Functions

static String getFormatted (Date date)
 

Private Attributes

final List< DataFetchComponents< DataSource,?> > dataFetchComponents
 
final IngestRunningLabel ingestRunningLabel = new IngestRunningLabel()
 
final JTablePanel< TopDomainsResultrecentDomainsTable
 
final List< JTablePanel<?> > tables
 
final JTablePanel< TopAccountResulttopAccountsTable
 
final JTablePanel< TopDeviceAttachedResulttopDevicesAttachedTable
 
final TopProgramsSummary topProgramsData
 
final JTablePanel< TopProgramsResulttopProgramsTable
 
final JTablePanel< TopWebSearchResulttopWebSearchesTable
 

Static Private Attributes

static final String ANDROID_FACTORY = "org.python.proxies.module$AndroidModuleFactory"
 
static final String ANDROID_MODULE_NAME = "Android Analyzer"
 
static final DateFormat DATETIME_FORMAT = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss", Locale.getDefault())
 
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 66 of file UserActivityPanel.java.

Constructor & Destructor Documentation

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

Creates a new UserActivityPanel.

Definition at line 235 of file UserActivityPanel.java.

org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.UserActivityPanel ( TopProgramsSummary  topProgramsData,
UserActivitySummary  userActivityData 
)

Member Function Documentation

void org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.close ( )
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 292 of file BaseDataSourceSummaryPanel.java.

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

Definition at line 314 of file UserActivityPanel.java.

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

Definition at line 252 of file BaseDataSourceSummaryPanel.java.

String org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.getDefaultNoIngestMessage ( String  moduleName)
protectedinherited

Get default message when there is a NotIngestedWithModuleException.

Parameters
exceptionThe moduleName.
Returns
Message specifying that the ingest module was not run.

Definition at line 355 of file BaseDataSourceSummaryPanel.java.

static String org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.getFormatted ( Date  date)
staticprivate

Gets a string formatted date or returns empty string if the date is null.

Parameters
dateThe date.
Returns
The formatted date string or empty string if the date is null.

Definition at line 85 of file UserActivityPanel.java.

IngestModuleCheckUtil org.sleuthkit.autopsy.datasourcesummary.ui.BaseDataSourceSummaryPanel.getIngestModuleCheckUtil ( )
protectedinherited

Utility method to return the IngestModuleCheckUtil.

Returns
The IngestModuleCheckUtil.

Definition at line 364 of file BaseDataSourceSummaryPanel.java.

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

References org.sleuthkit.autopsy.datasourcesummary.datamodel.TopProgramsSummary.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 336 of file UserActivityPanel.java.

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

Definition at line 319 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 326 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 262 of file BaseDataSourceSummaryPanel.java.

Member Data Documentation

final String org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.ANDROID_FACTORY = "org.python.proxies.module$AndroidModuleFactory"
staticprivate

Definition at line 75 of file UserActivityPanel.java.

final String org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.ANDROID_MODULE_NAME = "Android Analyzer"
staticprivate

Definition at line 76 of file UserActivityPanel.java.

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

Definition at line 229 of file UserActivityPanel.java.

final DateFormat org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.DATETIME_FORMAT = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss", Locale.getDefault())
staticprivate

Definition at line 69 of file UserActivityPanel.java.

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

Definition at line 227 of file UserActivityPanel.java.

final JTablePanel<TopDomainsResult> org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.recentDomainsTable
private
Initial value:
= JTablePanel.getJTablePanel(Arrays.asList(
new ColumnModel<TopDomainsResult>(
Bundle.UserActivityPanel_TopDomainsTableModel_domain_header(),
(recentDomain) -> new DefaultCellModel(recentDomain.getDomain()),
250),
new ColumnModel<>(
Bundle.UserActivityPanel_TopDomainsTableModel_count_header(),
(recentDomain) -> {
String visitTimes = recentDomain.getVisitTimes() == null ? "" : Long.toString(recentDomain.getVisitTimes());
return new DefaultCellModel(visitTimes);
},
100),
new ColumnModel<>(
Bundle.UserActivityPanel_TopDomainsTableModel_lastAccess_header(),
(recentDomain) -> new DefaultCellModel(getFormatted(recentDomain.getLastVisit())),
150)
))
.setKeyFunction((domain) -> domain.getDomain())

Definition at line 127 of file UserActivityPanel.java.

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

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

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

Definition at line 74 of file UserActivityPanel.java.

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

Definition at line 71 of file UserActivityPanel.java.

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

Definition at line 70 of file UserActivityPanel.java.

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

Definition at line 72 of file UserActivityPanel.java.

final JTablePanel<TopAccountResult> org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topAccountsTable
private
Initial value:
= JTablePanel.getJTablePanel(Arrays.asList(
new ColumnModel<TopAccountResult>(
Bundle.UserActivityPanel_TopAccountTableModel_accountType_header(),
(account) -> new DefaultCellModel(account.getAccountType()),
250
),
new ColumnModel<>(
Bundle.UserActivityPanel_TopAccountTableModel_lastAccess_header(),
(account) -> new DefaultCellModel(getFormatted(account.getLastAccess())),
150
)
))
.setKeyFunction((topAccount) -> topAccount.getAccountType())

Definition at line 203 of file UserActivityPanel.java.

final JTablePanel<TopDeviceAttachedResult> org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topDevicesAttachedTable
private
Initial value:
= JTablePanel.getJTablePanel(Arrays.asList(
new ColumnModel<TopDeviceAttachedResult>(
Bundle.UserActivityPanel_TopDeviceAttachedTableModel_deviceId_header(),
(device) -> new DefaultCellModel(device.getDeviceId()),
250
),
new ColumnModel<>(
Bundle.UserActivityPanel_TopDeviceAttachedTableModel_dateAccessed_header(),
(device) -> new DefaultCellModel(getFormatted(device.getDateAccessed())),
150
),
new ColumnModel<>(
Bundle.UserActivityPanel_TopDeviceAttachedTableModel_makeModel_header(),
(device) -> {
String make = StringUtils.isBlank(device.getDeviceMake()) ? "" : device.getDeviceMake().trim();
String model = StringUtils.isBlank(device.getDeviceModel()) ? "" : device.getDeviceModel().trim();
String makeModelString = (make.isEmpty() || model.isEmpty())
? make + model
: String.format("%s - %s", make, model);
return new DefaultCellModel(makeModelString);
},
250
)
))
.setKeyFunction((topDevice) -> topDevice.getDeviceId())

Definition at line 173 of file UserActivityPanel.java.

final TopProgramsSummary org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topProgramsData
private

Definition at line 230 of file UserActivityPanel.java.

final JTablePanel<TopProgramsResult> org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topProgramsTable
private

Definition at line 90 of file UserActivityPanel.java.

final JTablePanel<TopWebSearchResult> org.sleuthkit.autopsy.datasourcesummary.ui.UserActivityPanel.topWebSearchesTable
private
Initial value:
= JTablePanel.getJTablePanel(Arrays.asList(
new ColumnModel<TopWebSearchResult>(
Bundle.UserActivityPanel_TopWebSearchTableModel_searchString_header(),
(webSearch) -> new DefaultCellModel(webSearch.getSearchString()),
250
),
new ColumnModel<>(
Bundle.UserActivityPanel_TopWebSearchTableModel_dateAccessed_header(),
(webSearch) -> new DefaultCellModel(getFormatted(webSearch.getDateAccessed())),
150
),
new ColumnModel<>(
Bundle.UserActivityPanel_TopWebSearchTableModel_translatedResult_header(),
(webSearch) -> new DefaultCellModel(webSearch.getTranslatedResult()),
250
)
))
.setKeyFunction((query) -> query.getSearchString())

Definition at line 150 of file UserActivityPanel.java.


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

Copyright © 2012-2020 Basis Technology. Generated on: Tue Sep 22 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.