/** * @see org.opencms.notification.A_CmsNotification#generateHtmlMsg() */ @Override protected String generateHtmlMsg() { StringBuffer buffer = new StringBuffer(); CmsMessages messages = Messages.get().getBundle(getLocale()); // add warnings to the notification if (m_report.hasWarning()) { buffer.append("<b>"); buffer.append(messages.key(Messages.GUI_PUBLISH_WARNING_HEADER_0)); buffer.append("</b><br/>\n"); appendList(buffer, m_report.getWarnings()); buffer.append("<br/>\n"); } // add errors to the notification if (m_report.hasError()) { buffer.append("<b>"); buffer.append(messages.key(Messages.GUI_PUBLISH_ERROR_HEADER_0)); buffer.append("</b><br/>\n"); appendList(buffer, m_report.getErrors()); buffer.append("<br/>\n"); } return buffer.toString(); }
/** * @see org.opencms.notification.A_CmsNotification#generateHtmlMsg() */ @Override protected String generateHtmlMsg() { StringBuffer buffer = new StringBuffer(); // add warnings to the notification if (m_report.hasWarning()) { buffer.append("<b>"); buffer.append(Messages.get().getBundle().key(Messages.GUI_PUBLISH_WARNING_HEADER_0)); buffer.append("</b><br/>\n"); appendList(buffer, m_report.getWarnings()); buffer.append("<br/>\n"); } // add errors to the notification if (m_report.hasError()) { buffer.append("<b>"); buffer.append(Messages.get().getBundle().key(Messages.GUI_PUBLISH_ERROR_HEADER_0)); buffer.append("</b><br/>\n"); appendList(buffer, m_report.getErrors()); buffer.append("<br/>\n"); } return buffer.toString(); }
exportException = e; boolean failed = ((exportException != null) || report.hasWarning() || report.hasError()); m_moduleLog.log(moduleName, Action.exportModule, !failed);
importHandler.importData(m_adminCms, report); new File(targetFilePath).delete(); if (report.hasError() || report.hasWarning()) { ok = false;
if (!publishJob.getReport().hasError() && !publishJob.getReport().hasWarning()) { msgText = Messages.get().getBundle(publishJob.getLocale()).key( Messages.GUI_PUBLISH_JOB_FINISHED_1,
if (!publishJob.getReport().hasError() && !publishJob.getReport().hasWarning()) { msgText = Messages.get().getBundle(publishJob.getLocale()).key( Messages.GUI_PUBLISH_JOB_FINISHED_1,
moduleName = module.getName(); OpenCms.getModuleManager().deleteModule(m_adminCms, module.getName(), false, report); ok = !(report.hasWarning() || report.hasError()); return true; } catch (Exception e) {