Autopsy  4.9.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil Class Reference

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())
 

Detailed Description

Definition at line 37 of file EamDbUtil.java.

Member Function Documentation

static void org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection ( Connection  conn)
static
static void org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement ( PreparedStatement  preparedStatement)
static

Close the prepared statement.

Parameters
preparedStatementThe prepared statement to be closed.
Deprecated:
Use closeStatement() instead.
Exceptions
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 void org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet ( ResultSet  resultSet)
static
static void org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeStatement ( Statement  statement)
static
static String org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName ( CorrelationAttributeInstance.Type  type)
static

Conver thte Type's DbTableName string to the *_instances table name.

Parameters
typeCorrelation Type
Returns
Instance table name for this 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 String org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToReferenceTableName ( CorrelationAttributeInstance.Type  type)
static

Convert the Type's DbTableName string to the reference_* table name.

Parameters
typeCorrelation Type
Returns
Reference table name for this 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 boolean org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.executeValidationQuery ( Connection  conn,
String  validationQuery 
)
static

Use the current settings and the validation query to test the connection to the database.

Returns
true if successfull query execution, else false.

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 String org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.getDefaultOrgName ( )
static

Get the default organization name

Returns
the default org name

Definition at line 224 of file EamDbUtil.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.DEFAULT_ORG_NAME.

static boolean org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.insertDefaultCorrelationTypes ( Connection  conn)
static
static boolean org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.isDefaultOrg ( EamOrganization  org)
static

Check whether the given org is the default organization.

Parameters
org
Returns
true if it is the default org, false otherwise

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 boolean org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.schemaVersionIsSet ( Connection  conn)
static
static void org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.setUseCentralRepo ( boolean  centralRepoCheckBoxIsSelected)
static

Saves the setting for whether the Central Repo should be able to be configured.

Parameters
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 boolean org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.upgradeDatabase ( )
static
static boolean org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.useCentralRepo ( )
static

Member Data Documentation

final String org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.CENTRAL_REPO_NAME = "CentralRepository"
staticprivate

Definition at line 40 of file EamDbUtil.java.

final String org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.CENTRAL_REPO_USE_KEY = "db.useCentralRepo"
staticprivate

Definition at line 41 of file EamDbUtil.java.

final String org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.DEFAULT_ORG_NAME = "Not Specified"
staticprivate
final Logger org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.LOGGER = Logger.getLogger(EamDbUtil.class.getName())
staticprivate

Definition at line 39 of file EamDbUtil.java.


The documentation for this class was generated from the following file:

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.