/** * Returns the content of the publish report assigned to the given publish job.<p> * * @param publishJob the published job * @return the content of the assigned publish report * * @throws CmsException if something goes wrong */ protected byte[] getReportContents(CmsPublishJobFinished publishJob) throws CmsException { CmsDbContext dbc = m_dbContextFactory.getDbContext(); try { return m_driverManager.readPublishReportContents(dbc, publishJob.getPublishHistoryId()); } finally { dbc.clear(); } }
/** * Returns the content of the publish report assigned to the given publish job.<p> * * @param publishJob the published job * @return the content of the assigned publish report * * @throws CmsException if something goes wrong */ protected byte[] getReportContents(CmsPublishJobFinished publishJob) throws CmsException { byte[] result = null; CmsDbContext dbc = m_dbContextFactory.getDbContext(); try { result = m_driverManager.readPublishReportContents(dbc, publishJob.getPublishHistoryId()); } catch (CmsException e) { dbc.rollback(); LOG.error(e.getLocalizedMessage(), e); throw e; } finally { dbc.clear(); } return result; }
while (itFinishedJobs.hasNext()) { CmsPublishJobFinished finishedJob = itFinishedJobs.next(); if (finishedJob.getPublishHistoryId().equals(publishHistoryId)) { return finishedJob;
while (itFinishedJobs.hasNext()) { CmsPublishJobFinished finishedJob = (CmsPublishJobFinished)itFinishedJobs.next(); if (finishedJob.getPublishHistoryId().equals(publishHistoryId)) { return finishedJob;
item.set(LIST_COLUMN_STATE, state.get(LIST_COLUMN_STATE)); item.set(LIST_COLUMN_RESCOUNT, new Integer(publishJob.getSize())); item.set(LIST_COLUMN_ID, publishJob.getPublishHistoryId()); item.set(LIST_COLUMN_USER, publishJob.getUserName(getCms())); item.set(LIST_COLUMN_WARNINGS, state.get(LIST_COLUMN_WARNINGS));