19 package org.sleuthkit.autopsy.centralrepository.datamodel;
21 import org.openide.util.NbBundle;
22 import org.openide.util.lookup.ServiceProvider;
33 @ServiceProvider(service = AutopsyService.class)
38 "CentralRepositoryService.serviceName=Central Repository Service"
41 return Bundle.CentralRepositoryService_serviceName();
45 "CentralRepositoryService.progressMsg.updatingSchema=Updating schema...",
46 "CentralRepositoryService.progressMsg.updatingDataSourcesTable=Checking for v1.2 data updates...",})
54 progress.
progress(Bundle.CentralRepositoryService_progressMsg_updatingSchema());
61 progress.
progress(Bundle.CentralRepositoryService_progressMsg_updatingDataSourcesTable());
62 dataUpgradeForVersion1dot2(context.
getCase());
74 throw new AutopsyServiceException(
"Failed to update the Central Repository schema", ex);
94 if (correlationCase != null) {
100 if (correlationDataSource.getCaseID() == correlationCase.
getID() && correlationDataSource.getDataSourceObjectID() == 0) {
101 for (Content dataSource : currentCase.getDataSources()) {
102 if (((DataSource) dataSource).getDeviceId().equals(correlationDataSource.getDeviceID()) && dataSource.getName().equals(correlationDataSource.getName())) {
111 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)
ProgressIndicator getProgressIndicator()
volatile boolean cancelRequested
static CentralRepository getInstance()
void progress(String message)
void openCaseResources(CaseContext context)
static boolean isEnabled()
List< CorrelationDataSource > getDataSources()