/** * @see org.opencms.report.A_CmsReportThread#getReportUpdate() */ @Override public String getReportUpdate() { switch (m_phase) { case 1: return m_deleteThread.getReportUpdate(); case 2: String content; if (m_reportContent != null) { content = m_reportContent; m_reportContent = null; } else { content = ""; } return content + m_importThread.getReportUpdate(); default: // noop } return ""; }
/** * @see org.opencms.report.A_CmsReportThread#getReportUpdate() */ @Override public String getReportUpdate() { switch (m_phase) { case 1: return m_deleteThread.getReportUpdate(); case 2: String content; if (m_reportContent != null) { content = m_reportContent; m_reportContent = null; } else { content = ""; } return content + m_importThread.getReportUpdate(); default: // noop } return ""; }
/** * Returns the part of the report that is ready for output.<p> * * @return the part of the report that is ready for output */ public String getReportUpdate() { A_CmsReportThread thread = OpenCms.getThreadStore().retrieveThread(m_paramThread); if (thread != null) { return thread.getReportUpdate(); } else { return ""; } }
/** * Returns the part of the report that is ready for output.<p> * * @return the part of the report that is ready for output */ public String getReportUpdate() { A_CmsReportThread thread = OpenCms.getThreadStore().retrieveThread(m_paramThread); if (thread != null) { return thread.getReportUpdate(); } else { return ""; } }
/** * @see org.opencms.ui.shared.rpc.I_CmsReportServerRpc#requestReportUpdate() */ public void requestReportUpdate() { String reportUpdate = null; if (!m_threadFinished && (m_thread != null)) { // if thread is not alive at this point, there may still be report updates reportUpdate = m_thread.getReportUpdate(); if (!m_thread.isAlive()) { m_threadFinished = true; for (Runnable handler : m_reportFinishedHandlers) { handler.run(); } } } getRpcProxy(I_CmsReportClientRpc.class).handleReportUpdate(reportUpdate); }
m_reportContent = m_deleteThread.getReportUpdate(); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_REPLACE_THREAD_START_IMPORT_0));
m_reportContent = m_deleteThread.getReportUpdate(); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().getBundle().key(Messages.LOG_REPLACE_THREAD_START_IMPORT_0));
if (thread != null) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(thread.getReportUpdate())) {