/** * Initialize a HTML report for this Thread.<p> * * @param locale the locale for the report output messages */ protected void initHtmlReport(Locale locale) { boolean isVaadin = A_CmsUI.get() != null; m_report = isVaadin ? new CmsVaadinHtmlReport(locale, m_cms.getRequestContext().getSiteRoot(), getLogChannel()) : new CmsHtmlReport(locale, m_cms.getRequestContext().getSiteRoot()); }
/** * Initialize a HTML report for this Thread.<p> * * This method is reserved for older report threads that still use * XML templates to generate their output.<p> * * @param locale the locale for the report output messages */ protected void initOldHtmlReport(Locale locale) { boolean isVaadin = A_CmsUI.get() != null; m_report = isVaadin ? new CmsVaadinHtmlReport(locale, m_cms.getRequestContext().getSiteRoot(), true, false, getLogChannel()) : new CmsHtmlReport(locale, m_cms.getRequestContext().getSiteRoot(), true, false); } }