if (!publishJob.getReport().hasError() && !publishJob.getReport().hasWarning()) { msgText = Messages.get().getBundle(publishJob.getLocale()).key( Messages.GUI_PUBLISH_JOB_FINISHED_1, new Long(publishJob.getEnqueueTime())); } else { hasError = true; Object[] params = new Object[] { new Long(publishJob.getEnqueueTime()), new Integer(publishJob.getReport().getErrors().size()), new Integer(publishJob.getReport().getWarnings().size())}; msgText = Messages.get().getBundle(publishJob.getLocale()).key( Messages.GUI_PUBLISH_JOB_FINISHED_WITH_WARNS_3, params); m_publishEngine.sendMessage(publishJob.getUserId(), msgText, hasError);
/** * Returns the current running publish job.<p> * * @return the current running publish job */ public CmsPublishJobRunning getCurrentPublishJob() { if (m_publishEngine.getCurrentPublishJob() == null) { return null; } return new CmsPublishJobRunning(m_publishEngine.getCurrentPublishJob().getPublishJob()); }
CmsPublishJobRunning currentJob = OpenCms.getPublishManager().getCurrentPublishJob(); if (currentJob != null) { CmsListItem item = getList().newItem(currentJob.getPublishList().getPublishHistoryId().toString()); item.set(LIST_COLUMN_STATE, new Integer(STATE_PROCEED)); item.set(LIST_COLUMN_NUMBER, new Integer(number)); item.set(LIST_COLUMN_PROJECT, currentJob.getProjectName()); item.set(LIST_COLUMN_STARTTIME, new Date(currentJob.getEnqueueTime())); item.set(LIST_COLUMN_USER, currentJob.getUserName(getCms())); item.set(LIST_COLUMN_RESCOUNT, new Integer(currentJob.getSize())); ret.add(item); number++;
CmsUUID uid = publishJob.getThreadUUID(); if ((uid == null) || (uid.isNullUUID())) { return;
&& !publishJob.getUserId().equals(getCms().getRequestContext().getCurrentUser().getId())) { throw new Exception(); if (publishJob.isDirectPublish()) {
publishList = ((CmsPublishJobEnqueued)publishJob).getPublishList(); } else if (publishJob instanceof CmsPublishJobRunning) { publishList = ((CmsPublishJobRunning)publishJob).getPublishList(); } else { continue;
if (publishJob != null) { CmsUUID uid = publishJob.getThreadUUID(); if ((uid != null) && (!uid.isNullUUID())) {
if (!publishJob.getReport().hasError() && !publishJob.getReport().hasWarning()) { msgText = Messages.get().getBundle(publishJob.getLocale()).key( Messages.GUI_PUBLISH_JOB_FINISHED_1, new Long(publishJob.getEnqueueTime())); } else { hasError = true; Object[] params = new Object[] { new Long(publishJob.getEnqueueTime()), new Integer(publishJob.getReport().getErrors().size()), new Integer(publishJob.getReport().getWarnings().size())}; msgText = Messages.get().getBundle(publishJob.getLocale()).key( Messages.GUI_PUBLISH_JOB_FINISHED_WITH_WARNS_3, params); m_publishEngine.sendMessage(publishJob.getUserId(), msgText, hasError);
setParamAction(REPORT_UPDATE); setParamThread(publishJob.getThreadUUID().toString()); setParamThreadHasNext(CmsStringUtil.FALSE); } else {
/** * Returns the current running publish job.<p> * * @return the current running publish job */ public CmsPublishJobRunning getCurrentPublishJob() { if (m_publishEngine.getCurrentPublishJob() == null) { return null; } return new CmsPublishJobRunning(m_publishEngine.getCurrentPublishJob().getPublishJob()); }
return new CmsPublishJobRunning(m_currentPublishThread.getPublishJob());
return new CmsPublishJobRunning(m_currentPublishThread.getPublishJob());
m_listeners.fireFinish(new CmsPublishJobRunning(publishJob)); } catch (Throwable t) {
m_listeners.fireFinish(new CmsPublishJobRunning(publishJob));