/** * Creates a new helper object.<p> * * @param cms the cms object * @param publishList a publish list to validate */ public CmsRelationPublishValidator(CmsObject cms, CmsPublishList publishList) { try { m_cms = OpenCms.initCmsObject(cms); } catch (CmsException e) { // should never happen LOG.error(e.getLocalizedMessage(), e); m_cms = cms; } try { m_brokenRelations = OpenCms.getPublishManager().validateRelations(m_cms, publishList, null); } catch (Exception e) { // should never happen LOG.error(e.getLocalizedMessage(), e); } }
/** * Creates a new helper object.<p> * * @param cms the cms object * @param publishList a publish list to validate */ public CmsRelationPublishValidator(CmsObject cms, CmsPublishList publishList) { try { m_cms = OpenCms.initCmsObject(cms); } catch (CmsException e) { m_cms = cms; } try { m_brokenRelations = OpenCms.getPublishManager().validateRelations(m_cms, publishList, null); } catch (CmsException e) { LOG.error(e.getLocalizedMessage(), e); throw new CmsRuntimeException(e.getMessageContainer(), e); } catch (Exception e) { LOG.error(e.getLocalizedMessage(), e); throw new RuntimeException(e.getLocalizedMessage()); } }
/** * @see java.lang.Runnable#run() */ @Override public void run() { try { // validate the HTML links in the resources that actually get published OpenCms.getPublishManager().validateRelations(getCms(), m_publishList, getReport()); if (m_savePublishList && (m_settings != null)) { // save the publish list optionally to be processed by further workplace threads m_settings.setPublishList(m_publishList); } } catch (Throwable e) { if (m_savePublishList && (m_settings != null)) { // overwrite the publish list in any case with null m_settings.setPublishList(null); } getReport().println(e); LOG.error(Messages.get().getBundle().key(Messages.ERR_LINK_VALIDATION_0), e); } } }
/** * @see java.lang.Runnable#run() */ @Override public void run() { try { // validate the HTML links in the resources that actually get published OpenCms.getPublishManager().validateRelations(getCms(), m_publishList, getReport()); if (m_savePublishList && (m_settings != null)) { // save the publish list optionally to be processed by further workplace threads m_settings.setPublishList(m_publishList); } } catch (Throwable e) { if (m_savePublishList && (m_settings != null)) { // overwrite the publish list in any case with null m_settings.setPublishList(null); } getReport().println(e); LOG.error(Messages.get().getBundle().key(Messages.ERR_LINK_VALIDATION_0), e); } } }
cms.getRequestContext().currentProject().getName()), I_CmsReport.FORMAT_HEADLINE); OpenCms.getPublishManager().validateRelations(cms, null, report); } catch (Exception e) { if (report != null) {
I_CmsReport.FORMAT_HEADLINE); OpenCms.getPublishManager().validateRelations(cms, null, report); } catch (Exception e) { if (report != null) {
OpenCms.getPublishManager().validateRelations( cms, OpenCms.getPublishManager().getPublishList(cms),
OpenCms.getPublishManager().validateRelations( cms, OpenCms.getPublishManager().getPublishList(cms),
OpenCms.getPublishManager().validateRelations( cms, OpenCms.getPublishManager().getPublishList(cms),
OpenCms.getPublishManager().validateRelations( cms, OpenCms.getPublishManager().getPublishList(cms),