19 package org.sleuthkit.autopsy.centralrepository.datamodel;
21 import org.openide.util.NbBundle;
22 import org.openide.util.lookup.ServiceProvider;
35 @ServiceProvider(service = AutopsyService.class)
43 "CentralRepositoryService.serviceName=Central Repository Service"
46 return Bundle.CentralRepositoryService_serviceName();
50 "CentralRepositoryService.progressMsg.updatingSchema=Checking for schema updates..."
59 progress.
progress(Bundle.CentralRepositoryService_progressMsg_updatingSchema());
66 dataUpgradeForVersion1dot2(context.
getCase());
69 caseEventListener.installListeners();
77 "CentralRepositoryService.progressMsg.waitingForListeners=Finishing adding data to central repository database...."
82 progress.
progress(Bundle.CentralRepositoryService_progressMsg_waitingForListeners());
84 if (caseEventListener != null) {
89 if (ingestEventListener != null) {
104 throw new AutopsyServiceException(
"Failed to update the Central Repository schema", ex);
124 if (correlationCase != null) {
130 if (correlationDataSource.getCaseID() == correlationCase.
getID() && correlationDataSource.getDataSourceObjectID() == 0) {
131 for (Content dataSource : currentCase.getDataSources()) {
132 if (((DataSource) dataSource).getDeviceId().equals(correlationDataSource.getDeviceID()) && dataSource.getName().equals(correlationDataSource.getName())) {
141 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)
void uninstallListeners()
void uninstallListeners()
ProgressIndicator getProgressIndicator()
volatile boolean cancelRequested
static CentralRepository getInstance()
void progress(String message)
void openCaseResources(CaseContext context)
static boolean isEnabled()
List< CorrelationDataSource > getDataSources()