Autopsy  4.13.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog Class Reference

Inherits JDialog.

Classes

enum  DatabaseTestResult
 
class  TextBoxChangedListener
 

Public Member Functions

 EamDbSettingsDialog ()
 

Private Member Functions

void bnCancelActionPerformed (java.awt.event.ActionEvent evt)
 
void bnDatabasePathFileOpenActionPerformed (java.awt.event.ActionEvent evt)
 
void bnOkActionPerformed (java.awt.event.ActionEvent evt)
 
void cbDatabaseTypeActionPerformed (java.awt.event.ActionEvent evt)
 
boolean checkFields ()
 
void createDb ()
 
void customizeComponents ()
 
boolean databaseFieldsArePopulated ()
 
boolean databaseSettingsAreValid ()
 
void display ()
 
void displayDatabaseSettings (boolean isPostgres)
 
boolean enableOkButton (boolean isValidInput)
 
void initComponents ()
 
void setTextBoxListeners ()
 
void setTextPrompts ()
 
void testDbSettings ()
 
void updateFullDbPath ()
 
void updatePostgresFields (boolean enabled)
 
void updateSqliteFields (boolean enabled)
 
boolean valid ()
 

Static Private Member Functions

static void addDocumentListeners (Collection< JTextField > textFields, TextBoxChangedListener listener)
 
static void configureTextPrompts (Collection< TextPrompt > textPrompts)
 

Private Attributes

javax.swing.JButton bnCancel
 
javax.swing.JButton bnDatabasePathFileOpen
 
javax.swing.ButtonGroup bnGrpDatabasePlatforms
 
javax.swing.JButton bnOk
 
javax.swing.JComboBox< EamDbPlatformEnumcbDatabaseType
 
boolean configurationChanged = false
 
javax.swing.JScrollPane dataBaseFileScrollPane
 
javax.swing.JTextArea dataBaseFileTextArea
 
final PostgresEamDbSettings dbSettingsPostgres
 
final SqliteEamDbSettings dbSettingsSqlite
 
javax.swing.JFileChooser fcDatabasePath
 
javax.swing.Box.Filler filler1
 
javax.swing.JPasswordField jpDbPassword
 
javax.swing.JLabel lbDatabaseDesc
 
javax.swing.JLabel lbDatabasePath
 
javax.swing.JLabel lbDatabaseType
 
javax.swing.JLabel lbHostName
 
javax.swing.JLabel lbPort
 
javax.swing.JLabel lbSingleUserSqLite
 
javax.swing.JLabel lbUserName
 
javax.swing.JLabel lbUserPassword
 
javax.swing.JPanel pnButtons
 
javax.swing.JPanel pnSQLiteSettings
 
EamDbPlatformEnum selectedPlatform
 
javax.swing.JTextField tbDbHostname
 
javax.swing.JTextField tbDbPort
 
javax.swing.JTextField tbDbUsername
 
DatabaseTestResult testingStatus
 
final TextBoxChangedListener textBoxChangedListener
 
final Collection< JTextField > textBoxes
 
javax.swing.JTextField tfDatabasePath
 

Static Private Attributes

static final String CENTRAL_REPO_DB_NAME = "central_repository"
 
static final String CENTRAL_REPO_SQLITE_EXT = ".db"
 
static final Logger logger = Logger.getLogger(EamDbSettingsDialog.class.getName())
 
static final long serialVersionUID = 1L
 

Detailed Description

Configuration dialog for Central Repository database settings.

Definition at line 53 of file EamDbSettingsDialog.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.EamDbSettingsDialog ( )

Member Function Documentation

static void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.addDocumentListeners ( Collection< JTextField >  textFields,
TextBoxChangedListener  listener 
)
staticprivate

Adds a change listener to a collection of text fields.

Parameters
textFieldsThe text fields.
listenerThe change listener.

Definition at line 714 of file EamDbSettingsDialog.java.

void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.bnCancelActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 610 of file EamDbSettingsDialog.java.

void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.bnDatabasePathFileOpenActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.bnOkActionPerformed ( java.awt.event.ActionEvent  evt)
private
void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.cbDatabaseTypeActionPerformed ( java.awt.event.ActionEvent  evt)
private

Definition at line 615 of file EamDbSettingsDialog.java.

boolean org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.checkFields ( )
private

Tests whether or not all of the settings components are populated.

Returns
True or false.

Definition at line 755 of file EamDbSettingsDialog.java.

static void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.configureTextPrompts ( Collection< TextPrompt textPrompts)
staticprivate

Sets the foreground color and transparency of a collection of text prompts.

Parameters
textPromptsThe text prompts to configure.

Definition at line 700 of file EamDbSettingsDialog.java.

void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.createDb ( )
private
void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.customizeComponents ( )
private
boolean org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.databaseFieldsArePopulated ( )
private

Tests whether or not values have been entered in all of the database settings text fields.

Returns
True or false.

Definition at line 727 of file EamDbSettingsDialog.java.

boolean org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.databaseSettingsAreValid ( )
private
void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.display ( )
private

Definition at line 378 of file EamDbSettingsDialog.java.

void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.displayDatabaseSettings ( boolean  isPostgres)
private

Definition at line 625 of file EamDbSettingsDialog.java.

boolean org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.enableOkButton ( boolean  isValidInput)
private

Enable the "OK" button if the db test passed. Disabled defaults to db test passed.

Returns
true

Definition at line 837 of file EamDbSettingsDialog.java.

void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.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 122 of file EamDbSettingsDialog.java.

void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.setTextBoxListeners ( )
private

Register for notifications when the text boxes get updated.

Definition at line 684 of file EamDbSettingsDialog.java.

void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.setTextPrompts ( )
private

Add text prompts to all of the text fields.

Definition at line 650 of file EamDbSettingsDialog.java.

void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.testDbSettings ( )
private
void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.updateFullDbPath ( )
private

Definition at line 620 of file EamDbSettingsDialog.java.

void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.updatePostgresFields ( boolean  enabled)
private
void org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.updateSqliteFields ( boolean  enabled)
private

Update the fields for the SQLite platform depending on whether the SQLite radioButton is enabled.

Parameters
enabled

Definition at line 675 of file EamDbSettingsDialog.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.getDbDirectory().

boolean org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.valid ( )
private

Validates that the form is filled out correctly for our usage.

Returns
true if it's okay, false otherwise.

Definition at line 826 of file EamDbSettingsDialog.java.

Member Data Documentation

javax.swing.JButton org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.bnCancel
private

Definition at line 888 of file EamDbSettingsDialog.java.

javax.swing.JButton org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.bnDatabasePathFileOpen
private

Definition at line 889 of file EamDbSettingsDialog.java.

javax.swing.ButtonGroup org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.bnGrpDatabasePlatforms
private

Definition at line 890 of file EamDbSettingsDialog.java.

javax.swing.JButton org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.bnOk
private

Definition at line 891 of file EamDbSettingsDialog.java.

javax.swing.JComboBox<EamDbPlatformEnum> org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.cbDatabaseType
private

Definition at line 892 of file EamDbSettingsDialog.java.

final String org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.CENTRAL_REPO_DB_NAME = "central_repository"
staticprivate

Definition at line 56 of file EamDbSettingsDialog.java.

final String org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.CENTRAL_REPO_SQLITE_EXT = ".db"
staticprivate

Definition at line 57 of file EamDbSettingsDialog.java.

boolean org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.configurationChanged = false
private

Definition at line 66 of file EamDbSettingsDialog.java.

javax.swing.JScrollPane org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.dataBaseFileScrollPane
private

Definition at line 893 of file EamDbSettingsDialog.java.

javax.swing.JTextArea org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.dataBaseFileTextArea
private

Definition at line 894 of file EamDbSettingsDialog.java.

final PostgresEamDbSettings org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.dbSettingsPostgres
private

Definition at line 62 of file EamDbSettingsDialog.java.

final SqliteEamDbSettings org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.dbSettingsSqlite
private

Definition at line 63 of file EamDbSettingsDialog.java.

javax.swing.JFileChooser org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.fcDatabasePath
private

Definition at line 895 of file EamDbSettingsDialog.java.

javax.swing.Box.Filler org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.filler1
private

Definition at line 896 of file EamDbSettingsDialog.java.

javax.swing.JPasswordField org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.jpDbPassword
private

Definition at line 897 of file EamDbSettingsDialog.java.

javax.swing.JLabel org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.lbDatabaseDesc
private

Definition at line 898 of file EamDbSettingsDialog.java.

javax.swing.JLabel org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.lbDatabasePath
private

Definition at line 899 of file EamDbSettingsDialog.java.

javax.swing.JLabel org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.lbDatabaseType
private

Definition at line 900 of file EamDbSettingsDialog.java.

javax.swing.JLabel org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.lbHostName
private

Definition at line 901 of file EamDbSettingsDialog.java.

javax.swing.JLabel org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.lbPort
private

Definition at line 902 of file EamDbSettingsDialog.java.

javax.swing.JLabel org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.lbSingleUserSqLite
private

Definition at line 903 of file EamDbSettingsDialog.java.

javax.swing.JLabel org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.lbUserName
private

Definition at line 904 of file EamDbSettingsDialog.java.

javax.swing.JLabel org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.lbUserPassword
private

Definition at line 905 of file EamDbSettingsDialog.java.

final Logger org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.logger = Logger.getLogger(EamDbSettingsDialog.class.getName())
staticprivate

Definition at line 55 of file EamDbSettingsDialog.java.

javax.swing.JPanel org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.pnButtons
private

Definition at line 906 of file EamDbSettingsDialog.java.

javax.swing.JPanel org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.pnSQLiteSettings
private

Definition at line 907 of file EamDbSettingsDialog.java.

EamDbPlatformEnum org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.selectedPlatform
private

Definition at line 65 of file EamDbSettingsDialog.java.

final long org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.serialVersionUID = 1L
staticprivate

Definition at line 58 of file EamDbSettingsDialog.java.

javax.swing.JTextField org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.tbDbHostname
private

Definition at line 908 of file EamDbSettingsDialog.java.

javax.swing.JTextField org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.tbDbPort
private

Definition at line 909 of file EamDbSettingsDialog.java.

javax.swing.JTextField org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.tbDbUsername
private

Definition at line 910 of file EamDbSettingsDialog.java.

DatabaseTestResult org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.testingStatus
private

Definition at line 64 of file EamDbSettingsDialog.java.

final TextBoxChangedListener org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.textBoxChangedListener
private

Definition at line 60 of file EamDbSettingsDialog.java.

final Collection<JTextField> org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.textBoxes
private

Definition at line 59 of file EamDbSettingsDialog.java.

javax.swing.JTextField org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.tfDatabasePath
private

Definition at line 911 of file EamDbSettingsDialog.java.


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

Copyright © 2012-2019 Basis Technology. Generated on: Tue Jan 7 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.