Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog Class Reference

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.HostListItemhostList
 
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
 

Detailed Description

Dialog for managing CRUD operations with hosts from the UI.

Definition at line 51 of file ManageHostsDialog.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.ManageHostsDialog ( java.awt.Frame  parent)

Main constructor.

Parameters
parentThe parent frame.

Definition at line 129 of file ManageHostsDialog.java.

org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.ManageHostsDialog ( Dialog  parent)

Main constructor.

Parameters
parentThe parent dialog.

Definition at line 139 of file ManageHostsDialog.java.

Member Function Documentation

void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.addHost ( )
private
void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.closeButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 576 of file ManageHostsDialog.java.

void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.deleteButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 569 of file ManageHostsDialog.java.

void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.deleteHost ( Host  selectedHost)
private
void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.editButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 580 of file ManageHostsDialog.java.

void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.editHost ( Host  selectedHost)
private

Shows add/edit dialog, and if a value is returned, creates a new Host.

Parameters
selectedHostThe selected host.

Definition at line 244 of file ManageHostsDialog.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase(), and org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Message.warn().

String org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.getAddEditDialogName ( Host  origValue)
private

Shows the dialog to add or edit the name of a host.

Parameters
origValueThe original values for the host or null if adding a host.
Returns
The new name for the host or null if operation was cancelled.

Definition at line 274 of file ManageHostsDialog.java.

Map<Host, List<DataSource> > org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.getHostListData ( )
private

Retrieves the current list of hosts for the case.

Returns
The list of hosts to be displayed in the list (sorted alphabetically).

Definition at line 336 of file ManageHostsDialog.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase(), and org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Message.warn().

String org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.getNameOrEmpty ( Host  h)
private

Returns the name of the host or an empty string if the host or name of host is null.

Parameters
hThe host.
Returns
The name of the host or empty string.

Definition at line 325 of file ManageHostsDialog.java.

void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.init ( )
private

Initializes components, loads host data, and sets up list listener.

Definition at line 147 of file ManageHostsDialog.java.

void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.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 386 of file ManageHostsDialog.java.

void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.newButtonActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 565 of file ManageHostsDialog.java.

void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.refresh ( )
private

Refreshes the data and ui components for this dialog.

Definition at line 296 of file ManageHostsDialog.java.

void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.refreshComponents ( )
private

Refreshes component's enabled state and displayed host data.

Definition at line 368 of file ManageHostsDialog.java.

void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.refreshData ( )
private

Refreshes the data for this dialog and updates the host JList with the hosts.

Definition at line 305 of file ManageHostsDialog.java.

void org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.setSelectedHostById ( Long  selectedId)
private

Selects the host with the given id. If no matching id found in list.

Parameters
selectedIdThe id of the host to select.

Definition at line 209 of file ManageHostsDialog.java.

Member Data Documentation

javax.swing.JButton org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.closeButton
private

Definition at line 588 of file ManageHostsDialog.java.

javax.swing.JButton org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.deleteButton
private

Definition at line 589 of file ManageHostsDialog.java.

javax.swing.JButton org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.editButton
private

Definition at line 590 of file ManageHostsDialog.java.

Map<Host, List<DataSource> > org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.hostChildrenMap = Collections.emptyMap()
private

Definition at line 122 of file ManageHostsDialog.java.

javax.swing.JTextArea org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.hostDescriptionTextArea
private

Definition at line 591 of file ManageHostsDialog.java.

javax.swing.JList<org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.HostListItem> org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.hostList
private

Definition at line 592 of file ManageHostsDialog.java.

javax.swing.JTextField org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.hostNameTextField
private

Definition at line 593 of file ManageHostsDialog.java.

final Logger org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.logger = Logger.getLogger(ManageHostsDialog.class.getName())
staticprivate

Definition at line 119 of file ManageHostsDialog.java.

javax.swing.JButton org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.newButton
private

Definition at line 594 of file ManageHostsDialog.java.

final long org.sleuthkit.autopsy.datamodel.hosts.ManageHostsDialog.serialVersionUID = 1L
staticprivate

Definition at line 120 of file ManageHostsDialog.java.


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

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