Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.machinesettings.UserMachinePreferences Class Reference

Static Public Member Functions

static String getBaseTempDirectory ()
static void setBaseTempDirectory (String path) throws UserMachinePreferencesException

Private Member Functions

 UserMachinePreferences ()

Static Private Member Functions

static String getDefaultTempDirectory ()
static boolean validateTempDirectory (String path) throws UserMachinePreferencesException

Static Private Attributes

static final Preferences preferences = NbPreferences.forModule(UserMachinePreferences.class)
static final String TEMP_DIR_KEY = "TempDirectory"

Detailed Description

Provides case-specific settings like the user-specified temp folder.

Definition at line 32 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.UserMachinePreferences ( )

Definition at line 106 of file

Member Function Documentation

static String org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.getBaseTempDirectory ( )

Retrieves the base user-specified temporary directory.

The base user-specified temporary directory.

Definition at line 53 of file

References org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.getDefaultTempDirectory().

Referenced by org.sleuthkit.autopsy.core.UserPreferences.getAppTempDirectory().

static String org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.getDefaultTempDirectory ( )

Retrieves a default temporary directory that is a subdirectory of

The absolute path to the temp directory.

Definition at line 44 of file

Referenced by org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.getBaseTempDirectory().

static void org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.setBaseTempDirectory ( String  path) throws UserMachinePreferencesException

Sets the base user-specified temporary directory.

pathThe path to the directory.
UserMachinePreferencesExceptionIf the directory cannot be accessed or created.

Definition at line 101 of file

References org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.validateTempDirectory().

static boolean org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.validateTempDirectory ( String  path) throws UserMachinePreferencesException

Checks to see if temporary directory location can be created and is read/write.

pathThe location.
True if this is a valid location for a temp directory.
UserMachinePreferencesExceptionIf path could not be validated due to mkdirs failure or the directory is not read/write.

Definition at line 76 of file

References org.sleuthkit.autopsy.coreutils.FileUtil.hasReadWriteAccess().

Referenced by org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.setBaseTempDirectory().

Member Data Documentation

final Preferences org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.preferences = NbPreferences.forModule(UserMachinePreferences.class)

Definition at line 34 of file

final String org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.TEMP_DIR_KEY = "TempDirectory"

Definition at line 36 of file

The documentation for this class was generated from the following file:

Copyright © 2012-2020 Basis Technology. Generated on: Tue Sep 22 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.