Autopsy
4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherited by org.sleuthkit.autopsy.centralrepository.datamodel.RdbmsCentralRepo.
Public Member Functions | |
void | addArtifactInstance (CorrelationAttributeInstance eamArtifact) throws CentralRepoException |
void | addAttributeInstanceBulk (CorrelationAttributeInstance eamArtifact) throws CentralRepoException |
void | addDataSourceObjectId (int rowId, long dataSourceObjectId) throws CentralRepoException |
void | addReferenceInstance (CentralRepoFileInstance eamGlobalFileInstance, CorrelationAttributeInstance.Type correlationType) throws CentralRepoException |
void | bulkInsertCases (List< CorrelationCase > cases) throws CentralRepoException |
void | bulkInsertReferenceTypeEntries (Set< CentralRepoFileInstance > globalInstances, CorrelationAttributeInstance.Type contentType) throws CentralRepoException |
void | commitAttributeInstancesBulk () throws CentralRepoException |
void | deleteOrganization (CentralRepoOrganization organizationToDelete) throws CentralRepoException |
void | deleteReferenceSet (int referenceSetID) throws CentralRepoException |
void | executeCommand (String sql, List< Object > params) throws CentralRepoException |
void | executeQuery (String sql, List< Object > params, CentralRepositoryDbQueryCallback queryCallback) throws CentralRepoException |
CentralRepoAccount | getAccount (CentralRepoAccount.CentralRepoAccountType crAccountType, String accountUniqueID) throws InvalidAccountIDException, CentralRepoException |
Optional< CentralRepoAccountType > | getAccountTypeByName (String accountTypeName) throws CentralRepoException |
Collection< CentralRepoAccountType > | getAllAccountTypes () throws CentralRepoException |
List< CentralRepoFileSet > | getAllReferenceSets (CorrelationAttributeInstance.Type correlationType) throws CentralRepoException |
List< CorrelationAttributeInstance > | getArtifactInstancesByTypeValue (CorrelationAttributeInstance.Type type, String value) throws CentralRepoException, CorrelationAttributeNormalizationException |
List< CorrelationAttributeInstance > | getArtifactInstancesByTypeValues (CorrelationAttributeInstance.Type aType, List< String > values) throws CentralRepoException, CorrelationAttributeNormalizationException |
List< CorrelationAttributeInstance > | getArtifactInstancesByTypeValuesAndCases (CorrelationAttributeInstance.Type aType, List< String > values, List< Integer > caseIds) throws CentralRepoException, CorrelationAttributeNormalizationException |
CorrelationCase | getCase (Case autopsyCase) throws CentralRepoException |
CorrelationCase | getCaseById (int caseId) throws CentralRepoException |
CorrelationCase | getCaseByUUID (String caseUUID) throws CentralRepoException |
List< CorrelationCase > | getCases () throws CentralRepoException |
CorrelationAttributeInstance | getCorrelationAttributeInstance (CorrelationAttributeInstance.Type type, CorrelationCase correlationCase, CorrelationDataSource correlationDataSource, String value, String filePath) throws CentralRepoException, CorrelationAttributeNormalizationException |
CorrelationAttributeInstance | getCorrelationAttributeInstance (CorrelationAttributeInstance.Type type, CorrelationCase correlationCase, CorrelationDataSource correlationDataSource, long objectID) throws CentralRepoException, CorrelationAttributeNormalizationException |
CorrelationAttributeInstance.Type | getCorrelationTypeById (int typeId) throws CentralRepoException |
Long | getCountArtifactInstancesByCaseDataSource (CorrelationDataSource correlationDataSource) throws CentralRepoException |
Long | getCountArtifactInstancesByTypeValue (CorrelationAttributeInstance.Type aType, String value) throws CentralRepoException, CorrelationAttributeNormalizationException |
Long | getCountArtifactInstancesKnownBad (CorrelationAttributeInstance.Type aType, String value) throws CentralRepoException, CorrelationAttributeNormalizationException |
Long | getCountCasesWithOtherInstances (CorrelationAttributeInstance instance) throws CentralRepoException, CorrelationAttributeNormalizationException |
Long | getCountUniqueCaseDataSourceTuplesHavingTypeValue (CorrelationAttributeInstance.Type aType, String value) throws CentralRepoException, CorrelationAttributeNormalizationException |
Long | getCountUniqueDataSources () throws CentralRepoException |
CorrelationDataSource | getDataSource (CorrelationCase correlationCase, Long caseDbDataSourceId) throws CentralRepoException |
CorrelationDataSource | getDataSourceById (CorrelationCase correlationCase, int dataSourceId) throws CentralRepoException |
List< CorrelationDataSource > | getDataSources () throws CentralRepoException |
String | getDbInfo (String name) throws CentralRepoException |
List< CorrelationAttributeInstance.Type > | getDefinedCorrelationTypes () throws CentralRepoException |
List< CorrelationAttributeInstance.Type > | getEnabledCorrelationTypes () throws CentralRepoException |
CoordinationService.Lock | getExclusiveMultiUserDbLock () throws CentralRepoException |
int | getFrequencyPercentage (CorrelationAttributeInstance corAttr) throws CentralRepoException, CorrelationAttributeNormalizationException |
List< String > | getListCasesHavingArtifactInstances (CorrelationAttributeInstance.Type aType, String value) throws CentralRepoException, CorrelationAttributeNormalizationException |
List< String > | getListCasesHavingArtifactInstancesKnownBad (CorrelationAttributeInstance.Type aType, String value) throws CentralRepoException, CorrelationAttributeNormalizationException |
CentralRepoAccount | getOrCreateAccount (CentralRepoAccount.CentralRepoAccountType crAccountType, String accountUniqueID) throws InvalidAccountIDException, CentralRepoException |
CentralRepoOrganization | getOrganizationByID (int orgID) throws CentralRepoException |
List< CentralRepoOrganization > | getOrganizations () throws CentralRepoException |
CentralRepoExaminer | getOrInsertExaminer (String examinerLoginName) throws CentralRepoException |
List< CentralRepoFileInstance > | getReferenceInstancesByTypeValue (CorrelationAttributeInstance.Type aType, String aValue) throws CentralRepoException, CorrelationAttributeNormalizationException |
CentralRepoFileSet | getReferenceSetByID (int globalSetID) throws CentralRepoException |
CentralRepoOrganization | getReferenceSetOrganization (int referenceSetID) throws CentralRepoException |
List< CorrelationAttributeInstance.Type > | getSupportedCorrelationTypes () throws CentralRepoException |
boolean | isArtifactKnownBadByReference (CorrelationAttributeInstance.Type aType, String value) throws CentralRepoException, CorrelationAttributeNormalizationException |
boolean | isFileHashInReferenceSet (String hash, int referenceSetID) throws CentralRepoException, CorrelationAttributeNormalizationException |
boolean | isValueInReferenceSet (String value, int referenceSetID, int correlationTypeID) throws CentralRepoException, CorrelationAttributeNormalizationException |
HashHitInfo | lookupHash (String hash, int referenceSetID) throws CentralRepoException, CorrelationAttributeNormalizationException |
CorrelationCase | newCase (CorrelationCase eamCase) throws CentralRepoException |
CorrelationCase | newCase (Case autopsyCase) throws CentralRepoException |
int | newCorrelationType (CorrelationAttributeInstance.Type newType) throws CentralRepoException |
CorrelationDataSource | newDataSource (CorrelationDataSource eamDataSource) throws CentralRepoException |
void | newDbInfo (String name, String value) throws CentralRepoException |
CentralRepoOrganization | newOrganization (CentralRepoOrganization eamOrg) throws CentralRepoException |
int | newReferenceSet (CentralRepoFileSet eamGlobalSet) throws CentralRepoException |
void | processInstanceTable (CorrelationAttributeInstance.Type type, InstanceTableCallback instanceTableCallback) throws CentralRepoException |
void | processInstanceTableWhere (CorrelationAttributeInstance.Type type, String whereClause, InstanceTableCallback instanceTableCallback) throws CentralRepoException |
void | processSelectClause (String selectClause, InstanceTableCallback instanceTableCallback) throws CentralRepoException |
boolean | referenceSetExists (String referenceSetName, String version) throws CentralRepoException |
boolean | referenceSetIsValid (int referenceSetID, String referenceSetName, String version) throws CentralRepoException |
void | reset () throws CentralRepoException |
void | saveSettings () |
void | setAttributeInstanceKnownStatus (CorrelationAttributeInstance eamArtifact, TskData.FileKnown knownStatus) throws CentralRepoException |
void | shutdownConnections () throws CentralRepoException |
void | updateAttributeInstanceComment (CorrelationAttributeInstance eamArtifact) throws CentralRepoException |
void | updateCase (CorrelationCase eamCase) throws CentralRepoException |
void | updateCorrelationType (CorrelationAttributeInstance.Type aType) throws CentralRepoException |
void | updateDataSourceMd5Hash (CorrelationDataSource eamDataSource) throws CentralRepoException |
void | updateDataSourceName (CorrelationDataSource eamDataSource, String newName) throws CentralRepoException |
void | updateDataSourceSha1Hash (CorrelationDataSource eamDataSource) throws CentralRepoException |
void | updateDataSourceSha256Hash (CorrelationDataSource eamDataSource) throws CentralRepoException |
void | updateDbInfo (String name, String value) throws CentralRepoException |
void | updateOrganization (CentralRepoOrganization updatedOrganization) throws CentralRepoException |
void | updateSettings () |
void | upgradeSchema () throws CentralRepoException, SQLException, IncompatibleCentralRepoException |
Static Public Member Functions | |
static CentralRepository | getInstance () throws CentralRepoException |
static boolean | isEnabled () |
Main interface for interacting with the database
Definition at line 36 of file CentralRepository.java.
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.addArtifactInstance | ( | CorrelationAttributeInstance | eamArtifact | ) | throws CentralRepoException |
Inserts new Artifact(s) into the database. Should add associated Case and Data Source first.
eamArtifact | The artifact to add |
Referenced by org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.actionPerformed().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.addAttributeInstanceBulk | ( | CorrelationAttributeInstance | eamArtifact | ) | throws CentralRepoException |
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 commitAttributeInstancesBulk().
eamArtifact | The artifact to add |
Referenced by org.sleuthkit.autopsy.centralrepository.ingestmodule.CentralRepoDataArtifactIngestModule.analyzeOsAccounts(), and org.sleuthkit.autopsy.centralrepository.ingestmodule.CentralRepoDataArtifactIngestModule.process().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.addDataSourceObjectId | ( | int | rowId, |
long | dataSourceObjectId | ||
) | throws CentralRepoException |
Set the data source object id for a specific entry in the data_sources table
rowId | - the row id for the data_sources table entry |
dataSourceObjectId | - the object id for the data source from the caseDb |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepositoryService.dataUpgradeForVersion1dot2().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.addReferenceInstance | ( | CentralRepoFileInstance | eamGlobalFileInstance, |
CorrelationAttributeInstance.Type | correlationType | ||
) | throws CentralRepoException |
Add a new reference instance
eamGlobalFileInstance | The reference instance to add |
correlationType | Correlation Type that this Reference Instance is |
CentralRepoException |
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.bulkInsertCases | ( | List< CorrelationCase > | cases | ) | throws CentralRepoException |
Executes a bulk insert of the cases
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.bulkInsertReferenceTypeEntries | ( | Set< CentralRepoFileInstance > | globalInstances, |
CorrelationAttributeInstance.Type | contentType | ||
) | throws CentralRepoException |
Insert the bulk collection of Global File Instances
globalInstances | a Set of EamGlobalFileInstances to insert into the db. |
contentType | the Type of the global instances |
CentralRepoException |
Referenced by org.sleuthkit.autopsy.modules.hashdatabase.ImportCentralRepoDbProgressDialog.CentralRepoImportWorker.doInBackground().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.commitAttributeInstancesBulk | ( | ) | throws CentralRepoException |
Executes a bulk insert of the eamArtifacts added from the addAttributeInstanceBulk() method
Referenced by org.sleuthkit.autopsy.centralrepository.ingestmodule.CentralRepoDataArtifactIngestModule.shutDown().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.deleteOrganization | ( | CentralRepoOrganization | organizationToDelete | ) | throws CentralRepoException |
Delete an organization if it is not being used by any case.
organizationToDelete | the organization to be deleted |
CentralRepoException |
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.ManageOrganizationsDialog.deleteButtonActionPerformed().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.deleteReferenceSet | ( | int | referenceSetID | ) | throws CentralRepoException |
Remove a reference set and all values contained in it.
referenceSetID |
CentralRepoException |
Referenced by org.sleuthkit.autopsy.modules.hashdatabase.HashLookupSettingsPanel.cancel(), and org.sleuthkit.autopsy.modules.hashdatabase.ImportCentralRepoDbProgressDialog.CentralRepoImportWorker.deleteIncompleteSet().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.executeCommand | ( | String | sql, |
List< Object > | params | ||
) | throws CentralRepoException |
Executes an INSERT/UPDATE/DELETE sql as a prepared statement, on the central repository database.
sql | sql to execute. |
params | List of query params to use, may be empty. |
CentralRepoException | If there is an error. |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.Persona.createPersona(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.delete(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.setComment(), and org.sleuthkit.autopsy.centralrepository.datamodel.Persona.setName().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.executeQuery | ( | String | sql, |
List< Object > | params, | ||
CentralRepositoryDbQueryCallback | queryCallback | ||
) | throws CentralRepoException |
Executes a SELECT query sql as a prepared statement, on the central repository database.
sql | sql to execute. |
params | List of query params to use, may be empty. |
queryCallback | Query callback to handle the result of the query. |
CentralRepoException | If there is an error. |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.commentExistsOnAttributes(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifier(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifierLike(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAllAccounts(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getCases(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getDataSources(), org.sleuthkit.autopsy.centralrepository.datamodel.PersonaAccount.getPersonaAccountsForAccount(), org.sleuthkit.autopsy.centralrepository.datamodel.PersonaAccount.getPersonaAccountsForIdentifierLike(), org.sleuthkit.autopsy.centralrepository.datamodel.PersonaAlias.getPersonaAliases(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getPersonaByAccountIdentifierLike(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getPersonaByName(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getPersonaByUUID(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getPersonasForCase(), and org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getPersonasForDataSource().
CentralRepoAccount org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getAccount | ( | CentralRepoAccount.CentralRepoAccountType | crAccountType, |
String | accountUniqueID | ||
) | throws InvalidAccountIDException, CentralRepoException |
Gets an account from the accounts table matching the given type/ID, if one exists.
crAccountType | CR account type to look for or create |
accountUniqueID | type specific unique account id |
CentralRepoException | If there is an error accessing Central Repository. |
InvalidAccountIDException | If the account identifier is not valid. |
Referenced by org.sleuthkit.autopsy.contentviewers.artifactviewers.PersonaAccountFetcher.CreatePersonaButtonListener.actionPerformed(), org.sleuthkit.autopsy.contentviewers.artifactviewers.MessageAccountPanel.PersonaButtonListener.actionPerformed(), and org.sleuthkit.autopsy.contentviewers.artifactviewers.ContactArtifactViewer.ContactPersonaSearcherTask.doInBackground().
Optional<CentralRepoAccountType> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getAccountTypeByName | ( | String | accountTypeName | ) | throws CentralRepoException |
Get account type by type name.
accountTypeName | account type name to look for |
CentralRepoException |
Referenced by org.sleuthkit.autopsy.contentviewers.artifactviewers.ContactArtifactViewer.ContactPersonaSearcherTask.doInBackground(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrFromAcctArtifact(), org.sleuthkit.autopsy.centralrepository.datamodel.PersonaAccount.PersonaAccountsQueryCallback.process(), and org.sleuthkit.autopsy.centralrepository.datamodel.PersonaAccount.AccountsForPersonaQueryCallback.process().
Collection<CentralRepoAccountType> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getAllAccountTypes | ( | ) | throws CentralRepoException |
Gets all account types.
CentralRepoException |
Referenced by org.sleuthkit.autopsy.contentviewers.artifactviewers.PersonaAccountFetcher.CreatePersonaButtonListener.actionPerformed(), org.sleuthkit.autopsy.contentviewers.artifactviewers.MessageAccountPanel.PersonaButtonListener.actionPerformed(), org.sleuthkit.autopsy.centralrepository.persona.CreatePersonaAccountDialog.getAllAccountTypes(), org.sleuthkit.autopsy.centralrepository.persona.PersonaAccountDialog.getAllAccountTypes(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getPersonasForCase(), and org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getPersonasForDataSource().
List<CentralRepoFileSet> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getAllReferenceSets | ( | CorrelationAttributeInstance.Type | correlationType | ) | throws CentralRepoException |
Get all reference sets
correlationType | Type of sets to return |
CentralRepoException |
Referenced by org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.getCentralRepoHashSetsFromDatabase().
List<CorrelationAttributeInstance> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getArtifactInstancesByTypeValue | ( | CorrelationAttributeInstance.Type | type, |
String | value | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Retrieves correlation attribute instances from the central repository that match a given attribute type and value.
type | The correlation attribute type. |
value | The correlation attribute value. |
CorrelationAttributeNormalizationException | The exception is thrown if the supplied correlation attribute value cannot be normlaized. |
CentralRepoException | The exception is thrown if there is an error querying the central repository. |
Referenced by org.sleuthkit.autopsy.centralrepository.application.OtherOccurrences.getCorrelatedInstances(), and org.sleuthkit.autopsy.contentviewers.annotations.AnnotationUtils.getCorrelationAttributeComments().
List<CorrelationAttributeInstance> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getArtifactInstancesByTypeValues | ( | CorrelationAttributeInstance.Type | aType, |
List< String > | values | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Retrieves eamArtifact instances from the database that are associated with the eamArtifactType and eamArtifactValues of the given eamArtifact.
aType | EamArtifact.Type to search for |
values | The list of correlation values to get CorrelationAttributeInstances for |
Referenced by org.sleuthkit.autopsy.commonpropertiessearch.InterCaseSearchResultsProcessor.InterCaseByCountCallback.process(), and org.sleuthkit.autopsy.commonpropertiessearch.InterCaseSearchResultsProcessor.InterCaseByCaseCallback.process().
List<CorrelationAttributeInstance> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getArtifactInstancesByTypeValuesAndCases | ( | CorrelationAttributeInstance.Type | aType, |
List< String > | values, | ||
List< Integer > | caseIds | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Retrieves eamArtifact instances from the database that are associated with the eamArtifactType and eamArtifactValues of the given eamArtifact for the specified cases.
aType | The type of the artifact |
values | The list of correlation values to get CorrelationAttributeInstances for |
caseIds | The list of central repository case ids to get CorrelationAttributeInstances for |
Referenced by org.sleuthkit.autopsy.commonpropertiessearch.InterCaseSearchResultsProcessor.InterCaseByCountCallback.process(), and org.sleuthkit.autopsy.commonpropertiessearch.InterCaseSearchResultsProcessor.InterCaseByCaseCallback.process().
CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCase | ( | Case | autopsyCase | ) | throws CentralRepoException |
Retrieves Central Repo case based on an Autopsy Case
autopsyCase | Autopsy case to find corresponding CR case for |
CentralRepoException |
Referenced by org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeSearchAction.createAndShowPanel(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepositoryService.dataUpgradeForVersion1dot2(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.getCorrAttrForFile(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttr(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrsForSearch(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrsToSave(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.DataSourceAddedTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.CurrentCaseTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.DataSourceNameChangedTask.run(), and org.sleuthkit.autopsy.centralrepository.ingestmodule.CentralRepoDataArtifactIngestModule.syncDataSourceHashes().
CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCaseById | ( | int | caseId | ) | throws CentralRepoException |
Retrieves Case details based on Case ID
caseId | unique identifier for a case |
Referenced by org.sleuthkit.autopsy.commonpropertiessearch.InterCaseSearchResultsProcessor.InterCaseCommonAttributeRowCallback.process(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.CaseForAccountInstanceQueryCallback.process(), and org.sleuthkit.autopsy.centralrepository.datamodel.Persona.DatasourceForAccountInstanceQueryCallback.process().
CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCaseByUUID | ( | String | caseUUID | ) | throws CentralRepoException |
Retrieves Case details based on Case UUID
caseUUID | unique identifier for a case |
Referenced by org.sleuthkit.autopsy.centralrepository.contentviewer.OtherOccurrencesPanel.getCaseCreatedDate(), and org.sleuthkit.autopsy.centralrepository.contentviewer.OtherOccurrencesPanel.showCaseDetails().
List<CorrelationCase> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCases | ( | ) | throws CentralRepoException |
Retrieves cases that are in DB.
Referenced by org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeSearchAction.createAndShowPanel(), and org.sleuthkit.autopsy.centralrepository.application.OtherOccurrences.getEarliestCaseDate().
CorrelationAttributeInstance org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCorrelationAttributeInstance | ( | CorrelationAttributeInstance.Type | type, |
CorrelationCase | correlationCase, | ||
CorrelationDataSource | correlationDataSource, | ||
String | value, | ||
String | filePath | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Find a correlation attribute in the Central Repository database given the instance type, case, data source, value, and file path.
Method exists to support instances added using Central Repository version 1,1 and older
type | The type of instance. |
correlationCase | The case tied to the instance. |
correlationDataSource | The data source tied to the instance. |
value | The value tied to the instance. |
filePath | The file path tied to the instance. |
CentralRepoException |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.getCorrAttrForFile(), and org.sleuthkit.autopsy.commonpropertiessearch.InterCaseSearchResultsProcessor.InterCaseCommonAttributeRowCallback.process().
CorrelationAttributeInstance org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCorrelationAttributeInstance | ( | CorrelationAttributeInstance.Type | type, |
CorrelationCase | correlationCase, | ||
CorrelationDataSource | correlationDataSource, | ||
long | objectID | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Find a correlation attribute in the Central Repository database given the instance type, case, data source, object id.
type | The type of instance. |
correlationCase | The case tied to the instance. |
correlationDataSource | The data source tied to the instance. |
objectID | The object id of the file tied to the instance. |
CentralRepoException |
CorrelationAttributeInstance.Type org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCorrelationTypeById | ( | int | typeId | ) | throws CentralRepoException |
Get the EamArtifact.Type that has the given Type.Id.
typeId | Type.Id of Correlation Type to get |
CentralRepoException |
Referenced by org.sleuthkit.autopsy.modules.hashdatabase.ImportCentralRepoDbProgressDialog.CentralRepoImportWorker.doInBackground(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getCases(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.getCentralRepoHashSetsFromDatabase(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.getCorrAttrForFile(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getDataSources(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getPersonaFromInstanceTableQueryTemplate(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrFromAcctArtifact(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrFromArtifactAttr(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrsForSearch(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrsFromCommunicationArtifact(), and org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrsToSave().
Long org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCountArtifactInstancesByCaseDataSource | ( | CorrelationDataSource | correlationDataSource | ) | throws CentralRepoException |
Retrieves number of eamArtifact instances in the database that are associated with the given data source.
correlationDataSource | Data source to search for |
Long org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCountArtifactInstancesByTypeValue | ( | CorrelationAttributeInstance.Type | aType, |
String | value | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Retrieves number of artifact instances in the database that are associated with the ArtifactType and artifactValue of the given artifact.
aType | EamArtifact.Type to search for |
value | Value to search for |
Long org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCountArtifactInstancesKnownBad | ( | CorrelationAttributeInstance.Type | aType, |
String | value | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Count matching eamArtifacts instances that have knownStatus = "Bad".
aType | EamArtifact.Type to search for |
value | Value to search for |
Referenced by org.sleuthkit.autopsy.discovery.search.SearchFiltering.NotableFilter.applyAlternateFilter().
Long org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCountCasesWithOtherInstances | ( | CorrelationAttributeInstance | instance | ) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Gets the count of cases that have an instance of a given correlation attribute.
This count will ignore the specified instance of the correlation attribute and any other instances of this correlation attribute existing on the same object.
instance | The instance having its cases with other occurrences counted. |
Referenced by org.sleuthkit.autopsy.datamodel.AbstractAbstractFileNode< SpecialDirectory >.getCountPropertyAndDescription(), org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.getCountPropertyAndDescription(), and org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.getCountPropertyAndDescription().
Long org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCountUniqueCaseDataSourceTuplesHavingTypeValue | ( | CorrelationAttributeInstance.Type | aType, |
String | value | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Retrieves number of unique caseDisplayName / dataSource tuples in the database that are associated with the artifactType and artifactValue of the given artifact.
aType | EamArtifact.Type to search for |
value | Value to search for |
Referenced by org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeCountSearchResults.filterMetadata(), and org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeCaseSearchResults.filterValue().
Long org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getCountUniqueDataSources | ( | ) | throws CentralRepoException |
Retrieves number of data sources in the database.
Referenced by org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeCaseSearchResults.filterMetadata(), and org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeCountSearchResults.filterMetadata().
CorrelationDataSource org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getDataSource | ( | CorrelationCase | correlationCase, |
Long | caseDbDataSourceId | ||
) | throws CentralRepoException |
Retrieves Data Source details based on data source device ID
correlationCase | the current CorrelationCase used for ensuring uniqueness of DataSource |
caseDbDataSourceId | the data source device ID number |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.fromTSKDataSource(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.DataSourceAddedTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.DataSourceNameChangedTask.run(), and org.sleuthkit.autopsy.centralrepository.ingestmodule.CentralRepoDataArtifactIngestModule.syncDataSourceHashes().
CorrelationDataSource org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getDataSourceById | ( | CorrelationCase | correlationCase, |
int | dataSourceId | ||
) | throws CentralRepoException |
Retrieves Data Source details based on data source ID
correlationCase | the current CorrelationCase used for ensuring uniqueness of DataSource |
dataSourceId | the data source ID number |
Referenced by org.sleuthkit.autopsy.commonpropertiessearch.InterCaseSearchResultsProcessor.InterCaseCommonAttributeRowCallback.process(), and org.sleuthkit.autopsy.centralrepository.datamodel.Persona.DatasourceForAccountInstanceQueryCallback.process().
List<CorrelationDataSource> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getDataSources | ( | ) | throws CentralRepoException |
Retrieves data sources that are in DB
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepositoryService.dataUpgradeForVersion1dot2().
String org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getDbInfo | ( | String | name | ) | throws CentralRepoException |
Get the value for the given name from the name/value db_info table.
name | Name to search for |
CentralRepoException |
List<CorrelationAttributeInstance.Type> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getDefinedCorrelationTypes | ( | ) | throws CentralRepoException |
Get the list of EamArtifact.Type's that are defined in the DB and can be used to correlate artifacts.
CentralRepoException |
Referenced by org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeCaseSearchResults.filterMetadata(), org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeCountSearchResults.filterMetadata(), and org.sleuthkit.autopsy.contentviewers.annotations.AnnotationUtils.getCentralRepositoryData().
List<CorrelationAttributeInstance.Type> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getEnabledCorrelationTypes | ( | ) | throws CentralRepoException |
Get the list of enabled EamArtifact.Type's that will be used to correlate artifacts.
CentralRepoException |
CoordinationService.Lock org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getExclusiveMultiUserDbLock | ( | ) | throws CentralRepoException |
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).
CentralRepoException | if the coordination service is running but we fail to get the lock |
int org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getFrequencyPercentage | ( | CorrelationAttributeInstance | corAttr | ) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Calculate the percentage of data sources that have this attribute value.
corAttr | Attribute type and value to get data about |
Referenced by org.sleuthkit.autopsy.centralrepository.contentviewer.OtherOccurrencesPanel.showCommonalityDetails().
|
static |
Get the instance
CentralRepoException |
Definition at line 45 of file CentralRepository.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.allowUseOfCentralRepository(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoPlatforms.DISABLED, org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.getDbPlatform(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSavedDbChoice().
Referenced by org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.actionPerformed(), org.sleuthkit.autopsy.contentviewers.artifactviewers.PersonaAccountFetcher.CreatePersonaButtonListener.actionPerformed(), org.sleuthkit.autopsy.contentviewers.artifactviewers.MessageAccountPanel.PersonaButtonListener.actionPerformed(), org.sleuthkit.autopsy.modules.hashdatabase.HashLookupSettingsPanel.cancel(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.commentExistsOnAttributes(), org.sleuthkit.autopsy.centralrepository.persona.CreatePersonaAccountDialog.createAccount(), org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeSearchAction.createAndShowPanel(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepositoryService.dataUpgradeForVersion1dot2(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.delete(), org.sleuthkit.autopsy.centralrepository.optionspanel.ManageOrganizationsDialog.deleteButtonActionPerformed(), org.sleuthkit.autopsy.modules.hashdatabase.ImportCentralRepoDbProgressDialog.CentralRepoImportWorker.deleteIncompleteSet(), org.sleuthkit.autopsy.modules.hashdatabase.ImportCentralRepoDbProgressDialog.CentralRepoImportWorker.doInBackground(), org.sleuthkit.autopsy.contentviewers.artifactviewers.ContactArtifactViewer.ContactPersonaSearcherTask.doInBackground(), org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeCaseSearchResults.filterMetadata(), org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeCountSearchResults.filterMetadata(), org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeCaseSearchResults.filterValue(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.fromTSKDataSource(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifier(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAccountsWithIdentifierLike(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoAccount.getAllAccounts(), org.sleuthkit.autopsy.centralrepository.persona.CreatePersonaAccountDialog.getAllAccountTypes(), org.sleuthkit.autopsy.centralrepository.persona.PersonaAccountDialog.getAllAccountTypes(), org.sleuthkit.autopsy.centralrepository.contentviewer.OtherOccurrencesPanel.getCaseCreatedDate(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.getCentralRepoHashSetsFromDatabase(), org.sleuthkit.autopsy.contentviewers.annotations.AnnotationUtils.getCentralRepositoryData(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.getCorrAttrForFile(), org.sleuthkit.autopsy.centralrepository.application.OtherOccurrences.getCorrelatedInstances(), org.sleuthkit.autopsy.contentviewers.annotations.AnnotationUtils.getCorrelationAttributeComments(), org.sleuthkit.autopsy.datamodel.AbstractAbstractFileNode< SpecialDirectory >.getCountPropertyAndDescription(), org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.getCountPropertyAndDescription(), org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.getCountPropertyAndDescription(), org.sleuthkit.autopsy.centralrepository.datamodel.PersonaAlias.getCRInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.PersonaMetadata.getCRInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.PersonaAccount.getCRInstance(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.getCRInstance(), org.sleuthkit.autopsy.centralrepository.application.OtherOccurrences.getEarliestCaseDate(), org.sleuthkit.autopsy.centralrepository.optionspanel.ManageOrganizationsDialog.init(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttr(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrFromAcctArtifact(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrFromArtifactAttr(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrsForSearch(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrsFromCommunicationArtifact(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrsToSave(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.obtainCentralRepository(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.onUpgradeError(), org.sleuthkit.autopsy.commonpropertiessearch.InterCaseSearchResultsProcessor.InterCaseByCountCallback.process(), org.sleuthkit.autopsy.commonpropertiessearch.InterCaseSearchResultsProcessor.InterCaseByCaseCallback.process(), org.sleuthkit.autopsy.commonpropertiessearch.InterCaseSearchResultsProcessor.InterCaseCommonAttributeRowCallback.process(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.propertyChange(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.TagDefinitionChangeTask.run(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveNewCentralRepo(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.setComment(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.setMd5(), org.sleuthkit.autopsy.centralrepository.datamodel.Persona.setName(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.setSha1(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.setSha256(), org.sleuthkit.autopsy.centralrepository.contentviewer.OtherOccurrencesPanel.showCaseDetails(), org.sleuthkit.autopsy.centralrepository.contentviewer.OtherOccurrencesPanel.showCommonalityDetails(), and org.sleuthkit.autopsy.centralrepository.ingestmodule.CentralRepoDataArtifactIngestModule.startUp().
List<String> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getListCasesHavingArtifactInstances | ( | CorrelationAttributeInstance.Type | aType, |
String | value | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Gets list of distinct case display names, where each case has 1+ Artifact Instance matching eamArtifact.
aType | EamArtifact.Type to search for |
value | Value to search for |
CentralRepoException |
List<String> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getListCasesHavingArtifactInstancesKnownBad | ( | CorrelationAttributeInstance.Type | aType, |
String | value | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Gets list of distinct case display names, where each case has 1+ Artifact Instance matching eamArtifact with knownStatus = "Bad".
aType | EamArtifact.Type to search for |
value | Value to search for |
CentralRepoException |
CentralRepoAccount org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getOrCreateAccount | ( | CentralRepoAccount.CentralRepoAccountType | crAccountType, |
String | accountUniqueID | ||
) | throws InvalidAccountIDException, CentralRepoException |
Get an account from the accounts table matching the given type/ID. Inserts a row if one doesn't exists.
crAccountType | CR account type to look for or create |
accountUniqueID | type specific unique account id |
CentralRepoException | If there is an error accessing Central Repository. |
InvalidAccountIDException | If the account identifier is not valid. |
Referenced by org.sleuthkit.autopsy.centralrepository.persona.CreatePersonaAccountDialog.createAccount(), and org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrFromAcctArtifact().
CentralRepoOrganization org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getOrganizationByID | ( | int | orgID | ) | throws CentralRepoException |
Get an organization having the given ID
orgID | The id to look up |
CentralRepoException |
List<CentralRepoOrganization> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getOrganizations | ( | ) | throws CentralRepoException |
Get all organizations
CentralRepoException |
Referenced by org.sleuthkit.autopsy.centralrepository.optionspanel.ManageOrganizationsDialog.populateListAndSelect().
CentralRepoExaminer org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getOrInsertExaminer | ( | String | examinerLoginName | ) | throws CentralRepoException |
Queries the examiner table for the given user name. Adds a row if the user is not found in the examiner table.
examinerLoginName | user name to look for. |
CentralRepoException | If there is an error in looking up or inserting the user in the examiners table. |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.Persona.createPersona().
List<CentralRepoFileInstance> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getReferenceInstancesByTypeValue | ( | CorrelationAttributeInstance.Type | aType, |
String | aValue | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Get all reference entries having a given correlation type and value
aType | Type to use for matching |
aValue | Value to use for matching |
CentralRepoException |
CentralRepoFileSet org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getReferenceSetByID | ( | int | globalSetID | ) | throws CentralRepoException |
Get a global set by ID
globalSetID | The ID to look up |
CentralRepoException |
CentralRepoOrganization org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getReferenceSetOrganization | ( | int | referenceSetID | ) | throws CentralRepoException |
Get the organization associated with the given reference set.
referenceSetID | ID of the reference set |
CentralRepoException |
List<CorrelationAttributeInstance.Type> org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.getSupportedCorrelationTypes | ( | ) | throws CentralRepoException |
Get the list of supported EamArtifact.Type's that can be used to correlate artifacts.
CentralRepoException |
boolean org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.isArtifactKnownBadByReference | ( | CorrelationAttributeInstance.Type | aType, |
String | value | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Is the artifact known as bad according to the reference entries?
aType | EamArtifact.Type to search for |
value | Value to search for |
|
static |
Is the database enabled?
Definition at line 99 of file CentralRepository.java.
References org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.allowUseOfCentralRepository(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.DISABLED, and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.getSavedDbChoice().
Referenced by org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.addSCOColumns(), org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.addSCOColumns(), org.sleuthkit.autopsy.modules.hashdatabase.HashLookupSettingsPanel.cancel(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbUtil.commentExistsOnAttributes(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.configureLocalDb(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.configureSettings(), org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeSearchAction.createAndShowPanel(), org.sleuthkit.autopsy.communications.CVTPersonaCache.CVTPersonaCache(), org.sleuthkit.autopsy.centralrepository.persona.PersonasTopComponent.executeSearch(), org.sleuthkit.autopsy.commonpropertiessearch.CommonAttributeCountSearchResults.filterMetadata(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.fromTSKDataSource(), org.sleuthkit.autopsy.centralrepository.CentralRepoContextMenuActionsProvider.getActions(), org.sleuthkit.autopsy.centralrepository.contentviewer.OtherOccurrencesPanel.getCaseCreatedDate(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.getCentralRepoHashSetsFromDatabase(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.getCorrAttrForFile(), org.sleuthkit.autopsy.centralrepository.application.OtherOccurrences.getCorrelatedInstances(), org.sleuthkit.autopsy.centralrepository.application.OtherOccurrences.getEarliestCaseDate(), org.sleuthkit.autopsy.discovery.search.DiscoveryAttributes.GroupingAttributeType.getOptionsForGroupingForDomains(), org.sleuthkit.autopsy.datamodel.AbstractAbstractFileNode< SpecialDirectory >.getProperties(), org.sleuthkit.autopsy.contentviewers.artifactviewers.ContactArtifactViewer.initiatePersonasSearch(), org.sleuthkit.autopsy.allcasessearch.AllCasesSearchAction.isEnabled(), org.sleuthkit.autopsy.centralrepository.persona.OpenPersonasAction.isEnabled(), org.sleuthkit.autopsy.centralrepository.contentviewer.DataContentViewerOtherCases.isSupported(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrsForSearch(), org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeUtil.makeCorrAttrsToSave(), org.sleuthkit.autopsy.contentviewers.artifactviewers.MessageArtifactViewer.MessageArtifactViewer(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepositoryService.openCaseResources(), org.sleuthkit.autopsy.centralrepository.persona.OpenPersonasAction.OpenPersonasAction(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.propertyChange(), org.sleuthkit.autopsy.contentviewers.annotations.AnnotationUtils.renderArtifact(), org.sleuthkit.autopsy.contentviewers.annotations.AnnotationUtils.renderContent(), org.sleuthkit.autopsy.centralrepository.contentviewer.OtherOccurrencesPanel.rightClickPopupMenuPopupMenuWillBecomeVisible(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.ContentTagTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.ArtifactTagTask.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.eventlisteners.CaseEventListener.DataSourceNameChangedTask.run(), org.sleuthkit.autopsy.communications.relationships.SummaryViewer.setSelectionInfo(), org.sleuthkit.autopsy.centralrepository.ingestmodule.CentralRepoDataArtifactIngestModule.startUp(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.updateHashSetsFromCentralRepository(), org.sleuthkit.autopsy.communications.relationships.SummaryViewer.updateOtherAccountInfo(), org.sleuthkit.autopsy.contentviewers.artifactviewers.CallLogArtifactViewer.updateView(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.upgradeDatabase().
boolean org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.isFileHashInReferenceSet | ( | String | hash, |
int | referenceSetID | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Check if the given file hash is in this reference set. Only searches the reference_files table.
hash | |
referenceSetID |
CentralRepoException |
boolean org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.isValueInReferenceSet | ( | String | value, |
int | referenceSetID, | ||
int | correlationTypeID | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Check if the given value is in a specific reference set
value | |
referenceSetID | |
correlationTypeID |
HashHitInfo org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.lookupHash | ( | String | hash, |
int | referenceSetID | ||
) | throws CentralRepoException, CorrelationAttributeNormalizationException |
Retrieves the given file HashHitInfo if the given file hash is in this reference set. Only searches the reference_files table.
hash | The hash to find in a search. |
referenceSetID | The referenceSetID within which the file should exist. |
CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.newCase | ( | CorrelationCase | eamCase | ) | throws CentralRepoException |
Creates new Case in the database
Expects the Organization for this case to already exist in the database.
eamCase | The case to add |
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.CurrentCaseTask.run(), and org.sleuthkit.autopsy.centralrepository.ingestmodule.CentralRepoDataArtifactIngestModule.syncDataSourceHashes().
CorrelationCase org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.newCase | ( | Case | autopsyCase | ) | throws CentralRepoException |
Creates new Case in the database from the given case
autopsyCase | The case to add |
int org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.newCorrelationType | ( | CorrelationAttributeInstance.Type | newType | ) | throws CentralRepoException |
Add a new EamArtifact.Type to the db.
newType | New type to add. |
CentralRepoException |
CorrelationDataSource org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.newDataSource | ( | CorrelationDataSource | eamDataSource | ) | throws CentralRepoException |
Creates new Data Source in the database
eamDataSource | the data source to add |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.fromTSKDataSource().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.newDbInfo | ( | String | name, |
String | value | ||
) | throws CentralRepoException |
Add a new name/value pair in the db_info table.
name | Key to set |
value | Value to set |
CentralRepoException |
CentralRepoOrganization org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.newOrganization | ( | CentralRepoOrganization | eamOrg | ) | throws CentralRepoException |
Add a new organization
eamOrg | The organization to add |
CentralRepoException |
int org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.newReferenceSet | ( | CentralRepoFileSet | eamGlobalSet | ) | throws CentralRepoException |
Add a new Global Set
eamGlobalSet | The global set to add |
CentralRepoException |
Referenced by org.sleuthkit.autopsy.modules.hashdatabase.ImportCentralRepoDbProgressDialog.CentralRepoImportWorker.doInBackground().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.processInstanceTable | ( | CorrelationAttributeInstance.Type | type, |
InstanceTableCallback | instanceTableCallback | ||
) | throws CentralRepoException |
Process the Artifact instance in the EamDb
type | EamArtifact.Type to search for |
instanceTableCallback | callback to process the instance |
CentralRepoException |
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.processInstanceTableWhere | ( | CorrelationAttributeInstance.Type | type, |
String | whereClause, | ||
InstanceTableCallback | instanceTableCallback | ||
) | throws CentralRepoException |
Process the Artifact instance in the EamDb
type | EamArtifact.Type to search for |
instanceTableCallback | callback to process the instance |
whereClause | query string to execute |
CentralRepoException |
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.processSelectClause | ( | String | selectClause, |
InstanceTableCallback | instanceTableCallback | ||
) | throws CentralRepoException |
Process a SELECT query
selectClause | query string to execute |
instanceTableCallback | callback to process the instance |
CentralRepoException |
boolean org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.referenceSetExists | ( | String | referenceSetName, |
String | version | ||
) | throws CentralRepoException |
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.
referenceSetName | |
version |
CentralRepoException |
boolean org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.referenceSetIsValid | ( | int | referenceSetID, |
String | referenceSetName, | ||
String | version | ||
) | throws CentralRepoException |
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.
referenceSetID | |
referenceSetName | |
version |
CentralRepoException |
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.reset | ( | ) | throws CentralRepoException |
Reset the database (testing method)
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.saveSettings | ( | ) |
Save settings
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.setAttributeInstanceKnownStatus | ( | CorrelationAttributeInstance | eamArtifact, |
TskData.FileKnown | knownStatus | ||
) | throws CentralRepoException |
Sets an eamArtifact instance to the given known status. If eamArtifact exists, it is updated. If eamArtifact does not exist nothing happens
eamArtifact | Artifact containing exactly one (1) ArtifactInstance. |
knownStatus | The status to change the artifact to |
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.TagDefinitionChangeTask.run(), org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.setArtifactKnownStatus(), and org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.ContentTagTask.setContentKnownStatus().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.shutdownConnections | ( | ) | throws CentralRepoException |
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.
CentralRepoException | if there is a problem closing the connection pool. |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.onUpgradeError(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveNewCentralRepo().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.updateAttributeInstanceComment | ( | CorrelationAttributeInstance | eamArtifact | ) | throws CentralRepoException |
Update a correlation attribute instance comment in the database with that in the associated CorrelationAttribute object.
eamArtifact | The correlation attribute whose database instance will be updated. |
CentralRepoException |
Referenced by org.sleuthkit.autopsy.centralrepository.AddEditCentralRepoCommentAction.actionPerformed().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.updateCase | ( | CorrelationCase | eamCase | ) | throws CentralRepoException |
Updates an existing Case in the database
eamCase | The case to update |
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.updateCorrelationType | ( | CorrelationAttributeInstance.Type | aType | ) | throws CentralRepoException |
Update a EamArtifact.Type.
aType | EamArtifact.Type to update. |
CentralRepoException |
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.updateDataSourceMd5Hash | ( | CorrelationDataSource | eamDataSource | ) | throws CentralRepoException |
Updates the MD5 hash value in an existing data source in the database.
eamDataSource | The data source to update |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.setMd5().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.updateDataSourceName | ( | CorrelationDataSource | eamDataSource, |
String | newName | ||
) | throws CentralRepoException |
Changes the name of a data source in the DB
eamDataSource | The data source |
newName | The new name |
CentralRepoException |
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener.DataSourceNameChangedTask.run().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.updateDataSourceSha1Hash | ( | CorrelationDataSource | eamDataSource | ) | throws CentralRepoException |
Updates the SHA-1 hash value in an existing data source in the database.
eamDataSource | The data source to update |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.setSha1().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.updateDataSourceSha256Hash | ( | CorrelationDataSource | eamDataSource | ) | throws CentralRepoException |
Updates the SHA-256 hash value in an existing data source in the database.
eamDataSource | The data source to update |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource.setSha256().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.updateDbInfo | ( | String | name, |
String | value | ||
) | throws CentralRepoException |
Update the value for a name in the name/value db_info table.
name | Name to find |
value | Value to assign to name. |
CentralRepoException |
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.updateOrganization | ( | CentralRepoOrganization | updatedOrganization | ) | throws CentralRepoException |
Update an existing organization.
updatedOrganization | the values the Organization with the same ID will be updated to in the database. |
CentralRepoException |
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.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.
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.saveNewCentralRepo().
void org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository.upgradeSchema | ( | ) | throws CentralRepoException, SQLException, IncompatibleCentralRepoException |
Upgrade the schema of the database (if needed)
CentralRepoException |
Referenced by org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.updatedDbSchema().
Copyright © 2012-2022 Basis Technology. Generated on: Thu Jun 1 2023
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.