Autopsy
4.15.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 void | insertCorrelationType (Connection conn, CorrelationAttributeInstance.Type correlationType) throws SQLException |
static boolean | insertDefaultCorrelationTypes (Connection conn) |
static boolean | isDefaultOrg (CentralRepoOrganization org) |
static boolean | schemaVersionIsSet (Connection conn) |
static void | setUseCentralRepo (boolean centralRepoCheckBoxIsSelected) |
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(CentralRepoDbUtil.class.getName()) |
Definition at line 35 of file CentralRepoDbUtil.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 248 of file CentralRepoDbUtil.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSetting().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.isEnabled(), org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.load(), org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.onMultiUserChange(), and org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.testCurrentConfiguration().
|
static |
Close the in-use connection and return it to the pool.
conn | An open connection |
CentralRepoException |
Definition at line 83 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.createDatabase(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.deleteDatabase(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteCentralRepoSettings.verifyConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseExists(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseSchema(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteCentralRepoSettings.verifyDatabaseSchema().
|
static |
Close the prepared statement.
preparedStatement | The prepared statement to be closed. |
CentralRepoException |
Definition at line 324 of file CentralRepoDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closeStatement().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.insertDefaultCorrelationTypes().
|
static |
Close the resultSet.
resultSet |
CentralRepoException |
Definition at line 66 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.executeValidationQuery(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.schemaVersionIsSet(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseExists().
|
static |
Close the statement.
statement | The statement to be closed. |
CentralRepoException |
Definition at line 49 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseExists().
|
static |
Conver thte Type's DbTableName string to the *_instances table name.
type | Correlation Type |
Definition at line 299 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getCases(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getDataSources(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getPersonaFromInstanceTableQueryTemplate(), org.sleuthkit.autopsy.centralrepository.datamodel.RdbmsCentralRepoFactory.initializeDatabaseSchema(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUpgrader13To14.upgradeSchema().
|
static |
Convert the Type's DbTableName string to the reference_* table name.
type | Correlation Type |
Definition at line 310 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.RdbmsCentralRepoFactory.initializeDatabaseSchema().
|
static |
Use the current settings and the validation query to test the connection to the database.
Definition at line 271 of file CentralRepoDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closeResultSet().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyConnection(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteCentralRepoSettings.verifyConnection().
|
static |
Get the default organization name
Definition at line 194 of file CentralRepoDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.DEFAULT_ORG_NAME.
|
static |
Inserts the specified correlation type into the database.
conn | Open connection to use. |
correlationType | New correlation type to add. |
Definition at line 133 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUpgrader13To14.upgradeSchema().
|
static |
Insert the default correlation types into the database.
conn | Open connection to use. |
Definition at line 100 of file CentralRepoDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.getDefaultCorrelationTypes().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.RdbmsCentralRepoFactory.insertDefaultDatabaseContent().
|
static |
Check whether the given org is the default organization.
org |
Definition at line 205 of file CentralRepoDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoOrganization.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 167 of file CentralRepoDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closeResultSet().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseSchema(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteCentralRepoSettings.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 261 of file CentralRepoDbUtil.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSetting().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.disableDueToFailure(), org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.onMultiUserChange(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveNewCentralRepo(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setupDefaultSqliteDb(), and org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.store().
|
staticprivate |
Definition at line 38 of file CentralRepoDbUtil.java.
|
staticprivate |
Definition at line 39 of file CentralRepoDbUtil.java.
|
staticprivate |
Definition at line 40 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.getDefaultOrgName().
|
staticprivate |
Definition at line 37 of file CentralRepoDbUtil.java.
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.