Autopsy
4.19.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Classes | |
enum | TempDirChoice |
Static Public Member Functions | |
static String | getCustomTempDirectory () |
static TempDirChoice | getTempDirChoice () |
static void | setCustomTempDirectory (String path) throws UserMachinePreferencesException |
static void | setTempDirChoice (TempDirChoice tempDirChoice) throws UserMachinePreferencesException |
Private Member Functions | |
UserMachinePreferences () | |
Static Private Member Functions | |
static boolean | validateTempDirectory (String path) throws UserMachinePreferencesException |
Static Private Attributes | |
static final String | CUSTOM_TEMP_DIR_KEY = "TempDirectory" |
static final TempDirChoice | DEFAULT_CHOICE = TempDirChoice.SYSTEM |
static final Logger | logger = Logger.getLogger(UserMachinePreferences.class.getName()) |
static final Preferences | preferences = NbPreferences.forModule(UserMachinePreferences.class) |
static final String | TEMP_DIR_CHOICE_KEY = "TempDirChoice" |
Provides case-specific settings like the user-specified temp folder.
NOTE: The Case class also handles providing a temp directory. When altering code in this class, also look at the Case class as well.
Definition at line 38 of file UserMachinePreferences.java.
|
private |
Definition at line 164 of file UserMachinePreferences.java.
|
static |
Definition at line 87 of file UserMachinePreferences.java.
Referenced by org.sleuthkit.autopsy.core.UserPreferences.getAppTempDirectory(), and org.sleuthkit.autopsy.casemodule.Case.getTempDirectory().
|
static |
Definition at line 144 of file UserMachinePreferences.java.
References org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.TempDirChoice.getValue().
Referenced by org.sleuthkit.autopsy.core.UserPreferences.getAppTempDirectory(), and org.sleuthkit.autopsy.casemodule.Case.getTempDirectory().
|
static |
Sets the base user-specified temporary directory.
path | The path to the directory. |
UserMachinePreferencesException | If the directory cannot be accessed or created. |
Definition at line 134 of file UserMachinePreferences.java.
References org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.validateTempDirectory().
|
static |
Sets the temp directory choice (i.e. system, case, custom).
tempDirChoice | The choice (must be non-null). |
UserMachinePreferencesException |
Definition at line 156 of file UserMachinePreferences.java.
|
staticprivate |
Checks to see if temporary directory location can be created and is read/write.
path | The location. |
UserMachinePreferencesException | If path could not be validated due to mkdirs failure or the directory is not read/write. |
Definition at line 109 of file UserMachinePreferences.java.
References org.sleuthkit.autopsy.coreutils.FileUtil.hasReadWriteAccess().
Referenced by org.sleuthkit.autopsy.machinesettings.UserMachinePreferences.setCustomTempDirectory().
|
staticprivate |
Definition at line 79 of file UserMachinePreferences.java.
|
staticprivate |
Definition at line 82 of file UserMachinePreferences.java.
|
staticprivate |
Definition at line 40 of file UserMachinePreferences.java.
|
staticprivate |
Definition at line 41 of file UserMachinePreferences.java.
|
staticprivate |
Definition at line 80 of file UserMachinePreferences.java.
Copyright © 2012-2021 Basis Technology. Generated on: Fri Aug 6 2021
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.