/** * Returns a publish report instance that writes to the given report as well as * to the given temporary file.<p> * * @param report the report to decorate * * @return the publish report */ protected static CmsPrintStreamReport decorate(final I_CmsReport report) { return new CmsPublishReport(report); }
/** * Returns a publish report instance that writes to the given report as well as * to the given temporary file.<p> * * @param report the report to decorate * * @return the publish report */ protected static CmsPrintStreamReport decorate(final I_CmsReport report) { return new CmsPublishReport(report); }
/** * Returns the report for this publish job.<p> * * This is not the original report, it is wrapper that * also writes to a temporary file.<p> * * It will be <code>null</code> before starting and after finishing.<p> * * @return the report for this publish job * * @see CmsPublishJobEnqueued#getReport() */ public I_CmsReport getPublishReport() { if ((m_publishReport == null) && (m_finishTime == 0) && (m_startTime > 0)) { m_publishReport = getReport(); if (m_publishReport == null) { m_publishReport = new CmsPublishReport(getCmsObject().getRequestContext().getLocale()); } else { m_publishReport = CmsPublishReport.decorate(m_publishReport); } } return m_publishReport; }
/** * Returns the report for this publish job.<p> * * This is not the original report, it is wrapper that * also writes to a temporary file.<p> * * It will be <code>null</code> before starting and after finishing.<p> * * @return the report for this publish job * * @see CmsPublishJobEnqueued#getReport() */ public I_CmsReport getPublishReport() { if ((m_publishReport == null) && (m_finishTime == 0) && (m_startTime > 0)) { m_publishReport = getReport(); if (m_publishReport == null) { m_publishReport = new CmsPublishReport(getCmsObject().getRequestContext().getLocale()); } else { m_publishReport = CmsPublishReport.decorate(m_publishReport); } } return m_publishReport; }