19 package org.sleuthkit.autopsy.centralrepository.datamodel;
21 import java.sql.SQLException;
22 import java.util.List;
27 import org.
sleuthkit.datamodel.CaseDbSchemaVersionNumber;
36 =
new CaseDbSchemaVersionNumber(1, 1);
51 switch (selectedPlatform) {
91 void reset() throws EamDbException;
122 public String
getDbInfo(String name)
throws EamDbException;
132 public void updateDbInfo(String name, String value)
throws EamDbException;
180 List<CorrelationCase>
getCases() throws EamDbException;
375 public
boolean referenceSetIsValid(
int referenceSetID, String referenceSetName, String version) throws EamDbException;
387 public
boolean referenceSetExists(String referenceSetName, String version) throws EamDbException;
408 public
boolean isValueInReferenceSet(String value,
int referenceSetID,
int correlationTypeID) throws EamDbException;
614 public
void upgradeSchema() throws EamDbException, SQLException;
CorrelationDataSource getDataSource(CorrelationCase correlationCase, String dataSourceDeviceId)
int getFrequencyPercentage(CorrelationAttribute corAttr)
boolean isArtifactKnownBadByReference(CorrelationAttribute.Type aType, String value)
CorrelationAttribute.Type getCorrelationTypeById(int typeId)
List< CorrelationDataSource > getDataSources()
CorrelationCase getCaseByUUID(String caseUUID)
List< CorrelationAttributeInstance > getArtifactInstancesKnownBad(CorrelationAttribute.Type aType, String value)
List< CorrelationAttribute.Type > getSupportedCorrelationTypes()
void addReferenceInstance(EamGlobalFileInstance eamGlobalFileInstance, CorrelationAttribute.Type correlationType)
String getDbInfo(String name)
void shutdownConnections()
CoordinationService.Lock getExclusiveMultiUserDbLock()
void deleteReferenceSet(int referenceSetID)
int newReferenceSet(EamGlobalSet eamGlobalSet)
long newOrganization(EamOrganization eamOrg)
static synchronized PostgresEamDb getInstance()
void prepareBulkArtifact(CorrelationAttribute eamArtifact)
CorrelationCase newCase(CorrelationCase eamCase)
boolean isFileHashInReferenceSet(String hash, int referenceSetID)
static boolean useCentralRepo()
boolean isValueInReferenceSet(String value, int referenceSetID, int correlationTypeID)
List< CorrelationAttribute.Type > getEnabledCorrelationTypes()
Long getCountUniqueDataSources()
void bulkInsertArtifacts()
List< String > getListCasesHavingArtifactInstancesKnownBad(CorrelationAttribute.Type aType, String value)
void updateOrganization(EamOrganization updatedOrganization)
void addArtifact(CorrelationAttribute eamArtifact)
List< CorrelationAttributeInstance > getArtifactInstancesByTypeValue(CorrelationAttribute.Type aType, String value)
void updateCase(CorrelationCase eamCase)
Long getCountArtifactInstancesKnownBad(CorrelationAttribute.Type aType, String value)
void setArtifactInstanceKnownStatus(CorrelationAttribute eamArtifact, TskData.FileKnown knownStatus)
List< EamOrganization > getOrganizations()
static EamDb getInstance()
void updateDbInfo(String name, String value)
List< EamGlobalSet > getAllReferenceSets(CorrelationAttribute.Type correlationType)
int newCorrelationType(CorrelationAttribute.Type newType)
Long getCountArtifactInstancesByCaseDataSource(String caseUUID, String dataSourceID)
boolean referenceSetExists(String referenceSetName, String version)
static boolean isEnabled()
EamGlobalSet getReferenceSetByID(int globalSetID)
List< EamGlobalFileInstance > getReferenceInstancesByTypeValue(CorrelationAttribute.Type aType, String aValue)
static final CaseDbSchemaVersionNumber CURRENT_DB_SCHEMA_VERSION
void updateCorrelationType(CorrelationAttribute.Type aType)
Long getCountUniqueCaseDataSourceTuplesHavingTypeValue(CorrelationAttribute.Type aType, String value)
CorrelationCase getCase(Case autopsyCase)
void bulkInsertCases(List< CorrelationCase > cases)
boolean referenceSetIsValid(int referenceSetID, String referenceSetName, String version)
List< CorrelationAttributeInstance > getArtifactInstancesByPath(CorrelationAttribute.Type aType, String filePath)
void deleteOrganization(EamOrganization organizationToDelete)
static final int SCHEMA_VERSION
void bulkInsertReferenceTypeEntries(Set< EamGlobalFileInstance > globalInstances, CorrelationAttribute.Type contentType)
EamOrganization getReferenceSetOrganization(int referenceSetID)
static synchronized SqliteEamDb getInstance()
List< CorrelationAttribute.Type > getDefinedCorrelationTypes()
void newDbInfo(String name, String value)
EamOrganization getOrganizationByID(int orgID)
void newDataSource(CorrelationDataSource eamDataSource)
Long getCountArtifactInstancesByTypeValue(CorrelationAttribute.Type aType, String value)
List< CorrelationCase > getCases()