Autopsy
4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits ModuleInstall.
Public Member Functions | |
void | restored () |
void | uninstalled () |
Static Public Member Functions | |
static synchronized Installer | getDefault () |
Private Member Functions | |
Installer () | |
void | doMessageBoxIfRunningInGUI (CentralRepoException ex) |
String | getSettingsFilePath (String moduleName) |
void | setupDefaultCentralRepository () |
void | upgradeSettingsPath () |
Static Private Attributes | |
static Installer | instance |
static final String | LEGACY_DEFAULT_DB_PARENT_PATH = Paths.get(PlatformUtil.getUserDirectory().getAbsolutePath(), LEGACY_DEFAULT_FOLDER).toAbsolutePath().toString() |
static final String | LEGACY_DEFAULT_FOLDER = "central_repository" |
static final String | LEGACY_MODULE_SETTINGS_KEY = "CentralRepository" |
static final Logger | logger = Logger.getLogger(Installer.class.getName()) |
static final long | serialVersionUID = 1L |
Sets up a default, single-user SQLite central repository if no central repository is configured, and updates the central repository schema as required.
Definition at line 47 of file Installer.java.
|
private |
Constructs the singleton "package installer" used by the registered Installer for the Autopsy-Core module located in the org.sleuthkit.autopsy.core package.
Definition at line 77 of file Installer.java.
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.getDefault().
|
private |
Display a central repository exception in a message box if running with a GUI.
ex | The exception. |
Definition at line 209 of file Installer.java.
References org.sleuthkit.autopsy.exceptions.AutopsyException.getUserMessage(), and org.sleuthkit.autopsy.core.RuntimeProperties.runningWithGUI.
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.setupDefaultCentralRepository().
|
static |
Gets the singleton "package installer" used by the registered Installer for the Autopsy-Core module located in the org.sleuthkit.autopsy.core package.
Definition at line 65 of file Installer.java.
References org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.Installer(), and org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.instance.
Referenced by org.sleuthkit.autopsy.core.Installer.Installer().
|
private |
Path to module settings path.
moduleName | The full name of the module provided to ModuleSettings. |
Definition at line 106 of file Installer.java.
References org.sleuthkit.autopsy.coreutils.PlatformUtil.getUserConfigDirectory().
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.upgradeSettingsPath().
void org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.restored | ( | ) |
|
private |
Checks if the central repository has been set up and configured. If not, does the set up unconditionally. If the application is running with a GUI, a notification will be displayed to the user if the mode is RELEASE (in other words, developers are exempt from seeing the notification).
Definition at line 160 of file Installer.java.
References org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.doMessageBoxIfRunningInGUI(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSettings(), org.sleuthkit.autopsy.centralrepository.CentralRepoSettings.getInstance(), org.sleuthkit.autopsy.core.UserPreferences.getIsMultiUserModeEnabled(), org.sleuthkit.autopsy.centralrepository.CentralRepoSettings.getModuleSettingsKey(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbChoice.POSTGRESQL_MULTIUSER, org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSetting(), org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setupDefaultSqliteDb(), and org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoDbManager.setupPostgresDb().
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.restored().
void org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.uninstalled | ( | ) |
Definition at line 225 of file Installer.java.
|
private |
Copies settings to new path location.
Definition at line 113 of file Installer.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSettings(), org.sleuthkit.autopsy.centralrepository.CentralRepoSettings.getDatabaseNameKey(), org.sleuthkit.autopsy.centralrepository.CentralRepoSettings.getDatabasePathKey(), org.sleuthkit.autopsy.centralrepository.CentralRepoSettings.getDefaultDbPath(), org.sleuthkit.autopsy.centralrepository.CentralRepoSettings.getInstance(), org.sleuthkit.autopsy.centralrepository.CentralRepoSettings.getModuleSettingsKey(), org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.getSettingsFilePath(), org.sleuthkit.autopsy.coreutils.PlatformUtil.getUserDirectory(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSettings().
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.restored().
|
staticprivate |
Definition at line 55 of file Installer.java.
Referenced by org.sleuthkit.autopsy.centralrepository.eventlisteners.Installer.getDefault().
|
staticprivate |
Definition at line 50 of file Installer.java.
|
staticprivate |
Definition at line 49 of file Installer.java.
|
staticprivate |
Definition at line 51 of file Installer.java.
|
staticprivate |
Definition at line 53 of file Installer.java.
|
staticprivate |
Definition at line 54 of file Installer.java.
Copyright © 2012-2022 Basis Technology. Generated on: Tue May 30 2023
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.