Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
UserActivitySummaryGetter.java
Go to the documentation of this file.
1/*
2 * Autopsy Forensic Browser
3 *
4 * Copyright 2020-2021 Basis Technology Corp.
5 * Contact: carrier <at> sleuthkit <dot> org
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19package org.sleuthkit.autopsy.datasourcesummary.ui;
20
21import org.sleuthkit.autopsy.datasourcesummary.uiutils.DefaultArtifactUpdateGovernor;
22import java.util.Arrays;
23import java.util.Collections;
24import java.util.HashSet;
25import java.util.List;
26import java.util.Set;
27import org.openide.util.NbBundle.Messages;
28import org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider.SleuthkitCaseProviderException;
29import org.sleuthkit.datamodel.DataSource;
30import org.sleuthkit.datamodel.TskCoreException;
31import org.sleuthkit.autopsy.datasourcesummary.datamodel.UserActivitySummary;
32import org.sleuthkit.autopsy.datasourcesummary.datamodel.UserActivitySummary.TopAccountResult;
33import org.sleuthkit.autopsy.datasourcesummary.datamodel.UserActivitySummary.TopDeviceAttachedResult;
34import org.sleuthkit.autopsy.datasourcesummary.datamodel.UserActivitySummary.TopDomainsResult;
35import org.sleuthkit.autopsy.datasourcesummary.datamodel.UserActivitySummary.TopProgramsResult;
36import org.sleuthkit.autopsy.datasourcesummary.datamodel.UserActivitySummary.TopWebSearchResult;
37import static org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE;
38
45
46 private static final Set<Integer> ARTIFACT_UPDATE_TYPE_IDS = new HashSet<>(Arrays.asList(
47 ARTIFACT_TYPE.TSK_WEB_SEARCH_QUERY.getTypeID(),
48 ARTIFACT_TYPE.TSK_MESSAGE.getTypeID(),
49 ARTIFACT_TYPE.TSK_EMAIL_MSG.getTypeID(),
50 ARTIFACT_TYPE.TSK_CALLLOG.getTypeID(),
51 ARTIFACT_TYPE.TSK_DEVICE_ATTACHED.getTypeID(),
52 ARTIFACT_TYPE.TSK_WEB_HISTORY.getTypeID(),
53 ARTIFACT_TYPE.TSK_PROG_RUN.getTypeID()
54 ));
55
57
61
62 @Override
63 public Set<Integer> getArtifactTypeIdsForRefresh() {
64 return Collections.unmodifiableSet(ARTIFACT_UPDATE_TYPE_IDS);
65 }
66
77 public List<TopDomainsResult> getRecentDomains(DataSource dataSource, int count) throws TskCoreException, SleuthkitCaseProviderException {
78 return userActivity.getRecentDomains(dataSource, count);
79 }
80
96 public List<TopWebSearchResult> getMostRecentWebSearches(DataSource dataSource, int count) throws SleuthkitCaseProviderException, TskCoreException {
97 return userActivity.getMostRecentWebSearches(dataSource, count);
98 }
99
114 public List<TopDeviceAttachedResult> getRecentDevices(DataSource dataSource, int count) throws SleuthkitCaseProviderException, TskCoreException {
115 return userActivity.getRecentDevices(dataSource, count);
116 }
117
133 @Messages({
134 "DataSourceUserActivitySummary_getRecentAccounts_emailMessage=Email Message",
135 "DataSourceUserActivitySummary_getRecentAccounts_calllogMessage=Call Log",})
136 public List<TopAccountResult> getRecentAccounts(DataSource dataSource, int count) throws SleuthkitCaseProviderException, TskCoreException {
137 return userActivity.getRecentAccounts(dataSource, count);
138 }
139
159 public List<TopProgramsResult> getTopPrograms(DataSource dataSource, int count) throws SleuthkitCaseProviderException, TskCoreException {
160 return userActivity.getTopPrograms(dataSource, count);
161 }
162}
List< TopProgramsResult > getTopPrograms(DataSource dataSource, int count)
List< TopDomainsResult > getRecentDomains(DataSource dataSource, int count)
List< TopDeviceAttachedResult > getRecentDevices(DataSource dataSource, int count)
List< TopAccountResult > getRecentAccounts(DataSource dataSource, int count)
List< TopWebSearchResult > getMostRecentWebSearches(DataSource dataSource, int count)

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.