Autopsy
4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Static Public Member Functions | |
static boolean | configExists (String moduleName) |
static String | getConfigSetting (String moduleName, String settingName) |
static Map< String, String > | getConfigSettings (String moduleName) |
static File | getPropertyFile (String moduleName) |
static boolean | makeConfigFile (String moduleName) |
static synchronized void | removeProperty (String moduleName, String key) |
static synchronized void | setConfigSetting (String moduleName, String settingName, String settingVal) |
static synchronized void | setConfigSettings (String moduleName, Map< String, String > settings) |
static boolean | settingExists (String moduleName, String settingName) |
Static Public Attributes | |
static final String | CURRENT_CASE_TYPE = "Current_Case_Type" |
static final String | DEFAULT_CONTEXT = "GeneralContext" |
static final String | MAIN_SETTINGS = "Case" |
Private Member Functions | |
ModuleSettings () | |
Static Private Member Functions | |
static Properties | fetchProperties (String moduleName) throws IOException |
static String | getPropertyPath (String moduleName) |
Static Private Attributes | |
static final String | moduleDirPath = PlatformUtil.getUserConfigDirectory() |
This class contains the framework to read, add, update, and remove from the property files located at USERDIR%/Config/x.properties
Definition at line 36 of file ModuleSettings.java.
|
private |
the constructor
Definition at line 47 of file ModuleSettings.java.
|
static |
Determines if a given properties file exists or not.
moduleName | - The name of the config file to evaluate |
Definition at line 88 of file ModuleSettings.java.
Referenced by org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSetting(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSettings(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getPropertyPath(), org.sleuthkit.autopsy.coreutils.ModuleSettings.makeConfigFile(), org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSetting(), org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSettings(), org.sleuthkit.autopsy.corecomponents.Installer.setModuleSettings(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.settingExists().
|
staticprivate |
Returns the properties file as specified by moduleName.
moduleName |
IOException |
Definition at line 268 of file ModuleSettings.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.getPropertyPath().
Referenced by org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSetting(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSettings(), org.sleuthkit.autopsy.coreutils.ModuleSettings.removeProperty(), org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSetting(), org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSettings(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.settingExists().
|
static |
Returns the given properties file's setting as specific by settingName.
moduleName | - The name of the config file to read from. |
settingName | - The setting name to retrieve. |
IOException |
Definition at line 132 of file ModuleSettings.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.configExists(), org.sleuthkit.autopsy.coreutils.ModuleSettings.fetchProperties(), org.sleuthkit.autopsy.coreutils.Logger.getLogger(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.makeConfigFile().
Referenced by org.sleuthkit.autopsy.casemodule.CaseOpenAction.CaseOpenAction(), org.sleuthkit.autopsy.report.ReportBranding.getAgencyLogoPath(), org.sleuthkit.autopsy.ingest.runIngestModuleWizard.IngestProfileSelectionWizardPanel.getComponent(), org.sleuthkit.autopsy.ingest.IngestServices.getConfigSetting(), org.sleuthkit.autopsy.ingest.IngestProfiles.getIngestProfiles(), org.sleuthkit.autopsy.core.UserPreferences.getMode(), org.sleuthkit.autopsy.ingest.IngestJobSettings.getModulesNames(), org.sleuthkit.autopsy.report.ReportBranding.getReportFooter(), org.sleuthkit.autopsy.report.ReportBranding.getReportTitle(), org.sleuthkit.autopsy.keywordsearch.Server.initSettings(), org.sleuthkit.autopsy.ingest.IngestJobSettings.load(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.loadSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.loadSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.loadSettings(), org.sleuthkit.autopsy.timeline.OpenTimelineAction.performAction(), org.sleuthkit.autopsy.casemodule.ImageFilePanel.readSettings(), org.sleuthkit.autopsy.coreutils.ModuleSettings.removeProperty(), org.sleuthkit.autopsy.modules.stix.STIXReportModuleConfigPanel.STIXReportModuleConfigPanel(), org.sleuthkit.autopsy.core.Installer.updateConfig(), and org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.useCentralRepo().
|
static |
Returns the given properties file's map of settings.
moduleName | - the name of the config file to read from. |
IOException |
Definition at line 159 of file ModuleSettings.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.configExists(), org.sleuthkit.autopsy.coreutils.ModuleSettings.fetchProperties(), org.sleuthkit.autopsy.coreutils.Logger.getLogger(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.makeConfigFile().
Referenced by org.sleuthkit.autopsy.ingest.IngestServices.getConfigSettings().
|
static |
Gets the property file as specified.
moduleName |
Definition at line 283 of file ModuleSettings.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.getPropertyPath().
|
staticprivate |
Returns the path of the given properties file.
moduleName | - The name of the config file to evaluate |
Definition at line 114 of file ModuleSettings.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.configExists().
Referenced by org.sleuthkit.autopsy.coreutils.ModuleSettings.fetchProperties(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getPropertyFile(), org.sleuthkit.autopsy.coreutils.ModuleSettings.removeProperty(), org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSetting(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSettings().
|
static |
Makes a new config file of the specified name. Do not include the extension.
moduleName | - The name of the config file to make |
Definition at line 59 of file ModuleSettings.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.configExists(), and org.sleuthkit.autopsy.coreutils.Logger.getLogger().
Referenced by org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSetting(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSettings(), org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSetting(), org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSettings(), and org.sleuthkit.autopsy.corecomponents.Installer.setModuleSettings().
|
static |
Removes the given key from the given properties file.
moduleName | - The name of the properties file to be modified. |
key | - the name of the key to remove. |
Definition at line 243 of file ModuleSettings.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.fetchProperties(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSetting(), org.sleuthkit.autopsy.coreutils.Logger.getLogger(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.getPropertyPath().
|
static |
Sets the given properties file to the given settings.
moduleName | - The name of the module to be written to. |
settingName | - The name of the setting to be modified. |
settingVal | - the value to set the setting to. |
Definition at line 217 of file ModuleSettings.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.configExists(), org.sleuthkit.autopsy.coreutils.ModuleSettings.fetchProperties(), org.sleuthkit.autopsy.coreutils.Logger.getLogger(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getPropertyPath(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.makeConfigFile().
Referenced by org.sleuthkit.autopsy.modules.stix.STIXReportModule.generateReport(), org.sleuthkit.autopsy.ingest.IngestJobSettings.getModulesNames(), org.sleuthkit.autopsy.report.ReportBranding.getReportFooter(), org.sleuthkit.autopsy.report.ReportBranding.getReportTitle(), org.sleuthkit.autopsy.keywordsearch.Server.initSettings(), org.sleuthkit.autopsy.modules.stix.STIXReportModuleConfigPanel.jCheckBox1ActionPerformed(), org.sleuthkit.autopsy.ingest.IngestJobSettings.load(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbPlatformEnum.saveSelectedPlatform(), org.sleuthkit.autopsy.centralrepository.datamodel.SqliteEamDbSettings.saveSettings(), org.sleuthkit.autopsy.centralrepository.datamodel.PostgresEamDbSettings.saveSettings(), org.sleuthkit.autopsy.report.ReportBranding.setAgencyLogoPath(), org.sleuthkit.autopsy.ingest.IngestServices.setConfigSetting(), org.sleuthkit.autopsy.core.UserPreferences.setMode(), org.sleuthkit.autopsy.corecomponents.Installer.setModuleSettings(), org.sleuthkit.autopsy.report.ReportBranding.setReportFooter(), org.sleuthkit.autopsy.report.ReportBranding.setReportTitle(), org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.setUseCentralRepo(), org.sleuthkit.autopsy.ingest.IngestJobSettings.store(), org.sleuthkit.autopsy.ingest.runIngestModuleWizard.IngestProfileSelectionWizardPanel.storeSettings(), org.sleuthkit.autopsy.casemodule.ImageFilePanel.storeSettings(), and org.sleuthkit.autopsy.core.Installer.updateConfig().
|
static |
Sets the given properties file to the given setting map.
moduleName | - The name of the module to be written to. |
settings | - The mapping of all key:value pairs of settings to add to the config. |
Definition at line 189 of file ModuleSettings.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.configExists(), org.sleuthkit.autopsy.coreutils.ModuleSettings.fetchProperties(), org.sleuthkit.autopsy.coreutils.Logger.getLogger(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getPropertyPath(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.makeConfigFile().
Referenced by org.sleuthkit.autopsy.ingest.IngestServices.setConfigSettings().
|
static |
Definition at line 93 of file ModuleSettings.java.
References org.sleuthkit.autopsy.coreutils.ModuleSettings.configExists(), and org.sleuthkit.autopsy.coreutils.ModuleSettings.fetchProperties().
Referenced by org.sleuthkit.autopsy.core.UserPreferences.getMode(), org.sleuthkit.autopsy.ingest.IngestJobSettings.getModulesNames(), org.sleuthkit.autopsy.keywordsearch.Server.initSettings(), and org.sleuthkit.autopsy.ingest.IngestJobSettings.load().
|
static |
Definition at line 42 of file ModuleSettings.java.
|
static |
Definition at line 40 of file ModuleSettings.java.
|
static |
Definition at line 41 of file ModuleSettings.java.
Referenced by org.sleuthkit.autopsy.casemodule.CaseOpenAction.CaseOpenAction().
|
staticprivate |
Definition at line 39 of file ModuleSettings.java.
Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.