/** * Returns the publish history list with already publish jobs.<p> * * @return a list of {@link CmsPublishJobFinished} objects */ public List<CmsPublishJobFinished> getPublishHistory() { return m_publishEngine.getPublishHistory().asList(); }
/** * Returns the publish history list with already publish jobs.<p> * * @return a list of {@link CmsPublishJobFinished} objects */ public List getPublishHistory() { return m_publishEngine.getPublishHistory().asList(); }
/** * Called when the queue is full to remove the oldest element.<p> * * @see org.apache.commons.collections.buffer.BoundedFifoBuffer#remove() */ @Override public Object remove() { CmsPublishJobInfoBean publishJob = (CmsPublishJobInfoBean)super.remove(); try { OpenCms.getPublishManager().getEngine().getPublishHistory().remove(publishJob); } catch (CmsException exc) { if (LOG.isErrorEnabled()) { LOG.error(exc.getLocalizedMessage(), exc); } } return publishJob; } }, CmsPublishJobInfoBean.class));
/** * Called when the queue is full to remove the oldest element.<p> * * @see org.apache.commons.collections.buffer.BoundedFifoBuffer#remove() */ @Override public Object remove() { CmsPublishJobInfoBean publishJob = (CmsPublishJobInfoBean)super.remove(); try { OpenCms.getPublishManager().getEngine().getPublishHistory().remove(publishJob); } catch (CmsException exc) { if (LOG.isErrorEnabled()) { LOG.error(exc.getLocalizedMessage(), exc); } } return publishJob; } }, CmsPublishJobInfoBean.class));
Iterator<CmsPublishJobFinished> itFinishedJobs = getPublishHistory().asList().iterator(); while (itFinishedJobs.hasNext()) { CmsPublishJobFinished finishedJob = itFinishedJobs.next();
Iterator itFinishedJobs = getPublishHistory().asList().iterator(); while (itFinishedJobs.hasNext()) { CmsPublishJobFinished finishedJob = (CmsPublishJobFinished)itFinishedJobs.next();
m_publishEngine.unlockPublishList(job); new CmsPublishJobEnqueued(job).m_publishJob.finish(); m_publishEngine.getPublishHistory().add(job); } catch (CmsException exc) { LOG.error(exc.getLocalizedMessage(), exc);
m_publishEngine.unlockPublishList(job); new CmsPublishJobEnqueued(job).m_publishJob.finish(); m_publishEngine.getPublishHistory().add(job); } catch (CmsException exc) { dbc.rollback();
getPublishHistory().add(publishJob.m_publishJob); } else { getPublishQueue().remove(publishJob.m_publishJob);
getPublishHistory().add(publishJob.m_publishJob); } else { getPublishQueue().remove(publishJob.m_publishJob);