mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-03 07:49:52 +00:00
Removed extra method from FileReport interface. Added additional File Report Information
This commit is contained in:
@@ -83,6 +83,18 @@ public enum FILE_REPORT_INFO {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
},
|
||||
PERMISSIONS("Permissions") {
|
||||
@Override
|
||||
public String getValue(AbstractFile file) {
|
||||
return file.getModesAsString();
|
||||
}
|
||||
},
|
||||
ADDRESS("Address") {
|
||||
@Override
|
||||
public String getValue(AbstractFile file) {
|
||||
return String.valueOf(file.getMetaAddr());
|
||||
}
|
||||
};
|
||||
|
||||
private String name;
|
||||
|
||||
@@ -27,9 +27,6 @@ import org.sleuthkit.datamodel.AbstractFile;
|
||||
* @author jwallace
|
||||
*/
|
||||
public interface FileReportModule extends ReportModule {
|
||||
|
||||
public void generateReport(String reportPath, ReportProgressPanel progress, List<FILE_REPORT_INFO> enabled);
|
||||
|
||||
/**
|
||||
* Initialize the report which will be stored at the given path.
|
||||
* @param path
|
||||
|
||||
@@ -139,31 +139,4 @@ public class FileReportText implements FileReportModule {
|
||||
public String getFilePath() {
|
||||
return "report.txt";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generateReport(String reportPath, ReportProgressPanel progress, List<FILE_REPORT_INFO> enabled) {
|
||||
progress.setIndeterminate(false);
|
||||
progress.start();
|
||||
progress.updateStatusLabel("querying database");
|
||||
List<AbstractFile> absFiles;
|
||||
try {
|
||||
SleuthkitCase skCase = Case.getCurrentCase().getSleuthkitCase();
|
||||
absFiles = skCase.findAllFilesWhere("NOT meta_type = 2");
|
||||
} catch (TskCoreException ex) {
|
||||
Exceptions.printStackTrace(ex);
|
||||
return;
|
||||
}
|
||||
progress.setMaximumProgress(absFiles.size());
|
||||
startReport(reportPath);
|
||||
startTable(enabled);
|
||||
for (AbstractFile file: absFiles) {
|
||||
progress.increment();
|
||||
progress.updateStatusLabel("Now processing " + file.getName());
|
||||
addRow(file, enabled);
|
||||
}
|
||||
endTable();
|
||||
endReport();
|
||||
progress.complete();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user