19 package org.sleuthkit.autopsy.centralrepository.datamodel;
21 import java.sql.SQLException;
22 import java.util.List;
47 switch (selectedPlatform) {
49 return PostgresCentralRepo.getInstance();
52 return SqliteCentralRepo.getInstance();
87 void reset() throws CentralRepoException;
128 public String
getDbInfo(String name)
throws CentralRepoException;
138 public void updateDbInfo(String name, String value)
throws CentralRepoException;
197 List<CorrelationCase>
getCases() throws CentralRepoException;
427 CorrelationDataSource correlationDataSource, String value, String filePath) throws CentralRepoException, CorrelationAttributeNormalizationException;
444 CorrelationDataSource correlationDataSource,
long objectID) throws CentralRepoException, CorrelationAttributeNormalizationException;
515 public
boolean referenceSetIsValid(
int referenceSetID, String referenceSetName, String version) throws CentralRepoException;
529 public
boolean referenceSetExists(String referenceSetName, String version) throws CentralRepoException;
542 public
boolean isFileHashInReferenceSet(String hash,
int referenceSetID) throws CentralRepoException, CorrelationAttributeNormalizationException;
553 public
boolean isValueInReferenceSet(String value,
int referenceSetID,
int correlationTypeID) throws CentralRepoException, CorrelationAttributeNormalizationException;
CentralRepoPlatforms getDbPlatform()
void addAttributeInstanceBulk(CorrelationAttributeInstance eamArtifact)
void updateCase(CorrelationCase eamCase)
void newDbInfo(String name, String value)
CorrelationCase getCaseById(int caseId)
List< CorrelationCase > getCases()
boolean referenceSetExists(String referenceSetName, String version)
List< String > getListCasesHavingArtifactInstances(CorrelationAttributeInstance.Type aType, String value)
CentralRepoOrganization newOrganization(CentralRepoOrganization eamOrg)
Long getCountArtifactInstancesByTypeValue(CorrelationAttributeInstance.Type aType, String value)
void addReferenceInstance(CentralRepoFileInstance eamGlobalFileInstance, CorrelationAttributeInstance.Type correlationType)
List< CentralRepoFileSet > getAllReferenceSets(CorrelationAttributeInstance.Type correlationType)
CentralRepoOrganization getOrganizationByID(int orgID)
List< CorrelationAttributeInstance > getArtifactInstancesByTypeValue(CorrelationAttributeInstance.Type aType, String value)
void deleteOrganization(CentralRepoOrganization organizationToDelete)
Long getCountUniqueDataSources()
boolean isArtifactKnownBadByReference(CorrelationAttributeInstance.Type aType, String value)
CorrelationCase getCase(Case autopsyCase)
CorrelationCase getCaseByUUID(String caseUUID)
void setAttributeInstanceKnownStatus(CorrelationAttributeInstance eamArtifact, TskData.FileKnown knownStatus)
static CentralRepoDbChoice getSavedDbChoice()
void addDataSourceObjectId(int rowId, long dataSourceObjectId)
void bulkInsertReferenceTypeEntries(Set< CentralRepoFileInstance > globalInstances, CorrelationAttributeInstance.Type contentType)
void updateAttributeInstanceComment(CorrelationAttributeInstance eamArtifact)
List< String > getListCasesHavingArtifactInstancesKnownBad(CorrelationAttributeInstance.Type aType, String value)
List< CorrelationAttributeInstance.Type > getDefinedCorrelationTypes()
void addArtifactInstance(CorrelationAttributeInstance eamArtifact)
void deleteReferenceSet(int referenceSetID)
void bulkInsertCases(List< CorrelationCase > cases)
Long getCountArtifactInstancesKnownBad(CorrelationAttributeInstance.Type aType, String value)
List< CentralRepoFileInstance > getReferenceInstancesByTypeValue(CorrelationAttributeInstance.Type aType, String aValue)
void updateDataSourceSha1Hash(CorrelationDataSource eamDataSource)
void processInstanceTableWhere(CorrelationAttributeInstance.Type type, String whereClause, InstanceTableCallback instanceTableCallback)
int newReferenceSet(CentralRepoFileSet eamGlobalSet)
void processInstanceTable(CorrelationAttributeInstance.Type type, InstanceTableCallback instanceTableCallback)
boolean isFileHashInReferenceSet(String hash, int referenceSetID)
List< CorrelationAttributeInstance > getArtifactInstancesByTypeValues(CorrelationAttributeInstance.Type aType, List< String > values)
void shutdownConnections()
CorrelationCase newCase(CorrelationCase eamCase)
void updateOrganization(CentralRepoOrganization updatedOrganization)
int newCorrelationType(CorrelationAttributeInstance.Type newType)
boolean referenceSetIsValid(int referenceSetID, String referenceSetName, String version)
void updateDbInfo(String name, String value)
void updateDataSourceName(CorrelationDataSource eamDataSource, String newName)
CorrelationAttributeInstance getCorrelationAttributeInstance(CorrelationAttributeInstance.Type type, CorrelationCase correlationCase, CorrelationDataSource correlationDataSource, String value, String filePath)
void updateDataSourceMd5Hash(CorrelationDataSource eamDataSource)
void updateCorrelationType(CorrelationAttributeInstance.Type aType)
CorrelationDataSource newDataSource(CorrelationDataSource eamDataSource)
List< CorrelationAttributeInstance > getArtifactInstancesByTypeValuesAndCases(CorrelationAttributeInstance.Type aType, List< String > values, List< Integer > caseIds)
boolean isValueInReferenceSet(String value, int referenceSetID, int correlationTypeID)
void commitAttributeInstancesBulk()
List< CentralRepoOrganization > getOrganizations()
int getFrequencyPercentage(CorrelationAttributeInstance corAttr)
static boolean allowUseOfCentralRepository()
List< CorrelationAttributeInstance.Type > getEnabledCorrelationTypes()
CorrelationDataSource getDataSource(CorrelationCase correlationCase, Long caseDbDataSourceId)
CorrelationAttributeInstance.Type getCorrelationTypeById(int typeId)
List< CorrelationAttributeInstance.Type > getSupportedCorrelationTypes()
void processSelectClause(String selectClause, InstanceTableCallback instanceTableCallback)
Long getCountArtifactInstancesByCaseDataSource(CorrelationDataSource correlationDataSource)
CentralRepoOrganization getReferenceSetOrganization(int referenceSetID)
void updateDataSourceSha256Hash(CorrelationDataSource eamDataSource)
CentralRepoAccountType getAccountTypeByName(String accountTypeName)
static CentralRepository getInstance()
Long getCountUniqueCaseDataSourceTuplesHavingTypeValue(CorrelationAttributeInstance.Type aType, String value)
CoordinationService.Lock getExclusiveMultiUserDbLock()
String getDbInfo(String name)
CentralRepoFileSet getReferenceSetByID(int globalSetID)
CentralRepoAccount getOrCreateAccount(CentralRepoAccount.CentralRepoAccountType crAccountType, String accountUniqueID)
CorrelationDataSource getDataSourceById(CorrelationCase correlationCase, int dataSourceId)
static boolean isEnabled()
List< CorrelationDataSource > getDataSources()