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

Inherits org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.

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< EamGlobalSetgetAllReferenceSets (CorrelationAttribute.Type correlationType) throws EamDbException
 
List< CorrelationAttributeInstancegetArtifactInstancesByPath (CorrelationAttribute.Type aType, String filePath) throws EamDbException
 
List< CorrelationAttributeInstancegetArtifactInstancesByTypeValue (CorrelationAttribute.Type aType, String value) throws EamDbException
 
List< CorrelationAttributeInstancegetArtifactInstancesKnownBad (CorrelationAttribute.Type aType, String value) throws EamDbException
 
CorrelationCase getCase (Case autopsyCase) throws EamDbException
 
CorrelationCase getCaseByUUID (String caseUUID) throws EamDbException
 
List< CorrelationCasegetCases () 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< CorrelationDataSourcegetDataSources () 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< EamOrganizationgetOrganizations () throws EamDbException
 
List< EamGlobalFileInstancegetReferenceInstancesByTypeValue (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 (Case autopsyCase) throws EamDbException
 
CorrelationCase newCase (CorrelationCase eamCase) 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 synchronized SqliteEamDb 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

Connection connect () throws EamDbException
 
String getConflictClause ()
 

Protected Attributes

int bulkArtifactsThreshold
 
final List< CorrelationAttribute.Type > DEFAULT_CORRELATION_TYPES
 

Private Member Functions

 SqliteEamDb () throws EamDbException
 
void acquireExclusiveLock ()
 
void acquireSharedLock ()
 
void releaseExclusiveLock ()
 
void releaseSharedLock ()
 
void setupConnectionPool () throws EamDbException
 

Private Attributes

BasicDataSource connectionPool = null
 
final SqliteEamDbSettings dbSettings
 
final ReentrantReadWriteLock rwLock = new ReentrantReadWriteLock(true)
 

Static Private Attributes

static SqliteEamDb instance
 
static final Logger LOGGER = Logger.getLogger(SqliteEamDb.class.getName())
 

Detailed Description

Sqlite implementation of the Central Repository database. All methods in AbstractSqlEamDb that read or write to the database should be overriden here and use appropriate locking.

Definition at line 41 of file SqliteEamDb.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.SqliteEamDb ( ) throws EamDbException
private

Member Function Documentation

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireExclusiveLock ( )
private

Acquire the lock that provides exclusive access to the case database. Call this method in a try block with a call to the lock release method in an associated finally block.

Definition at line 1031 of file SqliteEamDb.java.

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.addArtifact(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.addReferenceInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.bulkInsertArtifacts(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.bulkInsertCases(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.bulkInsertReferenceTypeEntries(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.deleteOrganization(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.deleteReferenceSet(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newCase(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newCorrelationType(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newDbInfo(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newOrganization(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newReferenceSet(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.reset(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.setArtifactInstanceKnownStatus(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateCase(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateCorrelationType(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateDbInfo(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateOrganization(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.upgradeSchema().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock ( )
private

Acquire the lock that provides shared access to the case database. Call this method in a try block with a call to the lock release method in an associated finally block.

Definition at line 1049 of file SqliteEamDb.java.

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getAllReferenceSets(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getArtifactInstancesByPath(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getArtifactInstancesByTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getArtifactInstancesKnownBad(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCaseByUUID(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCases(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCorrelationTypeById(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountArtifactInstancesByCaseDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountArtifactInstancesByTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountArtifactInstancesKnownBad(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountUniqueCaseDataSourceTuplesHavingTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountUniqueDataSources(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDataSources(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDbInfo(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDefinedCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getEnabledCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getFrequencyPercentage(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getListCasesHavingArtifactInstancesKnownBad(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getOrganizationByID(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getOrganizations(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getReferenceInstancesByTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getReferenceSetByID(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getSupportedCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.isArtifactKnownBadByReference(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.isValueInReferenceSet(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.referenceSetExists().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.addArtifact ( CorrelationAttribute  eamArtifact) throws EamDbException

Inserts new Artifact(s) into the database. Should add associated Case and Data Source first.

Parameters
eamArtifactThe artifact to add

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 394 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireExclusiveLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseExclusiveLock().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.addReferenceInstance ( EamGlobalFileInstance  eamGlobalFileInstance,
CorrelationAttribute.Type  correlationType 
) throws EamDbException

Add a new reference instance

Parameters
eamGlobalFileInstanceThe reference instance to add
correlationTypeCorrelation Type that this Reference Instance is
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 842 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireExclusiveLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseExclusiveLock().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.bulkInsertArtifacts ( ) throws EamDbException
void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.bulkInsertCases ( List< CorrelationCase cases) throws EamDbException
void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.bulkInsertReferenceTypeEntries ( Set< EamGlobalFileInstance globalInstances,
CorrelationAttribute.Type  contentType 
) throws EamDbException
Connection org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.connect ( ) throws EamDbException
protected

Lazily setup Singleton connection on first request.

Returns
A connection from the connection pool.
Exceptions
EamDbException

Definition at line 180 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.isEnabled(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.setupConnectionPool().

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.reset().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.deleteOrganization ( EamOrganization  organizationToDelete) throws EamDbException

Delete an organization if it is not being used by any case.

Parameters
organizationToDeletethe organization to be deleted
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 767 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireExclusiveLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseExclusiveLock().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.deleteReferenceSet ( int  referenceSetID) throws EamDbException
List<EamGlobalSet> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getAllReferenceSets ( CorrelationAttribute.Type  correlationType) throws EamDbException

Get all reference sets

Parameters
correlationTypeType of sets to return
Returns
List of all reference sets in the central repository
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 823 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

List<CorrelationAttributeInstance> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getArtifactInstancesByPath ( CorrelationAttribute.Type  aType,
String  filePath 
) throws EamDbException

Retrieves eamArtifact instances from the database that are associated with the aType and filePath

Parameters
aTypeEamArtifact.Type to search for
filePathFile path to search for
Returns
List of 0 or more EamArtifactInstances
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 434 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

List<CorrelationAttributeInstance> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.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.

Parameters
aTypeThe type of the artifact
valueThe correlation value
Returns
List of artifact instances for a given type/value

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 413 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

List<CorrelationAttributeInstance> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getArtifactInstancesKnownBad ( CorrelationAttribute.Type  aType,
String  value 
) throws EamDbException

Gets list of matching eamArtifact instances that have knownStatus = "Bad".

Parameters
aTypeEamArtifact.Type to search for
valueValue to search for
Returns
List with 0 or more matching eamArtifact instances.

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 584 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getCase ( Case  autopsyCase) throws EamDbException
inherited

Retrieves Central Repo case based on an Autopsy Case

Parameters
autopsyCaseAutopsy case to find corresponding CR case for
Returns
CR Case
Exceptions
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.SqliteEamDb.getCaseByUUID ( String  caseUUID) throws EamDbException

Retrieves Case details based on Case UUID

Parameters
caseUUIDunique identifier for a case
Returns
The retrieved case

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 315 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

List<CorrelationCase> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCases ( ) throws EamDbException
String org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getConflictClause ( )
protected

Definition at line 199 of file SqliteEamDb.java.

CorrelationAttribute.Type org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCorrelationTypeById ( int  typeId) throws EamDbException

Get the EamArtifact.Type that has the given Type.Id.

Parameters
typeIdType.Id of Correlation Type to get
Returns
EamArtifact.Type or null if it doesn't exist.
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 989 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

Long org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.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.

Parameters
caseUUIDCase ID to search for
dataSourceIDData source ID to search for
Returns
Number of artifact instances having caseDisplayName and dataSource

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 518 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

Long org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.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.

Parameters
aTypeThe correlation type
valueThe value to search for
Returns
Number of artifact instances having ArtifactType and ArtifactValue.
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 455 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

Long org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountArtifactInstancesKnownBad ( CorrelationAttribute.Type  aType,
String  value 
) throws EamDbException

Count matching eamArtifacts instances that have knownStatus = "Bad".

Parameters
aTypeEamArtifact.Type to search for
valueValue to search for
Returns
Number of matching eamArtifacts

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 602 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

Long org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.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.

Parameters
aTypeThe correlation type
valueThe value to search for
Returns
Number of unique tuples
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 486 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

Long org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountUniqueDataSources ( ) throws EamDbException
CorrelationDataSource org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDataSource ( CorrelationCase  correlationCase,
String  dataSourceDeviceId 
) throws EamDbException

Retrieves Data Source details based on data source device ID

Parameters
correlationCasethe current CorrelationCase used for ensuring uniqueness of DataSource
dataSourceDeviceIdthe data source device ID number
Returns
The data source

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 363 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

List<CorrelationDataSource> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDataSources ( ) throws EamDbException
String org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDbInfo ( String  name) throws EamDbException

Get the value for the given name from the name/value db_info table.

Parameters
nameName to search for
Returns
value associated with name.
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 233 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

List<CorrelationAttribute.Type> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDefinedCorrelationTypes ( ) throws EamDbException

Get the list of EamArtifact.Type's that will be used to correlate artifacts.

Returns
List of EamArtifact.Type's. If none are defined in the database, the default list will be returned.
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 915 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

List<CorrelationAttribute.Type> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getEnabledCorrelationTypes ( ) throws EamDbException

Get the list of enabled EamArtifact.Type's that will be used to correlate artifacts.

Returns
List of enabled EamArtifact.Type's. If none are defined in the database, the default list will be returned.
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 934 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

CoordinationService.Lock org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getExclusiveMultiUserDbLock ( ) throws EamDbException

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

Returns
the lock, or null if locking is not supported
Exceptions
EamDbExceptionif the coordination service is running but we fail to get the lock

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 1021 of file SqliteEamDb.java.

int org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getFrequencyPercentage ( CorrelationAttribute  corAttr) throws EamDbException

Calculate the percentage of data sources that have this attribute value.

Parameters
corAttrAttribute type and value to get data about
Returns
Int between 0 and 100

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 465 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

static synchronized SqliteEamDb org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getInstance ( ) throws EamDbException
static

Get the singleton instance of SqliteEamDb

Returns
the singleton instance of SqliteEamDb
Exceptions
EamDbExceptionif one or more default correlation type(s) have an invalid db table name.

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 62 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.instance, and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.SqliteEamDb().

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.getInstance().

List<String> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.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".

Parameters
aTypeEamArtifact.Type to search for
valueValue to search for
Returns
List of cases containing this artifact with instances marked as bad
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 624 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

EamOrganization org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getOrganizationByID ( int  orgID) throws EamDbException

Get an organization having the given ID

Parameters
orgIDThe id to look up
Returns
The organization with the given ID
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 747 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

List<EamOrganization> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getOrganizations ( ) throws EamDbException
List<EamGlobalFileInstance> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getReferenceInstancesByTypeValue ( CorrelationAttribute.Type  aType,
String  aValue 
) throws EamDbException

Get all reference entries having a given correlation type and value

Parameters
aTypeType to use for matching
aValueValue to use for matching
Returns
List of all global file instances with a type and value
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 877 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

EamGlobalSet org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getReferenceSetByID ( int  referenceSetID) throws EamDbException

Get a reference set by ID

Parameters
referenceSetIDThe ID to look up
Returns
The global set associated with the ID
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 804 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

EamOrganization org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.getReferenceSetOrganization ( int  referenceSetID) throws EamDbException
inherited
List<CorrelationAttribute.Type> org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getSupportedCorrelationTypes ( ) throws EamDbException

Get the list of supported EamArtifact.Type's that can be used to correlate artifacts.

Returns
List of supported EamArtifact.Type's. If none are defined in the database, the default list will be returned.
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 953 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

boolean org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.isArtifactKnownBadByReference ( CorrelationAttribute.Type  aType,
String  value 
) throws EamDbException

Is the artifact known as bad according to the reference entries?

Parameters
aTypeEamArtifact.Type to search for
valueValue to search for
Returns
Global known status of the artifact

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 692 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

static boolean org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.isEnabled ( )
staticinherited

Is the database enabled?

Returns
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
inherited

Check if the given file hash is in this reference set. Only searches the reference_files table.

Parameters
hash
referenceSetID
Returns
true if the hash is found in the reference set
Exceptions
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.SqliteEamDb.isValueInReferenceSet ( String  value,
int  referenceSetID,
int  correlationTypeID 
) throws EamDbException

Check if the given hash is in a specific reference set

Parameters
value
referenceSetID
correlationTypeID
Returns
true if the hash is found in the reference set

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 656 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newCase ( Case  autopsyCase) throws EamDbException
CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newCase ( CorrelationCase  eamCase) throws EamDbException

Creates new Case in the database

Expects the Organization for this case to already exist in the database.

Parameters
eamCaseThe case to add

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 283 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireExclusiveLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseExclusiveLock().

int org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newCorrelationType ( CorrelationAttribute.Type  newType) throws EamDbException

Add a new EamArtifact.Type to the db.

Parameters
newTypeNew type to add.
Returns
ID of this new Correlation Type
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 896 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireExclusiveLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseExclusiveLock().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newDataSource ( CorrelationDataSource  eamDataSource) throws EamDbException
void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newDbInfo ( String  name,
String  value 
) throws EamDbException
long org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newOrganization ( EamOrganization  eamOrg) throws EamDbException

Add a new organization

Returns
the Organization ID of the newly created organization.
Parameters
eamOrgThe organization to add
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 711 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireExclusiveLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseExclusiveLock().

int org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newReferenceSet ( EamGlobalSet  eamGlobalSet) throws EamDbException

Add a new Global Set

Parameters
eamGlobalSetThe global set to add
Returns
The ID of the new global set
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 785 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireExclusiveLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseExclusiveLock().

void org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.prepareBulkArtifact ( CorrelationAttribute  eamArtifact) throws EamDbException
inherited

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

Parameters
eamArtifactThe 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.SqliteEamDb.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.

Parameters
referenceSetName
version
Returns
true if a matching set is found
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 674 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireSharedLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock().

boolean org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.referenceSetIsValid ( int  referenceSetID,
String  setName,
String  version 
) throws EamDbException
inherited

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.

Parameters
referenceSetID
setName
version
Returns
true if a matching entry exists in the central repository
Exceptions
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().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseExclusiveLock ( )
private

Release the lock that provides exclusive access to the database. This method should always be called in the finally block of a try block in which the lock was acquired.

Definition at line 1040 of file SqliteEamDb.java.

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.addArtifact(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.addReferenceInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.bulkInsertArtifacts(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.bulkInsertCases(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.bulkInsertReferenceTypeEntries(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.deleteOrganization(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.deleteReferenceSet(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newCase(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newCorrelationType(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newDbInfo(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newOrganization(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.newReferenceSet(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.reset(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.setArtifactInstanceKnownStatus(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateCase(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateCorrelationType(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateDbInfo(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateOrganization(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.upgradeSchema().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseSharedLock ( )
private

Release the lock that provides shared access to the database. This method should always be called in the finally block of a try block in which the lock was acquired.

Definition at line 1058 of file SqliteEamDb.java.

Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getAllReferenceSets(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getArtifactInstancesByPath(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getArtifactInstancesByTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getArtifactInstancesKnownBad(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCaseByUUID(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCases(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCorrelationTypeById(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountArtifactInstancesByCaseDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountArtifactInstancesByTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountArtifactInstancesKnownBad(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountUniqueCaseDataSourceTuplesHavingTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getCountUniqueDataSources(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDataSources(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDbInfo(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getDefinedCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getEnabledCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getFrequencyPercentage(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getListCasesHavingArtifactInstancesKnownBad(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getOrganizationByID(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getOrganizations(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getReferenceInstancesByTypeValue(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getReferenceSetByID(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.getSupportedCorrelationTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.isArtifactKnownBadByReference(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.isValueInReferenceSet(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.referenceSetExists().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.reset ( ) throws EamDbException
void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.saveSettings ( )
void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.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.

Parameters
eamArtifactArtifact containing exactly one (1) ArtifactInstance.
knownStatusThe status to change the artifact to. Should never be KNOWN

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 565 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireExclusiveLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseExclusiveLock().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.setupConnectionPool ( ) throws EamDbException
private
void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.shutdownConnections ( ) throws EamDbException

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.

Exceptions
EamDbExceptionif there is a problem closing the connection pool.

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 81 of file SqliteEamDb.java.

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateCase ( CorrelationCase  eamCase) throws EamDbException
void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateCorrelationType ( CorrelationAttribute.Type  aType) throws EamDbException
void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateDbInfo ( String  name,
String  value 
) throws EamDbException

Update the value for a name in the name/value db_info table.

Parameters
nameName to find
valueValue to assign to name.
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 251 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireExclusiveLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseExclusiveLock().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateOrganization ( EamOrganization  updatedOrganization) throws EamDbException

Update an existing organization.

Parameters
updatedOrganizationthe values the Organization with the same ID will be updated to in the database.
Exceptions
EamDbException

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 757 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.acquireExclusiveLock(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.releaseExclusiveLock().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.updateSettings ( )

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.

Implements org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.

Definition at line 95 of file SqliteEamDb.java.

References org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkArtifactsThreshold, org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.getBulkThreshold(), and org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.loadSettings().

void org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.upgradeSchema ( ) throws EamDbException, SQLException

Member Data Documentation

int org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.bulkArtifactsThreshold
protectedinherited
BasicDataSource org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.connectionPool = null
private

Definition at line 47 of file SqliteEamDb.java.

final CaseDbSchemaVersionNumber org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.CURRENT_DB_SCHEMA_VERSION = new CaseDbSchemaVersionNumber(1, 1)
staticinherited
final SqliteEamDbSettings org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.dbSettings
private

Definition at line 49 of file SqliteEamDb.java.

final List<CorrelationAttribute.Type> org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb.DEFAULT_CORRELATION_TYPES
protectedinherited
SqliteEamDb org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.instance
staticprivate
final Logger org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.LOGGER = Logger.getLogger(SqliteEamDb.class.getName())
staticprivate

Definition at line 43 of file SqliteEamDb.java.

final ReentrantReadWriteLock org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDb.rwLock = new ReentrantReadWriteLock(true)
private

Definition at line 53 of file SqliteEamDb.java.

final int org.sleuthkit.autopsy.centralrepository.datamodel.EamDb.SCHEMA_VERSION = 1
staticinherited

Definition at line 34 of file EamDb.java.


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

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.