Autopsy
4.5.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Inherited by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb, and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.
Public Member Functions | |
void | addArtifact (CorrelationAttribute eamArtifact) throws EamDbException |
void | addReferenceInstance (EamGlobalFileInstance eamGlobalFileInstance, CorrelationAttribute.Type correlationType) throws EamDbException |
void | bulkInsertArtifacts () throws EamDbException |
void | bulkInsertCases (List< CorrelationCase > cases) throws EamDbException |
void | bulkInsertReferenceTypeEntries (Set< EamGlobalFileInstance > globalInstances, CorrelationAttribute.Type contentType) throws EamDbException |
void | deleteOrganization (EamOrganization organizationToDelete) throws EamDbException |
void | deleteReferenceSet (int referenceSetID) throws EamDbException |
List< EamGlobalSet > | getAllReferenceSets (CorrelationAttribute.Type correlationType) throws EamDbException |
List< CorrelationAttributeInstance > | getArtifactInstancesByPath (CorrelationAttribute.Type aType, String filePath) throws EamDbException |
List< CorrelationAttributeInstance > | getArtifactInstancesByTypeValue (CorrelationAttribute.Type aType, String value) throws EamDbException |
List< CorrelationAttributeInstance > | getArtifactInstancesKnownBad (CorrelationAttribute.Type aType, String value) throws EamDbException |
CorrelationCase | getCase (Case autopsyCase) throws EamDbException |
CorrelationCase | getCaseByUUID (String caseUUID) throws EamDbException |
List< CorrelationCase > | getCases () throws EamDbException |
CorrelationAttribute.Type | getCorrelationTypeById (int typeId) throws EamDbException |
Long | getCountArtifactInstancesByCaseDataSource (String caseUUID, String dataSourceID) throws EamDbException |
Long | getCountArtifactInstancesByTypeValue (CorrelationAttribute.Type aType, String value) throws EamDbException |
Long | getCountArtifactInstancesKnownBad (CorrelationAttribute.Type aType, String value) throws EamDbException |
Long | getCountUniqueCaseDataSourceTuplesHavingTypeValue (CorrelationAttribute.Type aType, String value) throws EamDbException |
Long | getCountUniqueDataSources () throws EamDbException |
CorrelationDataSource | getDataSource (CorrelationCase correlationCase, String dataSourceDeviceId) throws EamDbException |
List< CorrelationDataSource > | getDataSources () throws EamDbException |
String | getDbInfo (String name) throws EamDbException |
List< CorrelationAttribute.Type > | getDefinedCorrelationTypes () throws EamDbException |
List< CorrelationAttribute.Type > | getEnabledCorrelationTypes () throws EamDbException |
CoordinationService.Lock | getExclusiveMultiUserDbLock () throws EamDbException |
int | getFrequencyPercentage (CorrelationAttribute corAttr) throws EamDbException |
List< String > | getListCasesHavingArtifactInstancesKnownBad (CorrelationAttribute.Type aType, String value) throws EamDbException |
EamOrganization | getOrganizationByID (int orgID) throws EamDbException |
List< EamOrganization > | getOrganizations () throws EamDbException |
List< EamGlobalFileInstance > | getReferenceInstancesByTypeValue (CorrelationAttribute.Type aType, String aValue) throws EamDbException |
EamGlobalSet | getReferenceSetByID (int referenceSetID) throws EamDbException |
EamOrganization | getReferenceSetOrganization (int referenceSetID) throws EamDbException |
List< CorrelationAttribute.Type > | getSupportedCorrelationTypes () throws EamDbException |
boolean | isArtifactKnownBadByReference (CorrelationAttribute.Type aType, String value) throws EamDbException |
boolean | isFileHashInReferenceSet (String hash, int referenceSetID) throws EamDbException |
boolean | isValueInReferenceSet (String value, int referenceSetID, int correlationTypeID) throws EamDbException |
CorrelationCase | newCase (CorrelationCase eamCase) throws EamDbException |
CorrelationCase | newCase (Case autopsyCase) throws EamDbException |
int | newCorrelationType (CorrelationAttribute.Type newType) throws EamDbException |
void | newDataSource (CorrelationDataSource eamDataSource) throws EamDbException |
void | newDbInfo (String name, String value) throws EamDbException |
long | newOrganization (EamOrganization eamOrg) throws EamDbException |
int | newReferenceSet (EamGlobalSet eamGlobalSet) throws EamDbException |
void | prepareBulkArtifact (CorrelationAttribute eamArtifact) throws EamDbException |
boolean | referenceSetExists (String referenceSetName, String version) throws EamDbException |
boolean | referenceSetIsValid (int referenceSetID, String setName, String version) throws EamDbException |
void | reset () throws EamDbException |
void | saveSettings () |
void | setArtifactInstanceKnownStatus (CorrelationAttribute eamArtifact, TskData.FileKnown knownStatus) throws EamDbException |
void | shutdownConnections () throws EamDbException |
void | updateCase (CorrelationCase eamCase) throws EamDbException |
void | updateCorrelationType (CorrelationAttribute.Type aType) throws EamDbException |
void | updateDbInfo (String name, String value) throws EamDbException |
void | updateOrganization (EamOrganization updatedOrganization) throws EamDbException |
void | updateSettings () |
void | upgradeSchema () throws EamDbException, SQLException |
Static Public Member Functions | |
static EamDb | getInstance () throws EamDbException |
static boolean | isEnabled () |
Static Public Attributes | |
static final CaseDbSchemaVersionNumber | CURRENT_DB_SCHEMA_VERSION = new CaseDbSchemaVersionNumber(1, 1) |
static final int | SCHEMA_VERSION = 1 |
Protected Member Functions | |
AbstractSqlEamDb () throws EamDbException | |
abstract Connection | connect () throws EamDbException |
abstract String | getConflictClause () |
Protected Attributes | |
int | bulkArtifactsThreshold |
final List< CorrelationAttribute.Type > | DEFAULT_CORRELATION_TYPES |
Private Member Functions | |
void | deleteReferenceSetEntries (int referenceSetID) throws EamDbException |
void | deleteReferenceSetEntry (int referenceSetID) throws EamDbException |
CorrelationAttribute.Type | getCorrelationTypeFromResultSet (ResultSet resultSet) throws EamDbException, SQLException |
CorrelationAttributeInstance | getEamArtifactInstanceFromResultSet (ResultSet resultSet) throws SQLException, EamDbException |
CorrelationCase | getEamCaseFromResultSet (ResultSet resultSet) throws SQLException |
CorrelationDataSource | getEamDataSourceFromResultSet (ResultSet resultSet) throws SQLException |
EamGlobalFileInstance | getEamGlobalFileInstanceFromResultSet (ResultSet resultSet) throws SQLException, EamDbException |
EamGlobalSet | getEamGlobalSetFromResultSet (ResultSet resultSet) throws SQLException, EamDbException |
EamOrganization | getEamOrganizationFromResultSet (ResultSet resultSet) throws SQLException |
Private Attributes | |
final Map< String, Collection< CorrelationAttribute > > | bulkArtifacts |
int | bulkArtifactsCount |
Static Private Attributes | |
static final Logger | LOGGER = Logger.getLogger(AbstractSqlEamDb.class.getName()) |
SQLite manager implementation
Definition at line 50 of file AbstractSqlEamDb.java.
|
protected |
Connect to the DB and initialize it.
UnknownHostException,EamDbException |
Definition at line 65 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.DEFAULT_CORRELATION_TYPES, and org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttribute.getDefaultCorrelationTypes().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.addArtifact | ( | CorrelationAttribute | eamArtifact | ) | throws EamDbException |
Inserts new Artifact(s) into the database. Should add associated Case and Data Source first.
eamArtifact | The artifact to add |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 523 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.setArtifactInstanceKnownStatus().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.addReferenceInstance | ( | EamGlobalFileInstance | eamGlobalFileInstance, |
CorrelationAttribute.Type | correlationType | ||
) | throws EamDbException |
Add a new reference instance
eamGlobalFileInstance | The reference instance to add |
correlationType | Correlation Type that this Reference Instance is |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1858 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToReferenceTableName(), org.sleuthkit.autopsy.centralrepository.datamodel.EamGlobalFileInstance.getComment(), org.sleuthkit.autopsy.centralrepository.datamodel.EamGlobalFileInstance.getGlobalSetID(), org.sleuthkit.autopsy.centralrepository.datamodel.EamGlobalFileInstance.getKnownStatus(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamGlobalFileInstance.getMD5Hash().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertArtifacts | ( | ) | throws EamDbException |
Executes a bulk insert of the eamArtifacts added from the prepareBulkArtifact() method
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 920 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkArtifacts, org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getConflictClause(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDefinedCorrelationTypes().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.prepareBulkArtifact().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertCases | ( | List< CorrelationCase > | cases | ) | throws EamDbException |
Executes a bulk insert of the cases
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 997 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getConflictClause().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertReferenceTypeEntries | ( | Set< EamGlobalFileInstance > | globalInstances, |
CorrelationAttribute.Type | contentType | ||
) | throws EamDbException |
Insert the bulk collection of Reference Type Instances
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1928 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToReferenceTableName(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getConflictClause().
|
abstractprotected |
Setup and create a connection to the selected database implementation
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.addArtifact(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.addReferenceInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertArtifacts(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertCases(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertReferenceTypeEntries(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.deleteOrganization(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.deleteReferenceSetEntries(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.deleteReferenceSetEntry(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getAllReferenceSets(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getArtifactInstancesByPath(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getArtifactInstancesByTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getArtifactInstancesKnownBad(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCaseByUUID(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCases(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCorrelationTypeById(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountArtifactInstancesByCaseDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountArtifactInstancesByTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountArtifactInstancesKnownBad(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountUniqueCaseDataSourceTuplesHavingTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountUniqueDataSources(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDataSources(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDbInfo(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDefinedCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEnabledCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getListCasesHavingArtifactInstancesKnownBad(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getOrganizationByID(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getOrganizations(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceInstancesByTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceSetByID(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getSupportedCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.isArtifactKnownBadByReference(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.isValueInReferenceSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newCase(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newCorrelationType(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newDbInfo(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newOrganization(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newReferenceSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.referenceSetExists(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.setArtifactInstanceKnownStatus(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.updateCase(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.updateCorrelationType(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.updateDbInfo(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.updateOrganization(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.upgradeSchema().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.deleteOrganization | ( | EamOrganization | organizationToDelete | ) | throws EamDbException |
Delete an organization if it is not being used by any case.
organizationToDelete | the organization to be deleted |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1677 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamOrganization.getOrgID().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.deleteReferenceSet | ( | int | referenceSetID | ) | throws EamDbException |
Remove a reference set and all entries contained in it.
referenceSetID |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1340 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.deleteReferenceSetEntries(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.deleteReferenceSetEntry().
|
private |
Remove all entries for this reference set from the reference tables (Currently only removes entries from the reference_file table)
referenceSetID |
EamDbException |
Definition at line 1376 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToReferenceTableName(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttribute.FILES_TYPE_ID, and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCorrelationTypeById().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.deleteReferenceSet().
|
private |
Remove the entry for this set from the reference_sets table
referenceSetID |
EamDbException |
Definition at line 1351 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.deleteReferenceSet().
List<EamGlobalSet> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getAllReferenceSets | ( | CorrelationAttribute.Type | correlationType | ) | throws EamDbException |
Get all reference sets
correlationType | Type of sets to return |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1819 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamGlobalSetFromResultSet().
List<CorrelationAttributeInstance> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getArtifactInstancesByPath | ( | CorrelationAttribute.Type | aType, |
String | filePath | ||
) | throws EamDbException |
Retrieves eamArtifact instances from the database that are associated with the aType and filePath
aType | EamArtifact.Type to search for |
filePath | File path to search for |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 652 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamArtifactInstanceFromResultSet().
List<CorrelationAttributeInstance> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getArtifactInstancesByTypeValue | ( | CorrelationAttribute.Type | aType, |
String | value | ||
) | throws EamDbException |
Retrieves eamArtifact instances from the database that are associated with the eamArtifactType and eamArtifactValue of the given eamArtifact.
aType | The type of the artifact |
value | The correlation value |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 597 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamArtifactInstanceFromResultSet().
List<CorrelationAttributeInstance> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getArtifactInstancesKnownBad | ( | CorrelationAttribute.Type | aType, |
String | value | ||
) | throws EamDbException |
Gets list of matching eamArtifact instances that have knownStatus = "Bad".
aType | EamArtifact.Type to search for |
value | Value to search for |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1188 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamArtifactInstanceFromResultSet().
CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCase | ( | Case | autopsyCase | ) | throws EamDbException |
Retrieves Central Repo case based on an Autopsy Case
autopsyCase | Autopsy case to find corresponding CR case for |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 263 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCaseByUUID().
CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCaseByUUID | ( | String | caseUUID | ) | throws EamDbException |
Retrieves Case details based on Case UUID
caseUUID | unique identifier for a case |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 341 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamCaseFromResultSet().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCase(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newCase(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.setArtifactInstanceKnownStatus().
List<CorrelationCase> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCases | ( | ) | throws EamDbException |
Retrieves cases that are in DB.
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 380 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamCaseFromResultSet().
|
abstractprotected |
Get the conflict clause for bulk update statements
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertArtifacts(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertCases(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertReferenceTypeEntries().
CorrelationAttribute.Type org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCorrelationTypeById | ( | int | typeId | ) | throws EamDbException |
Get the EamArtifact.Type that has the given Type.Id.
typeId | Type.Id of Correlation Type to get |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 2223 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCorrelationTypeFromResultSet().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.deleteReferenceSetEntries(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.isValueInReferenceSet().
|
private |
Definition at line 2305 of file AbstractSqlEamDb.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCorrelationTypeById(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDefinedCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEnabledCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getSupportedCorrelationTypes(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newCorrelationType().
Long org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountArtifactInstancesByCaseDataSource | ( | String | caseUUID, |
String | dataSourceID | ||
) | throws EamDbException |
Retrieves number of eamArtifact instances in the database that are associated with the caseDisplayName and dataSource of the given eamArtifact instance.
caseUUID | Case ID to search for |
dataSourceID | Data source ID to search for |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 842 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDefinedCorrelationTypes().
Long org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountArtifactInstancesByTypeValue | ( | CorrelationAttribute.Type | aType, |
String | value | ||
) | throws EamDbException |
Retrieves number of artifact instances in the database that are associated with the ArtifactType and artifactValue of the given artifact.
aType | The type of the artifact |
value | The correlation value |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 709 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName().
Long org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountArtifactInstancesKnownBad | ( | CorrelationAttribute.Type | aType, |
String | value | ||
) | throws EamDbException |
Count matching eamArtifacts instances that have knownStatus = "Bad".
aType | EamArtifact.Type to search for |
value | Value to search for |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1242 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName().
Long org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountUniqueCaseDataSourceTuplesHavingTypeValue | ( | CorrelationAttribute.Type | aType, |
String | value | ||
) | throws EamDbException |
Retrieves number of unique caseDisplayName / dataSource tuples in the database that are associated with the artifactType and artifactValue of the given artifact.
aType | The type of the artifact |
value | The correlation value |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 768 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getFrequencyPercentage().
Long org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountUniqueDataSources | ( | ) | throws EamDbException |
Retrieves number of data sources in the database.
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 805 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getFrequencyPercentage().
CorrelationDataSource org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDataSource | ( | CorrelationCase | correlationCase, |
String | dataSourceDeviceId | ||
) | throws EamDbException |
Retrieves Data Source details based on data source device ID
correlationCase | the current CorrelationCase used for ensuring uniqueness of DataSource |
dataSourceDeviceId | the data source device ID number |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 450 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamDataSourceFromResultSet().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.setArtifactInstanceKnownStatus().
List<CorrelationDataSource> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDataSources | ( | ) | throws EamDbException |
Return a list of data sources in the DB
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 488 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamDataSourceFromResultSet().
String org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDbInfo | ( | String | name | ) | throws EamDbException |
Get the value for the given name from the name/value db_info table.
name | Name to search for |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 118 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
List<CorrelationAttribute.Type> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDefinedCorrelationTypes | ( | ) | throws EamDbException |
Get the list of EamArtifact.Type's that are defined in the DB and can be used to correlate artifacts.
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 2086 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCorrelationTypeFromResultSet().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertArtifacts(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountArtifactInstancesByCaseDataSource().
|
private |
Convert a ResultSet to a EamArtifactInstance object
resultSet | A resultSet with a set of values to create a EamArtifactInstance object. |
SQLException | when an expected column name is not in the resultSet |
Definition at line 2331 of file AbstractSqlEamDb.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getArtifactInstancesByPath(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getArtifactInstancesByTypeValue(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getArtifactInstancesKnownBad().
|
private |
Convert a ResultSet to a EamCase object
resultSet | A resultSet with a set of values to create a EamCase object. |
SQLException | when an expected column name is not in the resultSet |
Definition at line 2261 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase.setCaseNumber(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase.setCreationDate(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase.setExaminerEmail(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase.setExaminerName(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase.setExaminerPhone(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase.setNotes(), and org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase.setOrg().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCaseByUUID(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCases().
|
private |
Definition at line 2290 of file AbstractSqlEamDb.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDataSource(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDataSources().
|
private |
Definition at line 2381 of file AbstractSqlEamDb.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceInstancesByTypeValue().
|
private |
Definition at line 2362 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getCorrelationTypeById(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getInstance().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getAllReferenceSets(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceSetByID().
|
private |
Definition at line 2346 of file AbstractSqlEamDb.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getOrganizationByID(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getOrganizations().
List<CorrelationAttribute.Type> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEnabledCorrelationTypes | ( | ) | throws EamDbException |
Get the list of enabled EamArtifact.Type's that will be used to correlate artifacts.
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 2121 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCorrelationTypeFromResultSet().
|
inherited |
Gets an exclusive lock (if applicable). Will return the lock if successful, null if unsuccessful because locking isn't supported, and throw an exception if we should have been able to get the lock but failed (meaning the database is in use).
EamDbException | if the coordination service is running but we fail to get the lock |
Implemented in org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb, and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.upgradeDatabase().
int org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getFrequencyPercentage | ( | CorrelationAttribute | corAttr | ) | throws EamDbException |
Calculate the percentage of data sources that have this attribute value.
corAttr | Attribute type and value to get data about |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 747 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountUniqueCaseDataSourceTuplesHavingTypeValue(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCountUniqueDataSources().
|
staticinherited |
Get the instance
EamDbException |
Implemented in org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb, and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb.
Definition at line 45 of file EamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.DISABLED, org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb.getInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.getSelectedPlatform(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.useCentralRepo().
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.AddNewOrganizationDialog.bnOKActionPerformed(), org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.bnOkActionPerformed(), org.sleuthkit.autopsy.modules.hashdatabase.HashLookupSettingsPanel.cancel(), org.sleuthkit.autopsy.centralrepository.optionspanel.ManageOrganizationsDialog.deleteButtonActionPerformed(), org.sleuthkit.autopsy.modules.hashdatabase.ImportCentralRepoDbProgressDialog.CentralRepoImportWorker.deleteIncompleteSet(), org.sleuthkit.autopsy.modules.hashdatabase.ImportCentralRepoDbProgressDialog.CentralRepoImportWorker.doInBackground(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.getCentralRepoHashSetsFromDatabase(), org.sleuthkit.autopsy.centralrepository.contentviewer.DataContentViewerOtherCases.getCorrelatedInstances(), org.sleuthkit.autopsy.centralrepository.datamodel.EamArtifactUtil.getCorrelationAttributeFromBlackboardArtifact(), org.sleuthkit.autopsy.centralrepository.datamodel.EamArtifactUtil.getCorrelationAttributeFromContent(), org.sleuthkit.autopsy.centralrepository.contentviewer.DataContentViewerOtherCases.getCorrelationAttributesFromNode(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamGlobalSetFromResultSet(), org.sleuthkit.autopsy.centralrepository.optionspanel.ManageOrganizationsDialog.ManageOrganizationsDialog(), org.sleuthkit.autopsy.centralrepository.eventlisteners.IngestEventsListener.IngestModuleEventListener.propertyChange(), org.sleuthkit.autopsy.centralrepository.eventlisteners.NewArtifactsRunner.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.TagDefinitionChangeTask.run(), org.sleuthkit.autopsy.centralrepository.contentviewer.DataContentViewerOtherCases.showCaseDetails(), org.sleuthkit.autopsy.centralrepository.contentviewer.DataContentViewerOtherCases.showCommonalityDetails(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.upgradeDatabase().
List<String> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getListCasesHavingArtifactInstancesKnownBad | ( | CorrelationAttribute.Type | aType, |
String | value | ||
) | throws EamDbException |
Gets list of distinct case display names, where each case has 1+ Artifact Instance matching eamArtifact with knownStatus = "Bad".
aType | EamArtifact.Type to search for |
value | Value to search for |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1290 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName().
EamOrganization org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getOrganizationByID | ( | int | orgID | ) | throws EamDbException |
Get an organization having the given ID
orgID | The id to look up |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1600 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamOrganizationFromResultSet().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceSetOrganization().
List<EamOrganization> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getOrganizations | ( | ) | throws EamDbException |
Get all organizations
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1565 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamOrganizationFromResultSet().
List<EamGlobalFileInstance> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceInstancesByTypeValue | ( | CorrelationAttribute.Type | aType, |
String | aValue | ||
) | throws EamDbException |
Get all reference entries having a given correlation type and value
aType | Type to use for matching |
aValue | Value to use for matching |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1986 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToReferenceTableName(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamGlobalFileInstanceFromResultSet().
EamGlobalSet org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceSetByID | ( | int | referenceSetID | ) | throws EamDbException |
Get a reference set by ID
referenceSetID | The ID to look up |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1783 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getEamGlobalSetFromResultSet().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceSetOrganization(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.referenceSetIsValid().
EamOrganization org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceSetOrganization | ( | int | referenceSetID | ) | throws EamDbException |
Get the organization associated with the given reference set.
referenceSetID | ID of the reference set |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1631 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getOrganizationByID(), org.sleuthkit.autopsy.centralrepository.datamodel.EamGlobalSet.getOrgID(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceSetByID().
List<CorrelationAttribute.Type> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getSupportedCorrelationTypes | ( | ) | throws EamDbException |
Get the list of supported EamArtifact.Type's that can be used to correlate artifacts.
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 2156 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCorrelationTypeFromResultSet().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.isArtifactKnownBadByReference | ( | CorrelationAttribute.Type | aType, |
String | value | ||
) | throws EamDbException |
Is the artifact known as bad according to the reference entries?
aType | EamArtifact.Type to search for |
value | Value to search for |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1479 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToReferenceTableName(), and org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttribute.FILES_TYPE_ID.
|
staticinherited |
Is the database enabled?
Definition at line 98 of file EamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.DISABLED, org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.getSelectedPlatform(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.useCentralRepo().
Referenced by org.sleuthkit.autopsy.modules.hashdatabase.HashLookupSettingsPanel.cancel(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.configureSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.connect(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.getCentralRepoHashSetsFromDatabase(), org.sleuthkit.autopsy.centralrepository.contentviewer.DataContentViewerOtherCases.isSupported(), org.sleuthkit.autopsy.centralrepository.eventlisteners.NewArtifactsRunner.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.ContentTagTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.BlackboardTagTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.IngestEventsListener.DataAddedTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.TagDefinitionChangeTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.DataSourceAddedTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.CurrentCaseTask.run(), org.sleuthkit.autopsy.centralrepository.contentviewer.DataContentViewerOtherCases.setNode(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.updateHashSetsFromCentralRepository(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.upgradeDatabase().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.isFileHashInReferenceSet | ( | String | hash, |
int | referenceSetID | ||
) | throws EamDbException |
Check if the given file hash is in this reference set. Only searches the reference_files table.
hash | |
referenceSetID |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1428 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttribute.FILES_TYPE_ID, and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.isValueInReferenceSet().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.isValueInReferenceSet | ( | String | value, |
int | referenceSetID, | ||
int | correlationTypeID | ||
) | throws EamDbException |
Check if the given value is in a specific reference set
value | |
referenceSetID | |
correlationTypeID |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1441 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToReferenceTableName(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCorrelationTypeById().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.isFileHashInReferenceSet().
CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newCase | ( | CorrelationCase | eamCase | ) | throws EamDbException |
Creates new Case in the database
Expects the Organization for this case to already exist in the database.
eamCase | The case to add |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 179 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCaseByUUID().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newCase(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.setArtifactInstanceKnownStatus().
CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newCase | ( | Case | autopsyCase | ) | throws EamDbException |
Creates new Case in the database from the given case
autopsyCase | The case to add |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 243 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamOrganization.getDefault(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newCase().
int org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newCorrelationType | ( | CorrelationAttribute.Type | newType | ) | throws EamDbException |
Add a new EamArtifact.Type to the db.
newType | New type to add. |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 2026 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCorrelationTypeFromResultSet().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newDataSource | ( | CorrelationDataSource | eamDataSource | ) | throws EamDbException |
Creates new Data Source in the database
eamDataSource | the data source to add |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 417 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.setArtifactInstanceKnownStatus().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newDbInfo | ( | String | name, |
String | value | ||
) | throws EamDbException |
Add a new name/value pair in the db_info table.
name | Key to set |
value | Value to set |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 89 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
long org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newOrganization | ( | EamOrganization | eamOrg | ) | throws EamDbException |
Add a new organization
eamOrg | The organization to add |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1524 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
int org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newReferenceSet | ( | EamGlobalSet | eamGlobalSet | ) | throws EamDbException |
Add a new Global Set
eamGlobalSet | The global set to add |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1720 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.prepareBulkArtifact | ( | CorrelationAttribute | eamArtifact | ) | throws EamDbException |
Adds an eamArtifact to an internal list to be later added to DB. Artifact can have 1 or more Artifact Instances. Insert will be triggered by a threshold or a call to bulkInsertArtifacts().
eamArtifact | The artifact to add |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 892 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkArtifacts, and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertArtifacts().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.referenceSetExists | ( | String | referenceSetName, |
String | version | ||
) | throws EamDbException |
Check whether a reference set with the given name/version is in the central repo. Used to check for name collisions when creating reference sets.
referenceSetName | |
version |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1898 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.referenceSetIsValid | ( | int | referenceSetID, |
String | setName, | ||
String | version | ||
) | throws EamDbException |
Check whether a reference set with the given parameters exists in the central repository. Used to check whether reference sets saved in the settings are still present.
referenceSetID | |
setName | |
version |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1409 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceSetByID(), org.sleuthkit.autopsy.centralrepository.datamodel.EamGlobalSet.getSetName(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamGlobalSet.getVersion().
|
inherited |
Reset the database (testing method)
Implemented in org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb, and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb.
|
inherited |
Save settings
Implemented in org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb, and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb.
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.setArtifactInstanceKnownStatus | ( | CorrelationAttribute | eamArtifact, |
TskData.FileKnown | knownStatus | ||
) | throws EamDbException |
Sets an eamArtifact instance to the given knownStatus. knownStatus should be BAD if the file has been tagged with a notable tag and UNKNOWN otherwise. If eamArtifact exists, it is updated. If eamArtifact does not exist it is added with the given status.
eamArtifact | Artifact containing exactly one (1) ArtifactInstance. |
knownStatus | The status to change the artifact to. Should never be KNOWN |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1084 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.addArtifact(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.correlationTypeToInstanceTableName(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCaseByUUID(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase.getCaseUUID(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.getComment(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.getCorrelationCase(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.getCorrelationDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttribute.getCorrelationType(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttribute.getCorrelationValue(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.getDeviceID(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance.getFilePath(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttribute.getInstances(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newCase(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.newDataSource().
|
inherited |
Shutdown the connection pool.
This closes the connection pool including all idle database connections. It will not close active/in-use connections. Thus, it is vital that there are no in-use connections when you call this method.
EamDbException | if there is a problem closing the connection pool. |
Implemented in org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb, and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.bnOkActionPerformed(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.upgradeDatabase().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.updateCase | ( | CorrelationCase | eamCase | ) | throws EamDbException |
Updates an existing Case in the database
eamCase | The case to update |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 273 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.updateCorrelationType | ( | CorrelationAttribute.Type | aType | ) | throws EamDbException |
Update a EamArtifact.Type.
aType | EamArtifact.Type to update. |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 2189 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.updateDbInfo | ( | String | name, |
String | value | ||
) | throws EamDbException |
Update the value for a name in the name/value db_info table.
name | Name to find |
value | Value to assign to name. |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 152 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.updateOrganization | ( | EamOrganization | updatedOrganization | ) | throws EamDbException |
Update an existing organization.
updatedOrganization | the values the Organization with the same ID will be updated to in the database. |
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 1649 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closePreparedStatement(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect().
|
inherited |
Update settings
When using updateSettings, if any database settings have changed, you should call shutdownConnections() before using any API methods. That will ensure that any old connections are closed and all new connections will be made using the new settings.
Implemented in org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb, and org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb.
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.EamDbSettingsDialog.bnOkActionPerformed().
void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.upgradeSchema | ( | ) | throws EamDbException, SQLException |
Upgrade the schema of the database (if needed)
EamDbException |
Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.
Definition at line 2403 of file AbstractSqlEamDb.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeConnection(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.closeResultSet(), org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.connect(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.CURRENT_DB_SCHEMA_VERSION.
|
private |
Definition at line 58 of file AbstractSqlEamDb.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkInsertArtifacts(), and org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.prepareBulkArtifact().
|
private |
Definition at line 56 of file AbstractSqlEamDb.java.
|
protected |
Definition at line 57 of file AbstractSqlEamDb.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb.PostgresEamDb(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.SqliteEamDb(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb.updateSettings(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateSettings().
|
staticinherited |
Definition at line 36 of file EamDb.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.upgradeSchema().
|
protected |
Definition at line 54 of file AbstractSqlEamDb.java.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.AbstractSqlEamDb(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDb.reset(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.reset().
|
staticprivate |
Definition at line 52 of file AbstractSqlEamDb.java.
|
staticinherited |
Definition at line 34 of file EamDb.java.
Copyright © 2012-2016 Basis Technology. Generated on: Tue Feb 20 2018
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.