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)
 
  107         generatorLogoPath = path;        
 
  112         String curPath = null;
 
  120         if (curPath != null && 
new File(curPath).canRead() == 
false) {
 
  122             logger.log(Level.INFO, 
"Custom report branding for agency logo is not valid: " + curPath); 
 
  138         String curTitle = null;
 
  141         if (curTitle == null || curTitle.isEmpty()) {
 
  143             logger.log(Level.INFO, 
"Using default report branding for report title"); 
 
  158         String curFooter = null;
 
  161         if (curFooter == null) {
 
  163             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
 
static final Logger logger
 
String defaultGeneratorLogoPath
 
static Logger getLogger(String name)
 
void setAgencyLogoPath(String path)