Autopsy
4.15.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Public Member Functions | |
CentralRepoDbManager () | |
void | clearStatus () |
boolean | createDb () throws CentralRepoException |
PostgresCentralRepoSettings | getDbSettingsMultiUser () |
PostgresCentralRepoSettings | getDbSettingsPostgres () |
SqliteCentralRepoSettings | getDbSettingsSqlite () |
CentralRepoDbChoice | getSelectedDbChoice () |
DatabaseTestResult | getStatus () |
void | saveNewCentralRepo () throws CentralRepoException |
void | setSelctedDbChoice (CentralRepoDbChoice newSelected) |
void | setupDefaultSqliteDb () throws CentralRepoException |
boolean | testDatabaseSettingsAreValid (String tbDbHostname, String tbDbPort, String tbDbUsername, String tfDatabasePath, String jpDbPassword) throws CentralRepoException, NumberFormatException |
DatabaseTestResult | testStatus () |
boolean | wasConfigurationChanged () |
Static Public Member Functions | |
static void | addPropertyChangeListener (PropertyChangeListener listener) |
static void | disableDueToFailure () |
static CentralRepoDbChoice | getSavedDbChoice () |
static boolean | isDisabledDueToFailure () |
static boolean | isPostgresMultiuserAllowed () |
static void | removePropertyChangeListener (PropertyChangeListener listener) |
static CentralRepoDbChoice | saveDbChoice (CentralRepoDbChoice choice) |
static CentralRepoDbChoice | saveDbChoice (CentralRepoDbChoice choice, boolean clearDisabledDueToError) |
static void | upgradeDatabase () throws CentralRepoException |
Private Member Functions | |
RdbmsCentralRepoFactory | getDbFactory () throws CentralRepoException |
CentralRepoDbConnectivityManager | getSelectedSettings () throws CentralRepoException |
Static Private Member Functions | |
static CentralRepoDbChoice | fromKey (String keyName) |
static CoordinationService.Lock | obtainCentralRepoLock (CentralRepository db) throws CentralRepoException |
static CentralRepository | obtainCentralRepository () throws CentralRepoException |
static void | onUpgradeError (String message, String desc, Exception innerException) throws CentralRepoException |
static void | setDisabledDueToFailure (boolean disabledDueToFailure) |
static void | updatedDbSchema (CentralRepository db, CoordinationService.Lock lock) throws CentralRepoException |
Private Attributes | |
boolean | configurationChanged = false |
final PostgresCentralRepoSettings | dbSettingsMultiUser |
final PostgresCentralRepoSettings | dbSettingsPostgres |
final SqliteCentralRepoSettings | dbSettingsSqlite |
CentralRepoDbChoice | selectedDbChoice |
DatabaseTestResult | testingStatus |
Static Private Attributes | |
static final String | CENTRAL_REPO_DB_NAME = "central_repository" |
static final String | CENTRAL_REPOSITORY_SETTINGS_KEY = "CentralRepository" |
static final String | DB_SELECTED_PLATFORM_KEY = "db.selectedPlatform" |
static final Object | dbChoiceLock = new Object() |
static final String | DISABLED_DUE_TO_FAILURE_KEY = "disabledDueToFailure" |
static final Object | disabledDueToFailureLock = new Object() |
static final Logger | logger = Logger.getLogger(CentralRepoDbManager.class.getName()) |
static final PropertyChangeSupport | propertyChangeSupport = new PropertyChangeSupport(CentralRepoDbManager.class) |
static volatile CentralRepoDbChoice | savedChoice = null |
This class contains business logic for saving and validating settings for central repository.
Definition at line 36 of file CentralRepoDbManager.java.
org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.CentralRepoDbManager | ( | ) |
Definition at line 324 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.PostgresSettingsLoader.CUSTOM_SETTINGS_LOADER, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSavedDbChoice(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresSettingsLoader.MULTIUSER_SETTINGS_LOADER.
|
static |
This method adds a property change listener. NOTE: currently only listening for changes in currently saved db choice and disabling due to failure.
listener | The listener for the event. |
Definition at line 172 of file CentralRepoDbManager.java.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.setupSettingsChangeListeners().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.clearStatus | ( | ) |
This method clears the current database testing status.
Definition at line 547 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.DatabaseTestResult.UNTESTED.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.TextBoxChangedListener.changedUpdate(), org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.customizeComponents(), org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.TextBoxChangedListener.insertUpdate(), and org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.TextBoxChangedListener.removeUpdate().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.createDb | ( | ) | throws CentralRepoException |
This method creates a central repo database if it does not already exist.
CentralRepoException |
Definition at line 438 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.createDatabase(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.deleteDatabase(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getDbFactory(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSelectedSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.RdbmsCentralRepoFactory.initializeDatabaseSchema(), org.sleuthkit.autopsy.centralrepository.datamodel.RdbmsCentralRepoFactory.insertDefaultDatabaseContent(), org.sleuthkit.autopsy.centralrepository.datamodel.DatabaseTestResult.TESTED_OK, and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.verifyDatabaseExists().
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.promptCreateDatabase(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setupDefaultSqliteDb().
|
static |
This method disables the central repository and indicates through a flag that this was due to a failure during database setup. This is used when re-enabling multi-user as a flag to determine whether or not CR should be re-enabled.
Definition at line 130 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setDisabledDueToFailure(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.setUseCentralRepo().
|
staticprivate |
Definition at line 185 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.DISABLED.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSavedDbChoice().
|
private |
Definition at line 414 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.DISABLED, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPlatforms.POSTGRESQL, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.POSTGRESQL_CUSTOM, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.POSTGRESQL_MULTIUSER, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPlatforms.SQLITE, and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.SQLITE.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.createDb().
PostgresCentralRepoSettings org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getDbSettingsMultiUser | ( | ) |
This method retrieves the current multi-user database settings.
Definition at line 336 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.dbSettingsMultiUser.
PostgresCentralRepoSettings org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getDbSettingsPostgres | ( | ) |
This method retrieves the current custom postgres database settings.
Definition at line 345 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.dbSettingsPostgres.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.updatePostgresFields().
SqliteCentralRepoSettings org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getDbSettingsSqlite | ( | ) |
This method returns the current SQLite database settings for central repository.
Definition at line 355 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.dbSettingsSqlite.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.bnDatabasePathFileOpenActionPerformed(), and org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.updateSqliteFields().
|
static |
This method loads the selectedPlatform boolean from the config file if it is set.
Definition at line 113 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.dbChoiceLock, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.fromKey(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSetting(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.savedChoice.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.CentralRepoDbManager(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.getLoaderFromSaved(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.isEnabled(), org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.load(), org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.onMultiUserChange(), org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.testCurrentConfiguration(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUpgrader14To15.upgradeSchema(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUpgrader13To14.upgradeSchema().
CentralRepoDbChoice org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSelectedDbChoice | ( | ) |
This method retrieves the currently selected database choice. NOTE: This choice may not align with the saved setting.
Definition at line 540 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.selectedDbChoice.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.changeDbSelection(), org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.customizeComponents(), org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.databaseFieldsArePopulated(), org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.onPromptStatusError(), and org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.setupDbChoice().
|
private |
Definition at line 397 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.dbSettingsMultiUser, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.dbSettingsPostgres, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.dbSettingsSqlite, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.DISABLED, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.POSTGRESQL_CUSTOM, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.POSTGRESQL_MULTIUSER, and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.SQLITE.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.createDb(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveNewCentralRepo(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testStatus().
DatabaseTestResult org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getStatus | ( | ) |
This method retrieves the current status. Note: this could be a dirty value if testing of the connection has not been performed.
Definition at line 530 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testingStatus.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.promptTestStatusWarnings().
|
static |
This method retrieves setting whether or not the repository has been disabled due to a database setup issue; this is used when re-enabling multi-user as a flag to determine whether or not CR should be re-enabled.
Definition at line 159 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.disabledDueToFailureLock, and org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSetting().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setDisabledDueToFailure().
|
static |
This method indicates whether or not 'PostgreSQL using multi-user settings' is a valid option.
Definition at line 97 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.core.UserPreferences.getIsMultiUserModeEnabled(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresSettingsLoader.MULTIUSER_SETTINGS_LOADER, org.sleuthkit.autopsy.centralrepository.datamodel.DatabaseTestResult.TESTED_OK, and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.testStatus().
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.isDbChoiceSelectable().
|
staticprivate |
This method obtains a central repository lock.
db | The database connection. |
CentralRepoException |
Definition at line 225 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.onUpgradeError().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.upgradeDatabase().
|
staticprivate |
This method obtains the database connectivity for central repository.
CentralRepoException |
Definition at line 202 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.onUpgradeError().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.upgradeDatabase().
|
staticprivate |
Definition at line 298 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.DISABLED, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveDbChoice(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.shutdownConnections().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.obtainCentralRepoLock(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.obtainCentralRepository(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.updatedDbSchema(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.upgradeDatabase().
|
static |
This method removes a propert change listener.
listener | The listener to remove. |
Definition at line 181 of file CentralRepoDbManager.java.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.setupSettingsChangeListeners().
|
static |
This saves the currently selected database choice and clears any disabledDueToFailure flag.
choice | The choice to save. |
Definition at line 60 of file CentralRepoDbManager.java.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.onMultiUserChange(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.onUpgradeError(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveNewCentralRepo().
|
static |
This saves the currently selected database choice.
choice | The choice to save. |
clearDisabledDueToError | Whether or not to clear the 'disabledDueToFailure' settings key. |
Definition at line 73 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.dbChoiceLock, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.DISABLED, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.getSettingKey(), org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSetting(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setDisabledDueToFailure().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveNewCentralRepo | ( | ) | throws CentralRepoException |
This method saves a new central repository based on current settings.
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 480 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.DISABLED, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSelectedSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveDbChoice(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.saveSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.setUseCentralRepo(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.shutdownConnections(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.updateSettings().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setupDefaultSqliteDb(), and org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.testStatusAndCreate().
|
staticprivate |
This method sets whether or not the repository has been disabled due to a database setup issue; This is used when re-enabling multi-user as a flag to determine whether or not CR should be re-enabled.
disabledDueToFailure | Whether or not the repository has been disabled due to a database setup issue. |
Definition at line 143 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.disabledDueToFailureLock, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.isDisabledDueToFailure(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSetting().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.disableDueToFailure(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveDbChoice().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setSelctedDbChoice | ( | CentralRepoDbChoice | newSelected | ) |
This method sets the currently selected database choice and sets the testing status to untested.
newSelected | The new database choice. |
Definition at line 557 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.DatabaseTestResult.UNTESTED.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.changeDbSelection().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setupDefaultSqliteDb | ( | ) | throws CentralRepoException |
This method sets up the sqlite database with default settings.
CentralRepoException | if unable to successfully set up database. |
Definition at line 364 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.createDb(), org.sleuthkit.autopsy.centralrepository.datamodel.DatabaseTestResult.DB_DOES_NOT_EXIST, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveNewCentralRepo(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteCentralRepoSettings.setupDefaultSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.setUseCentralRepo(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.SQLITE, org.sleuthkit.autopsy.centralrepository.datamodel.DatabaseTestResult.TESTED_OK, and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testStatus().
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.setupDefaultSqliteCentralRepo().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testDatabaseSettingsAreValid | ( | String | tbDbHostname, |
String | tbDbPort, | ||
String | tbDbUsername, | ||
String | tfDatabasePath, | ||
String | jpDbPassword | ||
) | throws CentralRepoException, NumberFormatException |
This method tests whether or not the settings have been filled in for the UI. NOTE: This does not check the connectivity status of these settings.
Definition at line 568 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteCentralRepoSettings.DEFAULT_DBNAME, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.POSTGRESQL_CUSTOM, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.POSTGRESQL_MULTIUSER, org.sleuthkit.autopsy.centralrepository.datamodel.SqliteCentralRepoSettings.setDbDirectory(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteCentralRepoSettings.setDbName(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setDbName(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setHost(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setPassword(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setPort(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.setUserName(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.SQLITE.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.databaseSettingsAreValid().
DatabaseTestResult org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testStatus | ( | ) |
This method tests the current database settings to see if a valid connection can be made.
Definition at line 594 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSelectedSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testingStatus, and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbConnectivityManager.testStatus().
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.promptCreateDatabase(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setupDefaultSqliteDb(), org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.testCurrentConfiguration(), and org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.testStatusAndCreate().
|
staticprivate |
This method updates the central repository schema if necessary.
db | The database connectivity object. |
lock | The acquired lock. |
CentralRepoException |
Definition at line 250 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.exceptions.AutopsyException.getUserMessage(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.onUpgradeError(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.upgradeSchema().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.upgradeDatabase().
|
static |
This method upgrades the current Central Reposity schema to the newest version. If the upgrade fails, the Central Repository will be disabled and the current settings will be cleared.
Definition at line 281 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.isEnabled(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.obtainCentralRepoLock(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.obtainCentralRepository(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.onUpgradeError(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.updatedDbSchema().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepositoryService.updateSchema().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.wasConfigurationChanged | ( | ) |
This method returns if changes to the central repository configuration were successfully applied.
Definition at line 393 of file CentralRepoDbManager.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.configurationChanged.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.wasConfigurationChanged().
|
staticprivate |
Definition at line 40 of file CentralRepoDbManager.java.
|
staticprivate |
Definition at line 41 of file CentralRepoDbManager.java.
|
private |
Definition at line 322 of file CentralRepoDbManager.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.wasConfigurationChanged().
|
staticprivate |
Definition at line 42 of file CentralRepoDbManager.java.
|
staticprivate |
Definition at line 49 of file CentralRepoDbManager.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSavedDbChoice(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveDbChoice().
|
private |
|
private |
|
private |
|
staticprivate |
Definition at line 43 of file CentralRepoDbManager.java.
|
staticprivate |
|
staticprivate |
Definition at line 38 of file CentralRepoDbManager.java.
|
staticprivate |
Definition at line 47 of file CentralRepoDbManager.java.
|
staticprivate |
Definition at line 45 of file CentralRepoDbManager.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSavedDbChoice().
|
private |
Definition at line 316 of file CentralRepoDbManager.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSelectedDbChoice().
|
private |
Definition at line 315 of file CentralRepoDbManager.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getStatus(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.testStatus().
Copyright © 2012-2020 Basis Technology. Generated on: Mon Jul 6 2020
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.