Autopsy  4.7.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
 
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 lbFullDbPath
 
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 676 of file EamDbSettingsDialog.java.

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

Definition at line 573 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 578 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 717 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 662 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 689 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 345 of file EamDbSettingsDialog.java.

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

Definition at line 587 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 799 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 646 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 612 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 583 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 637 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 788 of file EamDbSettingsDialog.java.

Member Data Documentation

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

Definition at line 850 of file EamDbSettingsDialog.java.

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

Definition at line 851 of file EamDbSettingsDialog.java.

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

Definition at line 852 of file EamDbSettingsDialog.java.

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

Definition at line 853 of file EamDbSettingsDialog.java.

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

Definition at line 854 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.

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 855 of file EamDbSettingsDialog.java.

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

Definition at line 856 of file EamDbSettingsDialog.java.

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

Definition at line 857 of file EamDbSettingsDialog.java.

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

Definition at line 858 of file EamDbSettingsDialog.java.

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

Definition at line 859 of file EamDbSettingsDialog.java.

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

Definition at line 860 of file EamDbSettingsDialog.java.

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

Definition at line 861 of file EamDbSettingsDialog.java.

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

Definition at line 862 of file EamDbSettingsDialog.java.

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

Definition at line 863 of file EamDbSettingsDialog.java.

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

Definition at line 864 of file EamDbSettingsDialog.java.

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

Definition at line 865 of file EamDbSettingsDialog.java.

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

Definition at line 866 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 867 of file EamDbSettingsDialog.java.

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

Definition at line 868 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 869 of file EamDbSettingsDialog.java.

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

Definition at line 870 of file EamDbSettingsDialog.java.

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

Definition at line 871 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 872 of file EamDbSettingsDialog.java.


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

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.