19 package org.sleuthkit.autopsy.centralrepository.datamodel;
21 import org.openide.util.NbBundle;
22 import org.openide.util.lookup.ServiceProvider;
34 @ServiceProvider(service = AutopsyService.class)
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());
64 dataUpgradeForVersion1dot2(context.
getCase());
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());
81 if (caseEventListener != null) {
96 throw new AutopsyServiceException(
"Failed to update the Central Repository schema", ex);
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);
void dataUpgradeForVersion1dot2(Case currentCase)
CorrelationCase getCase(Case autopsyCase)
static void upgradeDatabase()
void addDataSourceObjectId(int rowId, long dataSourceObjectId)
void closeCaseResources(CaseContext context)
ProgressIndicator getProgressIndicator()
volatile boolean cancelRequested
static CentralRepository getInstance()
void progress(String message)
void openCaseResources(CaseContext context)
static boolean isEnabled()
List< CorrelationDataSource > getDataSources()