mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 11:07:43 +00:00
Merge pull request #3240 from millmanorama/889-easy-api-changes
update to getTypeSpecificID
This commit is contained in:
commit
99b6eb3536
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Autopsy Forensic Browser
|
* Autopsy Forensic Browser
|
||||||
*
|
*
|
||||||
* Copyright 2011-2017 Basis Technology Corp.
|
* Copyright 2017 Basis Technology Corp.
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -84,7 +84,7 @@ class AccountsRootChildren extends ChildFactory<AccountDeviceInstanceKey> {
|
|||||||
this.accountDeviceInstanceKey = accountDeviceInstanceKey;
|
this.accountDeviceInstanceKey = accountDeviceInstanceKey;
|
||||||
this.commsManager = commsManager;
|
this.commsManager = commsManager;
|
||||||
this.account = accountDeviceInstanceKey.getAccountDeviceInstance().getAccount();
|
this.account = accountDeviceInstanceKey.getAccountDeviceInstance().getAccount();
|
||||||
setName(account.getAccountUniqueID());
|
setName(account.getTypeSpecificID());
|
||||||
setIconBaseWithExtension("org/sleuthkit/autopsy/communications/images/" + Utils.getIconFileName(account.getAccountType()));
|
setIconBaseWithExtension("org/sleuthkit/autopsy/communications/images/" + Utils.getIconFileName(account.getAccountType()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,12 +40,12 @@ import org.sleuthkit.autopsy.coreutils.ThreadConfined;
|
|||||||
import org.sleuthkit.autopsy.ingest.IngestManager;
|
import org.sleuthkit.autopsy.ingest.IngestManager;
|
||||||
import static org.sleuthkit.autopsy.ingest.IngestManager.IngestModuleEvent.DATA_ADDED;
|
import static org.sleuthkit.autopsy.ingest.IngestManager.IngestModuleEvent.DATA_ADDED;
|
||||||
import org.sleuthkit.datamodel.Account;
|
import org.sleuthkit.datamodel.Account;
|
||||||
import org.sleuthkit.datamodel.AccountTypeFilter;
|
|
||||||
import org.sleuthkit.datamodel.CommunicationsFilter;
|
import org.sleuthkit.datamodel.CommunicationsFilter;
|
||||||
|
import org.sleuthkit.datamodel.CommunicationsFilter.AccountTypeFilter;
|
||||||
|
import org.sleuthkit.datamodel.CommunicationsFilter.DateRangeFilter;
|
||||||
|
import org.sleuthkit.datamodel.CommunicationsFilter.DeviceFilter;
|
||||||
import org.sleuthkit.datamodel.CommunicationsManager;
|
import org.sleuthkit.datamodel.CommunicationsManager;
|
||||||
import org.sleuthkit.datamodel.DataSource;
|
import org.sleuthkit.datamodel.DataSource;
|
||||||
import org.sleuthkit.datamodel.DateRangeFilter;
|
|
||||||
import org.sleuthkit.datamodel.DeviceFilter;
|
|
||||||
import org.sleuthkit.datamodel.TskCoreException;
|
import org.sleuthkit.datamodel.TskCoreException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Autopsy Forensic Browser
|
* Autopsy Forensic Browser
|
||||||
*
|
*
|
||||||
* Copyright 2011-2017 Basis Technology Corp.
|
* Copyright 2017 Basis Technology Corp.
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -80,7 +80,7 @@ final class MessageBrowser extends javax.swing.JPanel implements ExplorerManager
|
|||||||
if (selectedNodes.length == 1) {
|
if (selectedNodes.length == 1) {
|
||||||
final AccountDeviceInstance accountDeviceInstance = adiNode.getAccountDeviceInstance();
|
final AccountDeviceInstance accountDeviceInstance = adiNode.getAccountDeviceInstance();
|
||||||
accountDeviceInstances = Collections.singleton(accountDeviceInstance);
|
accountDeviceInstances = Collections.singleton(accountDeviceInstance);
|
||||||
messagesResultPanel.setPath(accountDeviceInstance.getAccount().getAccountUniqueID());
|
messagesResultPanel.setPath(accountDeviceInstance.getAccount().getTypeSpecificID());
|
||||||
} else {
|
} else {
|
||||||
accountDeviceInstances = Stream.of(selectedNodes)
|
accountDeviceInstances = Stream.of(selectedNodes)
|
||||||
.map(node -> (AccountDeviceInstanceNode) node)
|
.map(node -> (AccountDeviceInstanceNode) node)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user