Autopsy
4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Static Public Member Functions | |
static boolean | allowUseOfCentralRepository () |
static void | closeConnection (Connection conn) |
static void | closePreparedStatement (PreparedStatement preparedStatement) |
static void | closeResultSet (ResultSet resultSet) |
static void | closeStatement (Statement statement) |
static String | correlationTypeToInstanceTableName (CorrelationAttributeInstance.Type type) |
static String | correlationTypeToReferenceTableName (CorrelationAttributeInstance.Type type) |
static boolean | executeValidationQuery (Connection conn, String validationQuery) |
static String | getDefaultOrgName () |
static boolean | insertDefaultCorrelationTypes (Connection conn) |
static boolean | isDefaultOrg (EamOrganization org) |
static boolean | schemaVersionIsSet (Connection conn) |
static void | setUseCentralRepo (boolean centralRepoCheckBoxIsSelected) |
static void | upgradeDatabase () throws EamDbException |
Static Private Attributes | |
static final String | CENTRAL_REPO_NAME = "CentralRepository" |
static final String | CENTRAL_REPO_USE_KEY = "db.useCentralRepo" |
static final String | DEFAULT_ORG_NAME = "Not Specified" |
static final Logger | LOGGER = Logger.getLogger(EamDbUtil.class.getName()) |
Definition at line 38 of file EamDbUtil.java.
|
static |
If the option to use a central repository has been selected, does not indicate the central repository is configured for use simply that the checkbox allowing configuration is checked on the options panel.
Definition at line 302 of file EamDbUtil.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSetting().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.isEnabled(), and org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.load().
|
static |
Close the in-use connection and return it to the pool.
conn | An open connection |
EamDbException |
Definition at line 86 of file EamDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.createDatabase(), 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.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().
|
static |
Close the prepared statement.
preparedStatement | The prepared statement to be closed. |
EamDbException |
Definition at line 378 of file EamDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeStatement().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.insertDefaultCorrelationTypes().
|
static |
Close the resultSet.
resultSet |
EamDbException |
Definition at line 69 of file EamDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.executeValidationQuery(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.schemaVersionIsSet(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.verifyDatabaseExists().
|
static |
Close the statement.
statement | The statement to be closed. |
EamDbException |
Definition at line 52 of file EamDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.verifyDatabaseExists().
|
static |
Conver thte Type's DbTableName string to the *_instances table name.
type | Correlation Type |
Definition at line 353 of file EamDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.initializeDatabaseSchema(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.initializeDatabaseSchema().
|
static |
Convert the Type's DbTableName string to the reference_* table name.
type | Correlation Type |
Definition at line 364 of file EamDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.initializeDatabaseSchema(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.initializeDatabaseSchema().
|
static |
Use the current settings and the validation query to test the connection to the database.
Definition at line 325 of file EamDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.verifyConnection(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.verifyConnection().
|
static |
Get the default organization name
Definition at line 248 of file EamDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.DEFAULT_ORG_NAME.
|
static |
Insert the default correlation types into the database.
conn | Open connection to use. |
Definition at line 103 of file EamDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.getDefaultCorrelationTypes().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.insertDefaultDatabaseContent(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.insertDefaultDatabaseContent().
|
static |
Check whether the given org is the default organization.
org |
Definition at line 259 of file EamDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamOrganization.getName().
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.ManageOrganizationsDialog.setButtonsEnabled().
|
static |
Query to see if the SCHEMA_VERSION is set in the db.
Definition at line 148 of file EamDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.verifyDatabaseSchema(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.verifyDatabaseSchema().
|
static |
Saves the setting for whether the Central Repo should be able to be configured.
centralRepoCheckBoxIsSelected | - true if the central repo can be used |
Definition at line 315 of file EamDbUtil.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSetting().
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.store().
|
static |
Upgrade 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 178 of file EamDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.DISABLED, org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getExclusiveMultiUserDbLock(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.isEnabled(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.saveSelectedPlatform(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.setSelectedPlatform(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.shutdownConnections(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.upgradeSchema().
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.restored(), and org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.updateDatabase().
|
staticprivate |
Definition at line 41 of file EamDbUtil.java.
|
staticprivate |
Definition at line 42 of file EamDbUtil.java.
|
staticprivate |
Definition at line 43 of file EamDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.getDefaultOrgName().
|
staticprivate |
Definition at line 40 of file EamDbUtil.java.
Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.