19 package org.sleuthkit.autopsy.centralrepository.datamodel;
21 import java.sql.SQLException;
22 import java.util.List;
46 switch (selectedPlatform) {
48 return PostgresEamDb.getInstance();
51 return SqliteEamDb.getInstance();
86 void reset() throws EamDbException;
127 public String
getDbInfo(String name)
throws EamDbException;
137 public void updateDbInfo(String name, String value)
throws EamDbException;
196 List<CorrelationCase>
getCases() throws EamDbException;
426 CorrelationDataSource correlationDataSource, String value, String filePath) throws EamDbException, CorrelationAttributeNormalizationException;
443 CorrelationDataSource correlationDataSource,
long objectID) throws EamDbException, CorrelationAttributeNormalizationException;
500 public
boolean referenceSetIsValid(
int referenceSetID, String referenceSetName, String version) throws EamDbException;
514 public
boolean referenceSetExists(String referenceSetName, String version) throws EamDbException;
527 public
boolean isFileHashInReferenceSet(String hash,
int referenceSetID) throws EamDbException, CorrelationAttributeNormalizationException;
538 public
boolean isValueInReferenceSet(String value,
int referenceSetID,
int correlationTypeID) throws EamDbException, CorrelationAttributeNormalizationException;
List< CorrelationDataSource > getDataSources()
List< CorrelationAttributeInstance > getArtifactInstancesByTypeValuesAndCases(CorrelationAttributeInstance.Type aType, List< String > values, List< Integer > caseIds)
CorrelationCase getCaseByUUID(String caseUUID)
int getFrequencyPercentage(CorrelationAttributeInstance corAttr)
CorrelationDataSource newDataSource(CorrelationDataSource eamDataSource)
String getDbInfo(String name)
void shutdownConnections()
CoordinationService.Lock getExclusiveMultiUserDbLock()
void deleteReferenceSet(int referenceSetID)
Long getCountArtifactInstancesKnownBad(CorrelationAttributeInstance.Type aType, String value)
List< String > getListCasesHavingArtifactInstancesKnownBad(CorrelationAttributeInstance.Type aType, String value)
void updateDataSourceSha1Hash(CorrelationDataSource eamDataSource)
Long getCountArtifactInstancesByTypeValue(CorrelationAttributeInstance.Type aType, String value)
int newReferenceSet(EamGlobalSet eamGlobalSet)
void processInstanceTable(CorrelationAttributeInstance.Type type, InstanceTableCallback instanceTableCallback)
CorrelationCase newCase(CorrelationCase eamCase)
boolean isFileHashInReferenceSet(String hash, int referenceSetID)
boolean isValueInReferenceSet(String value, int referenceSetID, int correlationTypeID)
void updateDataSourceSha256Hash(CorrelationDataSource eamDataSource)
Long getCountUniqueDataSources()
void bulkInsertReferenceTypeEntries(Set< EamGlobalFileInstance > globalInstances, CorrelationAttributeInstance.Type contentType)
List< CorrelationAttributeInstance > getArtifactInstancesByTypeValue(CorrelationAttributeInstance.Type aType, String value)
void updateOrganization(EamOrganization updatedOrganization)
boolean isArtifactKnownBadByReference(CorrelationAttributeInstance.Type aType, String value)
List< CorrelationAttributeInstance.Type > getDefinedCorrelationTypes()
void addReferenceInstance(EamGlobalFileInstance eamGlobalFileInstance, CorrelationAttributeInstance.Type correlationType)
CorrelationDataSource getDataSourceById(CorrelationCase correlationCase, int dataSourceId)
void addAttributeInstanceBulk(CorrelationAttributeInstance eamArtifact)
void updateCase(CorrelationCase eamCase)
Long getCountUniqueCaseDataSourceTuplesHavingTypeValue(CorrelationAttributeInstance.Type aType, String value)
CorrelationCase getCaseById(int caseId)
List< EamOrganization > getOrganizations()
static EamDb getInstance()
void updateDbInfo(String name, String value)
CorrelationDataSource getDataSource(CorrelationCase correlationCase, Long caseDbDataSourceId)
void setAttributeInstanceKnownStatus(CorrelationAttributeInstance eamArtifact, TskData.FileKnown knownStatus)
CorrelationAttributeInstance getCorrelationAttributeInstance(CorrelationAttributeInstance.Type type, CorrelationCase correlationCase, CorrelationDataSource correlationDataSource, String value, String filePath)
void commitAttributeInstancesBulk()
CorrelationAttributeInstance.Type getCorrelationTypeById(int typeId)
List< EamGlobalSet > getAllReferenceSets(CorrelationAttributeInstance.Type correlationType)
void addDataSourceObjectId(int rowId, long dataSourceObjectId)
Long getCountArtifactInstancesByCaseDataSource(CorrelationDataSource correlationDataSource)
boolean referenceSetExists(String referenceSetName, String version)
static boolean isEnabled()
List< EamGlobalFileInstance > getReferenceInstancesByTypeValue(CorrelationAttributeInstance.Type aType, String aValue)
EamGlobalSet getReferenceSetByID(int globalSetID)
EamOrganization newOrganization(EamOrganization eamOrg)
CorrelationCase getCase(Case autopsyCase)
void bulkInsertCases(List< CorrelationCase > cases)
List< CorrelationAttributeInstance.Type > getSupportedCorrelationTypes()
boolean referenceSetIsValid(int referenceSetID, String referenceSetName, String version)
void deleteOrganization(EamOrganization organizationToDelete)
List< CorrelationAttributeInstance > getArtifactInstancesByTypeValues(CorrelationAttributeInstance.Type aType, List< String > values)
int newCorrelationType(CorrelationAttributeInstance.Type newType)
List< CorrelationAttributeInstance.Type > getEnabledCorrelationTypes()
EamOrganization getReferenceSetOrganization(int referenceSetID)
void newDbInfo(String name, String value)
void processInstanceTableWhere(CorrelationAttributeInstance.Type type, String whereClause, InstanceTableCallback instanceTableCallback)
EamOrganization getOrganizationByID(int orgID)
void updateDataSourceName(CorrelationDataSource eamDataSource, String newName)
void addArtifactInstance(CorrelationAttributeInstance eamArtifact)
void updateAttributeInstanceComment(CorrelationAttributeInstance eamArtifact)
void updateDataSourceMd5Hash(CorrelationDataSource eamDataSource)
static boolean allowUseOfCentralRepository()
void updateCorrelationType(CorrelationAttributeInstance.Type aType)
List< CorrelationCase > getCases()