/** * Returns the session info key for the bean.<p> * * @return the session info key for the bean */ public String getEditorSessionInfoKey() { return PREFIX_EDITOR_SESSION_INFO + m_editedStructureId.getStringValue(); }
/** * Returns the session info key for the bean.<p> * * @param editedResource the edited resource * * @return the session info key for the bean */ protected static String getEditorSessionInfoKey(CmsResource editedResource) { return PREFIX_EDITOR_SESSION_INFO + editedResource.getStructureId().getStringValue(); }
/** * Returns the dummy resource object representing the "none" selection, this has to be treated specially.<p> * * @see org.opencms.workplace.list.A_CmsListResourceCollector#getResource(org.opencms.file.CmsObject, org.opencms.workplace.list.CmsListItem) */ @Override public CmsResource getResource(CmsObject cms, CmsListItem item) { // check if the item is the "dummy" item if (item.getId().equals(CmsUUID.getConstantUUID(CmsNewResourceXmlContent.VALUE_NONE + "s").getStringValue())) { for (CmsResource result : m_resources) { if (item.getId().equals(result.getStructureId().getStringValue())) { return result; } } } // all other items are real resources, use the default implementation return super.getResource(cms, item); }
String sessionId = ((CmsUUID)session.getAttribute(CmsSessionInfo.ATTRIBUTE_SESSION_ID)).getStringValue();
String sessionId = ((CmsUUID)session.getAttribute(CmsSessionInfo.ATTRIBUTE_SESSION_ID)).getStringValue();
/** * Adds the content info for the collected resources used in the "This page" publish dialog. */ private void addContentInfo() { if (!m_cms.getRequestContext().getCurrentProject().isOnlineProject() && (null == m_searchController.getCommon().getConfig().getSolrIndex()) && (null != m_addContentInfoForEntries)) { CmsSolrQuery query = new CmsSolrQuery(); m_searchController.addQueryParts(query); query.setStart(Integer.valueOf(0)); query.setRows(m_addContentInfoForEntries); CmsContentLoadCollectorInfo info = new CmsContentLoadCollectorInfo(); info.setCollectorClass(this.getClass().getName()); info.setCollectorParams(query.getQuery()); info.setId((new CmsUUID()).getStringValue()); if (CmsJspTagEditable.getDirectEditProvider(pageContext) != null) { try { CmsJspTagEditable.getDirectEditProvider(pageContext).insertDirectEditListMetadata( pageContext, info); } catch (JspException e) { // TODO: improve + localize error message LOG.error("Could not write content info.", e); } } } }