Autopsy  4.18.0
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 49 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 127 of file ManageHostsDialog.java.

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

Main constructor.

Parameters
parentThe parent dialog.

Definition at line 137 of file ManageHostsDialog.java.

Member Function Documentation

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

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

Definition at line 164 of file ManageHostsDialog.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().

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

Definition at line 559 of file ManageHostsDialog.java.

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

Definition at line 552 of file ManageHostsDialog.java.

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

Deletes the selected host if possible.

Parameters
selectedHost

Definition at line 184 of file ManageHostsDialog.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().

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

Definition at line 563 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 232 of file ManageHostsDialog.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().

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 260 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 320 of file ManageHostsDialog.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().

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 310 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 145 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 369 of file ManageHostsDialog.java.

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

Definition at line 548 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 282 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 351 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 291 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 200 of file ManageHostsDialog.java.

Member Data Documentation

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

Definition at line 571 of file ManageHostsDialog.java.

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

Definition at line 572 of file ManageHostsDialog.java.

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

Definition at line 573 of file ManageHostsDialog.java.

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

Definition at line 120 of file ManageHostsDialog.java.

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

Definition at line 574 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 575 of file ManageHostsDialog.java.

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

Definition at line 576 of file ManageHostsDialog.java.

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

Definition at line 117 of file ManageHostsDialog.java.

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

Definition at line 577 of file ManageHostsDialog.java.

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

Definition at line 118 of file ManageHostsDialog.java.


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

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.