Autopsy  4.13.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
CaseUcoReport.java
Go to the documentation of this file.
1 /*
2  *
3  * Autopsy Forensic Browser
4  *
5  * Copyright 2018-2019 Basis Technology Corp.
6  * Project Contact/Architect: carrier <at> sleuthkit <dot> org
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 package org.sleuthkit.autopsy.report.modules.caseuco;
21 
22 import javax.swing.JPanel;
23 import org.openide.util.NbBundle;
27 
32 public final class CaseUcoReport implements GeneralReportModule {
33 
34  private static final Logger logger = Logger.getLogger(CaseUcoReport.class.getName());
35  private static CaseUcoReport instance = null;
36 
37  private static final String REPORT_FILE_NAME = "CASE_UCO_output.json-ld";
38 
39  // Hidden constructor for the report
40  private CaseUcoReport() {
41  }
42 
43  // Get the default implementation of this report
44  public static synchronized CaseUcoReport getDefault() {
45  if (instance == null) {
46  instance = new CaseUcoReport();
47  }
48  return instance;
49  }
50 
51  @Override
52  public String getName() {
53  String name = NbBundle.getMessage(this.getClass(), "ReportCaseUco.getName.text");
54  return name;
55  }
56 
57  @Override
58  public JPanel getConfigurationPanel() {
59  return null; // No configuration panel
60  }
61 
62  @Override
63  public String getRelativeFilePath() {
64  return REPORT_FILE_NAME;
65  }
66 
67  @Override
68  public String getDescription() {
69  String desc = NbBundle.getMessage(this.getClass(), "ReportCaseUco.getDesc.text");
70  return desc;
71  }
72 
78  public static String getReportFileName() {
79  return REPORT_FILE_NAME;
80  }
81 
88  @NbBundle.Messages({
89  "ReportCaseUco.notInitialized=CASE-UCO settings panel has not been initialized",
90  "ReportCaseUco.noDataSourceSelected=No data source selected for CASE-UCO report"
91  })
92  @Override
93  @SuppressWarnings("deprecation")
94  public void generateReport(String baseReportDir, ReportProgressPanel progressPanel) {
95  String reportPath = baseReportDir + getRelativeFilePath();
96  CaseUcoFormatExporter.generateReport(reportPath, progressPanel);
97  }
98 }
static void generateReport(String reportOutputPath, ReportProgressPanel progressPanel)
synchronized static Logger getLogger(String name)
Definition: Logger.java:124
void generateReport(String baseReportDir, ReportProgressPanel progressPanel)

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