19 package org.sleuthkit.autopsy.centralrepository.eventlisteners;
21 import java.lang.reflect.InvocationTargetException;
23 import java.util.logging.Level;
24 import javax.swing.JOptionPane;
25 import javax.swing.SwingUtilities;
26 import org.openide.util.NbBundle;
60 String initializedStr = centralRepoSettings.get(
"initialized");
63 boolean initialized = Boolean.parseBoolean(initializedStr);
67 boolean prevRepo = Boolean.parseBoolean(centralRepoSettings.get(
"db.useCentralRepo"));
88 logger.log(Level.SEVERE,
"There was an error while initializing the central repository database", ex);
103 @NbBundle.Messages({
"Installer.centralRepoUpgradeFailed.title=Central repository disabled"})
107 SwingUtilities.invokeAndWait(() -> {
108 JOptionPane.showMessageDialog(null,
110 NbBundle.getMessage(this.getClass(),
"Installer.centralRepoUpgradeFailed.title"),
111 JOptionPane.ERROR_MESSAGE);
113 }
catch (InterruptedException | InvocationTargetException e) {
114 logger.log(Level.WARNING, e.getMessage(), e);
void setupDefaultSqliteDb()
static final Logger logger
static boolean runningWithGUI
static boolean getIsMultiUserModeEnabled()
static synchronized void setConfigSetting(String moduleName, String settingName, String settingVal)
static final CRDefaultSetupAction INSTANCE
boolean setupDefaultCentralRepository()
static CRDefaultSetupAction getInstance()
String getModuleSettingsKey()
synchronized static Logger getLogger(String name)
static CentralRepoSettings getInstance()
void doMessageBoxIfRunningInGUI(CentralRepoException ex)
static synchronized Map< String, String > getConfigSettings(String moduleName)
void setupPostgresDb(CentralRepoDbChoice choice)