Autopsy
4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
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< EamDbPlatformEnum > | cbDatabaseType |
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 |
Configuration dialog for Central Repository database settings.
Definition at line 53 of file EamDbSettingsDialog.java.
org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.EamDbSettingsDialog | ( | ) |
Creates new form EamDbSettingsDialog
Definition at line 76 of file EamDbSettingsDialog.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.DISABLED, org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.getSelectedPlatform(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.POSTGRESQL.
|
staticprivate |
Adds a change listener to a collection of text fields.
textFields | The text fields. |
listener | The change listener. |
Definition at line 676 of file EamDbSettingsDialog.java.
|
private |
Definition at line 573 of file EamDbSettingsDialog.java.
|
private |
Definition at line 351 of file EamDbSettingsDialog.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.getDbDirectory().
|
private |
We have to shutdown the previous platform's connection pool first; assuming it wasn't DISABLED. This will close any existing idle connections.
The next use of an EamDb API method will start a new connection pool using those new settings.
Definition at line 476 of file EamDbSettingsDialog.java.
References org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.DatabaseTestResult.CONNECTION_FAILED, org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.DatabaseTestResult.DB_DOES_NOT_EXIST, org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.saveSelectedPlatform(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.saveSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.saveSettings(), org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.DatabaseTestResult.SCHEMA_INVALID, org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.setSelectedPlatform(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.shutdownConnections(), org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.DatabaseTestResult.TESTEDOK, and org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.updateSettings().
|
private |
Definition at line 578 of file EamDbSettingsDialog.java.
|
private |
Tests whether or not all of the settings components are populated.
Definition at line 717 of file EamDbSettingsDialog.java.
|
staticprivate |
Sets the foreground color and transparency of a collection of text prompts.
textPrompts | The text prompts to configure. |
Definition at line 662 of file EamDbSettingsDialog.java.
|
private |
Definition at line 407 of file EamDbSettingsDialog.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.createDatabase(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.createDbDirectory(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.dbDirectoryExists(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.deleteDatabase(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.deleteDatabase(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.initializeDatabaseSchema(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.initializeDatabaseSchema(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.insertDefaultDatabaseContent(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.insertDefaultDatabaseContent(), org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.DatabaseTestResult.TESTEDOK, and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.verifyDatabaseExists().
|
private |
|
private |
Tests whether or not values have been entered in all of the database settings text fields.
Definition at line 689 of file EamDbSettingsDialog.java.
|
private |
Tests whether or not the database settings are valid.
Definition at line 727 of file EamDbSettingsDialog.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.setDbDirectory(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.setDbName(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.setDbName(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.setHost(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.setPassword(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.setPort(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.setUserName().
|
private |
Definition at line 345 of file EamDbSettingsDialog.java.
|
private |
Definition at line 587 of file EamDbSettingsDialog.java.
|
private |
Enable the "OK" button if the db test passed. Disabled defaults to db test passed.
Definition at line 799 of file EamDbSettingsDialog.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 122 of file EamDbSettingsDialog.java.
|
private |
Register for notifications when the text boxes get updated.
Definition at line 646 of file EamDbSettingsDialog.java.
|
private |
Add text prompts to all of the text fields.
Definition at line 612 of file EamDbSettingsDialog.java.
|
private |
Definition at line 367 of file EamDbSettingsDialog.java.
References org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.DatabaseTestResult.CONNECTION_FAILED, org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.DatabaseTestResult.DB_DOES_NOT_EXIST, org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.dbFileExists(), org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.DatabaseTestResult.SCHEMA_INVALID, org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.DatabaseTestResult.TESTEDOK, org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.verifyConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.verifyConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.verifyDatabaseExists(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.verifyDatabaseSchema(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.verifyDatabaseSchema().
|
private |
Definition at line 583 of file EamDbSettingsDialog.java.
|
private |
Definition at line 620 of file EamDbSettingsDialog.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.getHost(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.getPassword(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.getPort(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.getUserName().
|
private |
Update the fields for the SQLite platform depending on whether the SQLite radioButton is enabled.
enabled |
Definition at line 637 of file EamDbSettingsDialog.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.getDbDirectory().
|
private |
Validates that the form is filled out correctly for our usage.
Definition at line 788 of file EamDbSettingsDialog.java.
|
private |
Definition at line 850 of file EamDbSettingsDialog.java.
|
private |
Definition at line 851 of file EamDbSettingsDialog.java.
|
private |
Definition at line 852 of file EamDbSettingsDialog.java.
|
private |
Definition at line 853 of file EamDbSettingsDialog.java.
|
private |
Definition at line 854 of file EamDbSettingsDialog.java.
|
staticprivate |
Definition at line 56 of file EamDbSettingsDialog.java.
|
staticprivate |
Definition at line 57 of file EamDbSettingsDialog.java.
|
private |
Definition at line 66 of file EamDbSettingsDialog.java.
|
private |
Definition at line 62 of file EamDbSettingsDialog.java.
|
private |
Definition at line 63 of file EamDbSettingsDialog.java.
|
private |
Definition at line 855 of file EamDbSettingsDialog.java.
|
private |
Definition at line 856 of file EamDbSettingsDialog.java.
|
private |
Definition at line 857 of file EamDbSettingsDialog.java.
|
private |
Definition at line 858 of file EamDbSettingsDialog.java.
|
private |
Definition at line 859 of file EamDbSettingsDialog.java.
|
private |
Definition at line 860 of file EamDbSettingsDialog.java.
|
private |
Definition at line 861 of file EamDbSettingsDialog.java.
|
private |
Definition at line 862 of file EamDbSettingsDialog.java.
|
private |
Definition at line 863 of file EamDbSettingsDialog.java.
|
private |
Definition at line 864 of file EamDbSettingsDialog.java.
|
private |
Definition at line 865 of file EamDbSettingsDialog.java.
|
private |
Definition at line 866 of file EamDbSettingsDialog.java.
|
staticprivate |
Definition at line 55 of file EamDbSettingsDialog.java.
|
private |
Definition at line 867 of file EamDbSettingsDialog.java.
|
private |
Definition at line 868 of file EamDbSettingsDialog.java.
|
private |
Definition at line 65 of file EamDbSettingsDialog.java.
|
staticprivate |
Definition at line 58 of file EamDbSettingsDialog.java.
|
private |
Definition at line 869 of file EamDbSettingsDialog.java.
|
private |
Definition at line 870 of file EamDbSettingsDialog.java.
|
private |
Definition at line 871 of file EamDbSettingsDialog.java.
|
private |
Definition at line 64 of file EamDbSettingsDialog.java.
|
private |
Definition at line 60 of file EamDbSettingsDialog.java.
|
private |
Definition at line 59 of file EamDbSettingsDialog.java.
|
private |
Definition at line 872 of file EamDbSettingsDialog.java.
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.