|
Autopsy
4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits JDialog.
Classes | |
| class | HostListItem |
Public Member Functions | |
| ManageHostsDialog (java.awt.Frame parent) | |
| ManageHostsDialog (Dialog parent) | |
Private Member Functions | |
| void | addHost () |
| void | closeButtonActionPerformed (java.awt.event.ActionEvent evt) |
| void | deleteButtonActionPerformed (java.awt.event.ActionEvent evt) |
| void | deleteHost (Host selectedHost) |
| void | editButtonActionPerformed (java.awt.event.ActionEvent evt) |
| void | editHost (Host selectedHost) |
| String | getAddEditDialogName (Host origValue) |
| Map< Host, List< DataSource > > | getHostListData () |
| String | getNameOrEmpty (Host h) |
| void | init () |
| void | initComponents () |
| void | newButtonActionPerformed (java.awt.event.ActionEvent evt) |
| void | refresh () |
| void | refreshComponents () |
| void | refreshData () |
| void | setSelectedHostById (Long selectedId) |
Private Attributes | |
| javax.swing.JButton | closeButton |
| javax.swing.JButton | deleteButton |
| javax.swing.JButton | editButton |
| Map< Host, List< DataSource > > | hostChildrenMap = Collections.emptyMap() |
| javax.swing.JTextArea | hostDescriptionTextArea |
| javax.swing.JList< org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.HostListItem > | hostList |
| javax.swing.JTextField | hostNameTextField |
| javax.swing.JButton | newButton |
Static Private Attributes | |
| static final Logger | logger = Logger.getLogger(ManageHostsDialog.class.getName()) |
| static final long | serialVersionUID = 1L |
Dialog for managing CRUD operations with hosts from the UI.
Definition at line 51 of file ManageHostsDialog.java.
| org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.ManageHostsDialog | ( | java.awt.Frame | parent | ) |
Main constructor.
| parent | The parent frame. |
Definition at line 129 of file ManageHostsDialog.java.
| org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.ManageHostsDialog | ( | Dialog | parent | ) |
Main constructor.
| parent | The parent dialog. |
Definition at line 139 of file ManageHostsDialog.java.
|
private |
Shows add/edit dialog, and if a value is returned, creates a new Host.
Definition at line 169 of file ManageHostsDialog.java.
References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org::sleuthkit::datamodel::Host.getHostId(), org::sleuthkit::datamodel::SleuthkitCase.getHostManager(), org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase(), org::sleuthkit::datamodel::HostManager.newHost(), and org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Message.warn().
|
private |
Definition at line 576 of file ManageHostsDialog.java.
|
private |
Definition at line 569 of file ManageHostsDialog.java.
|
private |
Deletes the selected host if possible.
| selectedHost |
Definition at line 192 of file ManageHostsDialog.java.
References org::sleuthkit::datamodel::HostManager.deleteHost(), org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Message.error(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org::sleuthkit::datamodel::SleuthkitCase.getHostManager(), org::sleuthkit::datamodel::Host.getName(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().
|
private |
Definition at line 580 of file ManageHostsDialog.java.
|
private |
Shows add/edit dialog, and if a value is returned, creates a new Host.
| selectedHost | The selected host. |
Definition at line 244 of file ManageHostsDialog.java.
References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org::sleuthkit::datamodel::Host.getHostId(), org::sleuthkit::datamodel::SleuthkitCase.getHostManager(), org::sleuthkit::datamodel::Host.getName(), org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase(), org::sleuthkit::datamodel::HostManager.updateHostName(), and org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Message.warn().
|
private |
Shows the dialog to add or edit the name of a host.
| origValue | The original values for the host or null if adding a host. |
Definition at line 274 of file ManageHostsDialog.java.
|
private |
Retrieves the current list of hosts for the case.
Definition at line 336 of file ManageHostsDialog.java.
References org::sleuthkit::datamodel::HostManager.getAllHosts(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org::sleuthkit::datamodel::SleuthkitCase.getDataSources(), org::sleuthkit::datamodel::SleuthkitCase.getHostManager(), org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase(), and org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Message.warn().
|
private |
Returns the name of the host or an empty string if the host or name of host is null.
| h | The host. |
Definition at line 325 of file ManageHostsDialog.java.
References org::sleuthkit::datamodel::Host.getName().
|
private |
Initializes components, loads host data, and sets up list listener.
Definition at line 147 of file ManageHostsDialog.java.
|
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 386 of file ManageHostsDialog.java.
|
private |
Definition at line 565 of file ManageHostsDialog.java.
|
private |
Refreshes the data and ui components for this dialog.
Definition at line 296 of file ManageHostsDialog.java.
|
private |
Refreshes component's enabled state and displayed host data.
Definition at line 368 of file ManageHostsDialog.java.
References org::sleuthkit::datamodel::Host.getName().
|
private |
Refreshes the data for this dialog and updates the host JList with the hosts.
Definition at line 305 of file ManageHostsDialog.java.
|
private |
Selects the host with the given id. If no matching id found in list.
| selectedId | The id of the host to select. |
Definition at line 209 of file ManageHostsDialog.java.
References org::sleuthkit::datamodel::Host.getHostId().
|
private |
Definition at line 588 of file ManageHostsDialog.java.
|
private |
Definition at line 589 of file ManageHostsDialog.java.
|
private |
Definition at line 590 of file ManageHostsDialog.java.
|
private |
Definition at line 122 of file ManageHostsDialog.java.
|
private |
Definition at line 591 of file ManageHostsDialog.java.
|
private |
Definition at line 592 of file ManageHostsDialog.java.
|
private |
Definition at line 593 of file ManageHostsDialog.java.
|
staticprivate |
Definition at line 119 of file ManageHostsDialog.java.
|
private |
Definition at line 594 of file ManageHostsDialog.java.
|
staticprivate |
Definition at line 120 of file ManageHostsDialog.java.
Copyright © 2012-2024 Sleuth Kit Labs. Generated on: Mon Mar 17 2025
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.