/** * Returns the list of resources to publish.<p> * * @return the list of resources to publish */ public CmsPublishList getPublishList() { return m_publishJob.getPublishList(); }
/** * Returns the list of resources to publish.<p> * * @return the list of resources to publish */ public CmsPublishList getPublishList() { return m_publishJob.getPublishList(); }
/** * Returns the list of resources to publish.<p> * * @return the list of resources to publish */ public CmsPublishList getPublishList() { return m_publishJob.getPublishList(); }
/** * Returns the list of resources to publish.<p> * * @return the list of resources to publish */ public CmsPublishList getPublishList() { return m_publishJob.getPublishList(); }
/** * Sets publish locks of resources in a publish list.<p> * * @param publishJob the publish job * @throws CmsException if something goes wrong */ protected void lockPublishList(CmsPublishJobInfoBean publishJob) throws CmsException { CmsPublishList publishList = publishJob.getPublishList(); // lock them CmsDbContext dbc = getDbContextFactory().getDbContext(publishJob.getCmsObject().getRequestContext()); try { Iterator itResources = publishList.getAllResources().iterator(); while (itResources.hasNext()) { CmsResource resource = (CmsResource)itResources.next(); m_driverManager.lockResource(dbc, resource, CmsLockType.PUBLISH); } } finally { dbc.clear(); } }
/** * Removes all publish locks of resources in a publish list of a publish job.<p> * * @param publishJob the publish job * @throws CmsException if something goes wrong */ protected void unlockPublishList(CmsPublishJobInfoBean publishJob) throws CmsException { CmsPublishList publishList = publishJob.getPublishList(); List allResources = publishList.getAllResources(); // unlock them CmsDbContext dbc = getDbContextFactory().getDbContext(publishJob.getCmsObject().getRequestContext()); try { Iterator itResources = allResources.iterator(); while (itResources.hasNext()) { CmsResource resource = (CmsResource)itResources.next(); m_driverManager.unlockResource(dbc, resource, true, true); } } finally { dbc.clear(); } }
/** * Sets publish locks of resources in a publish list.<p> * * @param publishJob the publish job * @throws CmsException if something goes wrong */ protected void lockPublishList(CmsPublishJobInfoBean publishJob) throws CmsException { CmsPublishList publishList = publishJob.getPublishList(); // lock them CmsDbContext dbc = getDbContext(publishJob.getCmsObject().getRequestContext()); try { Iterator<CmsResource> itResources = publishList.getAllResources().iterator(); while (itResources.hasNext()) { CmsResource resource = itResources.next(); m_driverManager.lockResource(dbc, resource, CmsLockType.PUBLISH); } } catch (CmsException e) { dbc.rollback(); LOG.error(e.getLocalizedMessage(), e); throw e; } finally { dbc.clear(); } }
/** * Removes all publish locks of resources in a publish list of a publish job.<p> * * @param publishJob the publish job * @throws CmsException if something goes wrong */ protected void unlockPublishList(CmsPublishJobInfoBean publishJob) throws CmsException { CmsPublishList publishList = publishJob.getPublishList(); List<CmsResource> allResources = publishList.getAllResources(); // unlock them CmsDbContext dbc = getDbContext(publishJob.getCmsObject().getRequestContext()); try { Iterator<CmsResource> itResources = allResources.iterator(); while (itResources.hasNext()) { CmsResource resource = itResources.next(); m_driverManager.unlockResource(dbc, resource, true, true); } } catch (CmsException e) { dbc.rollback(); LOG.error(e.getLocalizedMessage(), e); throw e; } finally { dbc.clear(); } }
eventData.put( I_CmsEventListener.KEY_PUBLISHID, publishJob.getPublishList().getPublishHistoryId().toString()); eventData.put(I_CmsEventListener.KEY_PROJECTID, dbc.currentProject().getUuid()); eventData.put(I_CmsEventListener.KEY_DBCONTEXT, dbc);
stmt.setLong(10, publishJob.getFinishTime()); byte[] publishList = internalSerializePublishList(publishJob.getPublishList()); if (publishList.length < 2000) { stmt.setBytes(11, publishList);
stmt.setLong(10, publishJob.getFinishTime()); byte[] publishList = internalSerializePublishList(publishJob.getPublishList()); if (publishList.length < 2000) { stmt.setBytes(11, publishList);
"C_ORACLE_PUBLISHJOB_UPDATE_PUBLISHLIST", "PUBLISH_LIST", internalSerializePublishList(publishJob.getPublishList())); } catch (IOException e) { throw new CmsDbIoException(
eventData.put( I_CmsEventListener.KEY_PUBLISHID, publishJob.getPublishList().getPublishHistoryId().toString()); eventData.put(I_CmsEventListener.KEY_PROJECTID, dbc.currentProject().getUuid()); eventData.put(I_CmsEventListener.KEY_DBCONTEXT, dbc);
"C_ORACLE_PUBLISHJOB_UPDATE_PUBLISHLIST", "PUBLISH_LIST", internalSerializePublishList(publishJob.getPublishList())); } catch (IOException e) { throw new CmsDbIoException(Messages.get().container(
try { m_publishEngine.getDriverManager().publishJob(getCms(), dbc, m_publishJob.getPublishList(), m_report); } catch (Throwable e) {
int plainId = OpenCms.getResourceManager().getResourceType( CmsResourceTypePlain.getStaticTypeName()).getTypeId(); Iterator<CmsResource> it = m_publishJob.getPublishList().getFileList().iterator(); while (it.hasNext()) { CmsResource resource = it.next();
Messages.get().container(Messages.RPT_JSPLOADER_UPDATE_CACHE_BEGIN_0), I_CmsReport.FORMAT_HEADLINE); Iterator it = m_publishJob.getPublishList().getFileList().iterator(); while (it.hasNext()) { CmsResource resource = (CmsResource)it.next(); try { m_publishEngine.getDriverManager().publishJob(getCms(), dbc, m_publishJob.getPublishList(), m_report);
pj.setStartTime(publishJob.getStartTime()); pj.setFinishTime(publishJob.getFinishTime()); byte[] publishList = internalSerializePublishList(publishJob.getPublishList()); pj.setPublishList(publishList);