Autopsy
4.9.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Static Public Member Functions | |
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 boolean | upgradeDatabase () |
static boolean | useCentralRepo () |
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 37 of file EamDbUtil.java.
|
static |
Close the in-use connection and return it to the pool.
conn | An open connection |
EamDbException |
Definition at line 85 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 350 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 68 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 51 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 325 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 336 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 297 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 224 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 102 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 235 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 147 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 287 of file EamDbUtil.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSetting().
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.store(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.upgradeDatabase().
|
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 175 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.EamDbUtil.setUseCentralRepo(), 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().
|
static |
If the Central Repos use has been enabled.
Definition at line 276 of file EamDbUtil.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSetting().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.fromTSKDataSource(), org.sleuthkit.autopsy.centralrepository.CentralRepoContextMenuActionsProvider.getActions(), org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.getCorrelationAttributeInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.isEnabled(), org.sleuthkit.autopsy.corecomponents.ViewPreferencesPanel.load(), org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.load(), and org.sleuthkit.autopsy.centralrepository.contentviewer.DataContentViewerOtherCases.rightClickPopupMenuPopupMenuWillBecomeVisible().
|
staticprivate |
Definition at line 40 of file EamDbUtil.java.
|
staticprivate |
Definition at line 41 of file EamDbUtil.java.
|
staticprivate |
Definition at line 42 of file EamDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.getDefaultOrgName().
|
staticprivate |
Definition at line 39 of file EamDbUtil.java.
Copyright © 2012-2018 Basis Technology. Generated on: Tue Dec 18 2018
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.