Autopsy  4.20.0
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  */
19 package org.sleuthkit.autopsy.datasourcesummary.ui;
20 
22 import java.util.Arrays;
23 import java.util.Collections;
24 import java.util.HashSet;
25 import java.util.List;
26 import java.util.Set;
27 import org.openide.util.NbBundle.Messages;
29 import org.sleuthkit.datamodel.DataSource;
30 import org.sleuthkit.datamodel.TskCoreException;
37 import 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 
59  userActivity = new UserActivitySummary();
60  }
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< TopAccountResult > getRecentAccounts(DataSource dataSource, int count)
List< TopWebSearchResult > getMostRecentWebSearches(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)
List< TopDeviceAttachedResult > getRecentDevices(DataSource dataSource, int count)
List< TopProgramsResult > getTopPrograms(DataSource dataSource, int count)
List< TopDomainsResult > getRecentDomains(DataSource dataSource, int count)
List< TopDomainsResult > getRecentDomains(DataSource dataSource, int count)

Copyright © 2012-2022 Basis Technology. Generated on: Tue Aug 1 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.