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.modules.ModuleInstall;
27 import org.openide.util.NbBundle;
56 if (instance == null) {
92 String initializedStr = centralRepoSettings.get(
"initialized");
95 boolean initialized = Boolean.parseBoolean(initializedStr);
99 boolean prevRepo = Boolean.parseBoolean(centralRepoSettings.get(
"db.useCentralRepo"));
124 logger.log(Level.SEVERE,
"There was an error while initializing the central repository database", ex);
138 @NbBundle.Messages({
"Installer.centralRepoUpgradeFailed.title=Central repository disabled"})
142 SwingUtilities.invokeAndWait(() -> {
143 JOptionPane.showMessageDialog(null,
145 NbBundle.getMessage(this.getClass(),
"Installer.centralRepoUpgradeFailed.title"),
146 JOptionPane.ERROR_MESSAGE);
148 }
catch (InterruptedException | InvocationTargetException e) {
149 logger.log(Level.WARNING, e.getMessage(), e);
void setupDefaultSqliteDb()
static final long serialVersionUID
static boolean runningWithGUI
static final Logger logger
static Installer instance
void setupDefaultCentralRepository()
static boolean getIsMultiUserModeEnabled()
static synchronized Installer getDefault()
static synchronized void setConfigSetting(String moduleName, String settingName, String settingVal)
void doMessageBoxIfRunningInGUI(CentralRepoException ex)
synchronized static Logger getLogger(String name)
static synchronized Map< String, String > getConfigSettings(String moduleName)
void setupPostgresDb(CentralRepoDbChoice choice)