Autopsy  4.10.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.report.caseuco.CaseUcoFormatExporter Class Reference

Static Public Member Functions

static void generateReport (Long selectedDataSourceId, String reportOutputPath, ReportProgressPanel progressPanel)
 

Private Member Functions

 CaseUcoFormatExporter ()
 

Static Private Member Functions

static void finilizeJsonOutputFile (JsonGenerator catalog) throws IOException
 
static void initializeJsonOutputFile (JsonGenerator catalog) throws IOException
 
static String saveCaseInfo (SleuthkitCase skCase, JsonGenerator catalog) throws TskCoreException, SQLException, IOException, NoCurrentCaseException
 
static String saveDataSourceInCaseUcoFormat (JsonGenerator catalog, String imageName, Long imageSize, Long selectedDataSourceId, String caseTraceId) throws IOException
 
static String saveDataSourceInfo (Long selectedDataSourceId, String caseTraceId, SleuthkitCase skCase, JsonGenerator jsonGenerator) throws TskCoreException, SQLException, IOException
 
static void saveFileInCaseUcoFormat (Long objectId, String fileName, String parent_path, String md5Hash, String mime_type, long size, String ctime, String atime, String mtime, String extension, JsonGenerator catalog, String dataSourceTraceId) throws IOException
 

Static Private Attributes

static final Logger logger = Logger.getLogger(CaseUcoFormatExporter.class.getName())
 

Detailed Description

Generates CASE-UCO report file for a data source

Definition at line 48 of file CaseUcoFormatExporter.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.CaseUcoFormatExporter ( )
private

Definition at line 52 of file CaseUcoFormatExporter.java.

Member Function Documentation

static void org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.finilizeJsonOutputFile ( JsonGenerator  catalog) throws IOException
staticprivate
static void org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.generateReport ( Long  selectedDataSourceId,
String  reportOutputPath,
ReportProgressPanel  progressPanel 
)
static

Generates CASE-UCO report for the selected data source.

Parameters
selectedDataSourceIdObject ID of the data source
reportOutputPathFull path to directory where to save CASE-UCO report file
progressPanelReportProgressPanel to update progress

Definition at line 73 of file CaseUcoFormatExporter.java.

References org.sleuthkit.autopsy.casemodule.Case.addReport(), org.sleuthkit.autopsy.report.ReportProgressPanel.ReportStatus.CANCELED, org.sleuthkit.autopsy.report.ReportProgressPanel.ReportStatus.COMPLETE, org.sleuthkit.autopsy.report.ReportProgressPanel.complete(), org.sleuthkit.autopsy.report.ReportProgressPanel.ReportStatus.ERROR, org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Message.error(), org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.finilizeJsonOutputFile(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.ingest.IngestManager.getInstance(), org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase(), org.sleuthkit.autopsy.report.ReportProgressPanel.getStatus(), org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTimeISO8601(), org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.initializeJsonOutputFile(), org.sleuthkit.autopsy.ingest.IngestManager.isIngestRunning(), org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.saveCaseInfo(), org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.saveDataSourceInfo(), org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.saveFileInCaseUcoFormat(), org.sleuthkit.autopsy.report.ReportProgressPanel.setIndeterminate(), org.sleuthkit.autopsy.report.ReportProgressPanel.start(), org.sleuthkit.autopsy.report.ReportProgressPanel.updateStatusLabel(), and org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Message.warn().

Referenced by org.sleuthkit.autopsy.report.caseuco.ReportCaseUco.generateReport(), and org.sleuthkit.autopsy.commandlineingest.CommandLineIngestManager.JobProcessingTask.run().

static void org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.initializeJsonOutputFile ( JsonGenerator  catalog) throws IOException
staticprivate
static String org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.saveCaseInfo ( SleuthkitCase  skCase,
JsonGenerator  catalog 
) throws TskCoreException, SQLException, IOException, NoCurrentCaseException
staticprivate

Save info about the Autopsy case in CASE-UCo format

Parameters
skCaseSleuthkitCase object
catalogJsonGenerator object
Returns
CASE-UCO trace ID object for the Autopsy case entry
Exceptions
TskCoreException
SQLException
IOException
NoCurrentCaseException

Definition at line 202 of file CaseUcoFormatExporter.java.

References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getName().

Referenced by org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.generateReport().

static String org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.saveDataSourceInCaseUcoFormat ( JsonGenerator  catalog,
String  imageName,
Long  imageSize,
Long  selectedDataSourceId,
String  caseTraceId 
) throws IOException
staticprivate
static String org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.saveDataSourceInfo ( Long  selectedDataSourceId,
String  caseTraceId,
SleuthkitCase  skCase,
JsonGenerator  jsonGenerator 
) throws TskCoreException, SQLException, IOException
staticprivate

Save info about the data source in CASE-UCo format

Parameters
selectedDataSourceIdObject ID of the data source
caseTraceIdCASE-UCO trace ID object for the Autopsy case entry
skCaseSleuthkitCase object
catalogJsonGenerator object
Returns
Exceptions
TskCoreException
SQLException
IOException

Definition at line 257 of file CaseUcoFormatExporter.java.

References org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.saveDataSourceInCaseUcoFormat().

Referenced by org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.generateReport().

static void org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.saveFileInCaseUcoFormat ( Long  objectId,
String  fileName,
String  parent_path,
String  md5Hash,
String  mime_type,
long  size,
String  ctime,
String  atime,
String  mtime,
String  extension,
JsonGenerator  catalog,
String  dataSourceTraceId 
) throws IOException
staticprivate

Member Data Documentation

final Logger org.sleuthkit.autopsy.report.caseuco.CaseUcoFormatExporter.logger = Logger.getLogger(CaseUcoFormatExporter.class.getName())
staticprivate

Definition at line 50 of file CaseUcoFormatExporter.java.


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

Copyright © 2012-2018 Basis Technology. Generated on: Fri Mar 22 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.