Go to the documentation of this file.
19package org.sleuthkit.autopsy.centralrepository.datamodel;
21import org.openide.util.NbBundle;
22import org.openide.util.lookup.ServiceProvider;
23import org.sleuthkit.autopsy.appservices.AutopsyService;
24import org.sleuthkit.autopsy.progress.ProgressIndicator;
25import org.sleuthkit.autopsy.casemodule.Case;
26import org.sleuthkit.autopsy.centralrepository.eventlisteners.CaseEventListener;
27import org.sleuthkit.datamodel.Content;
28import org.sleuthkit.datamodel.DataSource;
29import org.sleuthkit.datamodel.TskCoreException;
41 "CentralRepositoryService.serviceName=Central Repository Service"
44 return Bundle.CentralRepositoryService_serviceName();
48 "CentralRepositoryService.progressMsg.updatingSchema=Checking for schema updates...",
49 "CentralRepositoryService.progressMsg.startingListener=Starting events listener..."
58 progress.progress(Bundle.CentralRepositoryService_progressMsg_updatingSchema());
69 progress.progress(Bundle.CentralRepositoryService_progressMsg_startingListener());
75 "CentralRepositoryService.progressMsg.waitingForListeners=Finishing adding data to central repository database...."
80 progress.progress(Bundle.CentralRepositoryService_progressMsg_waitingForListeners());
117 if (correlationCase !=
null) {
123 if (correlationDataSource.getCaseID() == correlationCase.
getID() && correlationDataSource.getDataSourceObjectID() == 0) {
124 for (Content dataSource : currentCase.getDataSources()) {
125 if (((DataSource) dataSource).getDeviceId().equals(correlationDataSource.getDeviceID()) && dataSource.getName().equals(correlationDataSource.getName())) {
134 throw new AutopsyServiceException(
"Failed to update data sources in the Central Repository for schema v1.2", ex);
volatile boolean cancelRequested
ProgressIndicator getProgressIndicator()
static void upgradeDatabase()
void dataUpgradeForVersion1dot2(Case currentCase)
void closeCaseResources(CaseContext context)
CaseEventListener caseEventListener
void openCaseResources(CaseContext context)
static CentralRepository getInstance()
CorrelationCase getCase(Case autopsyCase)
void addDataSourceObjectId(int rowId, long dataSourceObjectId)
List< CorrelationDataSource > getDataSources()
static boolean isEnabled()
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.