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);
52 switch (selectedPlatform) {
54 return PostgresEamDb.getInstance();
57 return SqliteEamDb.getInstance();
92 void reset() throws EamDbException;
123 public String
getDbInfo(String name)
throws EamDbException;
133 public void updateDbInfo(String name, String value)
throws EamDbException;
183 List<CorrelationCase>
getCases() throws EamDbException;
418 public
boolean referenceSetIsValid(
int referenceSetID, String referenceSetName, String version) throws EamDbException;
432 public
boolean referenceSetExists(String referenceSetName, String version) throws EamDbException;
456 public
boolean isValueInReferenceSet(String value,
int referenceSetID,
int correlationTypeID) throws EamDbException;
665 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)
void updateAttributeInstanceComment(CorrelationAttribute eamArtifact)
int newReferenceSet(EamGlobalSet eamGlobalSet)
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)
CorrelationAttribute getCorrelationAttribute(CorrelationAttribute.Type type, CorrelationCase correlationCase, CorrelationDataSource correlationDataSource, String value, String filePath)
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)
EamOrganization newOrganization(EamOrganization eamOrg)
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)
List< CorrelationAttribute.Type > getDefinedCorrelationTypes()
void newDbInfo(String name, String value)
EamOrganization getOrganizationByID(int orgID)
void newDataSource(CorrelationDataSource eamDataSource)
void processInstanceTable(CorrelationAttribute.Type type, InstanceTableCallback instanceTableCallback)
Long getCountArtifactInstancesByTypeValue(CorrelationAttribute.Type aType, String value)
List< CorrelationCase > getCases()