19 package org.sleuthkit.autopsy.report;
 
   22 import java.io.IOException;
 
   23 import java.util.logging.Level;
 
   25 import org.openide.util.NbBundle;
 
   43     private static final String 
DEFAULT_GENERATOR_LOGO = 
"/org/sleuthkit/autopsy/report/images/default_generator_logo.png"; 
 
   45             .getMessage(
ReportBranding.class, 
"ReportBranding.defaultReportTitle.text");
 
   47             .getMessage(
ReportBranding.class, 
"ReportBranding.defaultReportFooter.text");
 
   67             File brandingDir = 
new File(reportsBrandingDir);
 
   68             if (!brandingDir.exists()) {
 
   69                 if (!brandingDir.mkdirs()) {
 
   70                     logger.log(Level.SEVERE, 
"Error creating report branding dir for the case, will use defaults"); 
 
   90         } 
catch (IOException ex) {
 
   91             logger.log(Level.SEVERE, 
"Error extracting report branding resource for generator logo ", ex); 
 
   99         if (generatorLogoPath == null) {
 
  108         generatorLogoPath = path;
 
  113         String curPath = null;
 
  122         if (curPath != null && 
new File(curPath).canRead() == 
false) {
 
  124             logger.log(Level.INFO, 
"Custom report branding for agency logo is not valid: " + curPath); 
 
  140         String curTitle = null;
 
  143         if (curTitle == null || curTitle.isEmpty()) {
 
  145             logger.log(Level.INFO, 
"Using default report branding for report title"); 
 
  160         String curFooter = null;
 
  163         if (curFooter == null) {
 
  165             logger.log(Level.INFO, 
"Using default report branding for report footer"); 
 
String reportsBrandingDir
String getAgencyLogoPath()
static final String REPORT_TITLE_PROP
String getGeneratorLogoPath()
static final String DEFAULT_GENERATOR_LOGO
static final String REPORT_FOOTER_PROP
static String generatorLogoPath
static final String DEFAULT_REPORT_TITLE
void setReportFooter(String footer)
void setGeneratorLogoPath(String path)
String getReportsBrandingDir()
static synchronized void setConfigSetting(String moduleName, String settingName, String settingVal)
static final String DEFAULT_REPORT_FOOTER
static final String AGENCY_LOGO_PATH_PROP
static String getConfigSetting(String moduleName, String settingName)
void extractDefaultGeneratorLogo()
void setReportTitle(String title)
static final String MODULE_NAME
synchronized static Logger getLogger(String name)
static final Logger logger
String defaultGeneratorLogoPath
void setAgencyLogoPath(String path)