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..."
54 progress.
progress(Bundle.CentralRepositoryService_progressMsg_updatingSchema());
61 dataUpgradeForVersion1dot2(context.
getCase());
73 throw new AutopsyServiceException(
"Failed to update the Central Repository schema", ex);
93 if (correlationCase != null) {
99 if (correlationDataSource.getCaseID() == correlationCase.
getID() && correlationDataSource.getDataSourceObjectID() == 0) {
100 for (Content dataSource : currentCase.getDataSources()) {
101 if (((DataSource) dataSource).getDeviceId().equals(correlationDataSource.getDeviceID()) && dataSource.getName().equals(correlationDataSource.getName())) {
110 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()