Autopsy
4.19.1
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 Member Functions | |
static void | closePersonasTopComponent () |
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 38 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 251 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 86 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().
|
staticprivate |
Closes Personas top component if it exists.
Definition at line 272 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.setUseCentralRepo().
|
static |
Close the prepared statement.
preparedStatement | The prepared statement to be closed. |
CentralRepoException |
Definition at line 340 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 69 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 52 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 315 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.discovery.search.DiscoveryAttributes.computeFrequency(), 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(), org.sleuthkit.autopsy.discovery.search.DiscoveryAttributes.queryDomainFrequency(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUpgrader15To16.upgradeSchema(), 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 326 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 287 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 197 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 136 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUpgrader15To16.upgradeSchema(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUpgrader13To14.upgradeSchema().
|
static |
Insert the default correlation types into the database.
conn | Open connection to use. |
Definition at line 103 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 208 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 170 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 264 of file CentralRepoDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closePersonasTopComponent(), and 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(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setupPostgresDb(), and org.sleuthkit.autopsy.centralrepository.optionspanel.GlobalSettingsPanel.store().
|
staticprivate |
Definition at line 41 of file CentralRepoDbUtil.java.
|
staticprivate |
Definition at line 42 of file CentralRepoDbUtil.java.
|
staticprivate |
Definition at line 43 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.getDefaultOrgName().
|
staticprivate |
Definition at line 40 of file CentralRepoDbUtil.java.
Copyright © 2012-2021 Basis Technology. Generated on: Thu Sep 30 2021
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.