Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper Class Reference

Classes

class  FileExtracter
 
class  FileExtractionTask
 
class  UIExtractionVisitor
 

Public Member Functions

void extract (ActionEvent event, Collection<?extends AbstractFile > selectedFiles)
 

Private Member Functions

void extractFile (ActionEvent event, AbstractFile selectedFile)
 
void extractFiles (ActionEvent event, Collection<?extends AbstractFile > selectedFiles)
 
String getExportDirectory (Case openCase)
 
void runExtractionTasks (ActionEvent event, List< FileExtractionTask > fileExtractionTasks, String destName)
 
void updateExportDirectory (String exportPath, Case openCase)
 

Private Attributes

final JFileChooserFactory extractFileHelper = new JFileChooserFactory()
 
final JFileChooserFactory extractFilesHelper = new JFileChooserFactory()
 
final Logger logger = Logger.getLogger(ExtractActionHelper.class.getName())
 
String userDefinedExportPath
 

Detailed Description

Helper class for methods needed by actions which extract files.

Definition at line 55 of file ExtractActionHelper.java.

Member Function Documentation

void org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.extract ( ActionEvent  event,
Collection<?extends AbstractFile >  selectedFiles 
)

Extract the specified collection of files with an event specified for context.

Parameters
eventThe event that caused the extract method to be called.
selectedFilesThe files to be extracted from the current case.

Definition at line 71 of file ExtractActionHelper.java.

References org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.extractFile(), and org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.extractFiles().

Referenced by org.sleuthkit.autopsy.directorytree.ExtractAction.actionPerformed(), and org.sleuthkit.autopsy.discovery.ui.ArtifactMenuMouseAdapter.ExtractFileAction.actionPerformed().

void org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.extractFile ( ActionEvent  event,
AbstractFile  selectedFile 
)
private
void org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.extractFiles ( ActionEvent  event,
Collection<?extends AbstractFile >  selectedFiles 
)
private
String org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.getExportDirectory ( Case  openCase)
private
void org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.runExtractionTasks ( ActionEvent  event,
List< FileExtractionTask fileExtractionTasks,
String  destName 
)
private

Execute a series of file extraction tasks.

Parameters
eventActionEvent whose source will be used for centering popup dialogs.
fileExtractionTasksList of file extraction tasks.
destNameName of the destination used for progress messages.

Definition at line 210 of file ExtractActionHelper.java.

References org.sleuthkit.autopsy.coreutils.FileUtil.deleteFileDir(), org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Message.info(), and org.sleuthkit.autopsy.datamodel.ContentUtils.isDotDirectory().

Referenced by org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.extractFile(), and org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.extractFiles().

void org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.updateExportDirectory ( String  exportPath,
Case  openCase 
)
private

Update the default export directory. If the directory path matches the case export directory, then the directory used will always match the export directory of any given case. Otherwise, the path last used will be saved.

Parameters
exportPathThe export path.
openCaseThe current case.

Definition at line 193 of file ExtractActionHelper.java.

References org.sleuthkit.autopsy.casemodule.Case.getExportDirectory().

Referenced by org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.extractFile(), and org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.extractFiles().

Member Data Documentation

final JFileChooserFactory org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.extractFileHelper = new JFileChooserFactory()
private

Definition at line 60 of file ExtractActionHelper.java.

final JFileChooserFactory org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.extractFilesHelper = new JFileChooserFactory()
private

Definition at line 61 of file ExtractActionHelper.java.

final Logger org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.logger = Logger.getLogger(ExtractActionHelper.class.getName())
private

Definition at line 57 of file ExtractActionHelper.java.

String org.sleuthkit.autopsy.directorytree.actionhelpers.ExtractActionHelper.userDefinedExportPath
private

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

Copyright © 2012-2022 Basis Technology. Generated on: Wed Oct 5 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.