Autopsy
4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Classes | |
class | CommentExistsCallback |
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 boolean | commentExistsOnAttributes (List< CorrelationAttributeInstance > attributes) throws CentralRepoException |
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 = CentralRepoSettings.getInstance().getModuleSettingsKey() |
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 40 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 252 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 88 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 273 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 341 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 71 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 54 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresCentralRepoSettings.verifyDatabaseExists().
|
static |
Check if any of the specified attribute values in the CR have a non-empty and non-null comment.
attributes | The list of attributes which should have their type value matches checked for the presence of a comment. |
CentralRepoException | Thrown when there is an issue either getting the CentralRepository instance or executing a query. |
Definition at line 373 of file CentralRepoDbUtil.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.correlationTypeToInstanceTableName(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.executeQuery(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getInstance(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.isEnabled().
Referenced by org.sleuthkit.autopsy.datamodel.AbstractAbstractFileNode< SpecialDirectory >.getCommentProperty(), org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.getCommentProperty(), and org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.getCommentProperty().
|
static |
Conver thte Type's DbTableName string to the *_instances table name.
type | Correlation Type |
Definition at line 316 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.commentExistsOnAttributes(), 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 327 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 288 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 198 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 138 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 105 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 209 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 172 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 265 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 43 of file CentralRepoDbUtil.java.
|
staticprivate |
Definition at line 44 of file CentralRepoDbUtil.java.
|
staticprivate |
Definition at line 45 of file CentralRepoDbUtil.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.getDefaultOrgName().
|
staticprivate |
Definition at line 42 of file CentralRepoDbUtil.java.
Copyright © 2012-2022 Basis Technology. Generated on: Mon Mar 20 2023
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.