/** * @see org.opencms.workplace.list.A_CmsListResourceCollector#setAdditionalColumns(org.opencms.workplace.list.CmsListItem, org.opencms.workplace.explorer.CmsResourceUtil) */ @Override protected void setAdditionalColumns(CmsListItem item, CmsResourceUtil resUtil) { item.set( LIST_COLUMN_IS_RELATED, Boolean.valueOf( !getSettings().getPublishList().getAllResources().contains(resUtil.getResource()))); } };
/** * @see org.opencms.workplace.list.A_CmsListResourceCollector#setAdditionalColumns(org.opencms.workplace.list.CmsListItem, org.opencms.workplace.explorer.CmsResourceUtil) */ @Override protected void setAdditionalColumns(CmsListItem item, CmsResourceUtil resUtil) { item.set( LIST_COLUMN_IS_RELATED, Boolean.valueOf(!getSettings().getPublishList().getAllResources().contains( resUtil.getResource()))); } };
/** * @see org.opencms.workplace.list.A_CmsListExplorerDialog#getCollector() */ @Override public I_CmsListResourceCollector getCollector() { if (m_collector == null) { m_validator = new CmsRelationPublishValidator(getCms(), getSettings().getPublishList()); List<String> resourceList = new ArrayList<String>(m_validator.keySet()); Collections.sort(resourceList); m_collector = new CmsPublishBrokenRelationsCollector(this, resourceList); } return m_collector; }
/** * @see org.opencms.workplace.list.A_CmsListExplorerDialog#getCollector() */ @Override public I_CmsListResourceCollector getCollector() { if (m_collector == null) { m_validator = new CmsRelationPublishValidator(getCms(), getSettings().getPublishList()); List resourceList = new ArrayList(m_validator.keySet()); Collections.sort(resourceList); m_collector = new CmsPublishBrokenRelationsCollector(this, resourceList); } return m_collector; }
/** * @see org.opencms.workplace.list.A_CmsListResourceCollector#getResources(org.opencms.file.CmsObject, java.util.Map) */ @Override public List getResources(CmsObject cms, Map params) { if (m_publishRelated && getSettings().getPublishList().isDirectPublish()) { try { CmsPublishList relatedPL = OpenCms.getPublishManager().getRelatedResourcesToPublish( cms, getSettings().getPublishList()); CmsPublishList mergedPL = OpenCms.getPublishManager().mergePublishLists( cms, getSettings().getPublishList(), relatedPL); m_publishList = mergedPL; } catch (CmsException e) { if (LOG.isErrorEnabled()) { LOG.error(e.getLocalizedMessage(getLocale()), e); } } } else { m_publishList = getSettings().getPublishList(); } return m_publishList.getAllResources(); }
/** * @see org.opencms.workplace.list.A_CmsListResourceCollector#getResources(org.opencms.file.CmsObject, java.util.Map) */ @Override public List<CmsResource> getResources(CmsObject cms, Map<String, String> params) { if (m_publishRelated && getSettings().getPublishList().isDirectPublish()) { try { CmsPublishList relatedPL = OpenCms.getPublishManager().getRelatedResourcesToPublish( cms, getSettings().getPublishList()); CmsPublishList mergedPL = OpenCms.getPublishManager().mergePublishLists( cms, getSettings().getPublishList(), relatedPL); m_publishList = mergedPL; } catch (CmsException e) { if (LOG.isErrorEnabled()) { LOG.error(e.getLocalizedMessage(getLocale()), e); } } } else { m_publishList = getSettings().getPublishList(); } return m_publishList.getAllResources(); }
List publishResources = getSettings().getPublishList().getAllResources();
List<CmsResource> publishResources = getSettings().getPublishList().getAllResources();
/** * Starts the publish thread for the project.<p> */ private void startPublishThread() { // create a publish thread from the current publish list CmsPublishList publishList = getSettings().getPublishList(); try { OpenCms.getPublishManager().publishProject( getCms(), new CmsHtmlReport(getLocale(), getCms().getRequestContext().getSiteRoot()), publishList); } catch (CmsException e) { throw new CmsRuntimeException(e.getMessageContainer()); } setParamAction(REPORT_END); setAction(ACTION_REPORT_END); setParamThreadHasNext(CmsStringUtil.FALSE); }
/** * @see org.opencms.workplace.CmsMultiDialog#performDialogOperation() */ @Override protected boolean performDialogOperation() throws CmsException { CmsPublishList publishList = getSettings().getPublishList(); if (publishList == null) { throw new CmsException( Messages.get().container(org.opencms.db.Messages.ERR_GET_PUBLISH_LIST_PROJECT_1, getProjectname())); } OpenCms.getPublishManager().publishProject( getCms(), new CmsHtmlReport(getLocale(), getCms().getRequestContext().getSiteRoot()), publishList); // wait 2 seconds, may be it finishes fast OpenCms.getPublishManager().waitWhileRunning(1500); return true; }
/** * @see org.opencms.workplace.CmsMultiDialog#performDialogOperation() */ @Override protected boolean performDialogOperation() throws CmsException { CmsPublishList publishList = getSettings().getPublishList(); if (publishList == null) { throw new CmsException(Messages.get().container( org.opencms.db.Messages.ERR_GET_PUBLISH_LIST_PROJECT_1, getProjectname())); } OpenCms.getPublishManager().publishProject( getCms(), new CmsHtmlReport(getLocale(), getCms().getRequestContext().getSiteRoot()), publishList); // wait 2 seconds, may be it finishes fast OpenCms.getPublishManager().waitWhileRunning(1500); return true; }
CmsPublishList publishList = getSettings().getPublishList(); if (publishList == null) { // this may happen if the user has not publish permissions (with multi selection)
CmsPublishList publishList = getSettings().getPublishList(); if (publishList == null) { // this may happen if the user has not publish permissions (with multi selection)