/** * Returns the current element language.<p> * * @return the current element language */ public String getParamElementlanguage() { if (m_paramElementlanguage == null) { if ((m_editorSessionInfo != null) && (m_editorSessionInfo.getElementLocale() != null)) { m_paramElementlanguage = m_editorSessionInfo.getElementLocale().toString(); } } return m_paramElementlanguage; }
/** * Returns the direct edit flag parameter.<p> * * @return the direct edit flag parameter */ public String getParamDirectedit() { if (m_editorSessionInfo != null) { return String.valueOf(m_editorSessionInfo.isDirectEdit()); } return m_paramDirectedit; }
HttpSession session = getSession(); info = (CmsEditorSessionInfo)session.getAttribute( CmsEditorSessionInfo.getEditorSessionInfoKey(editedResource)); if (info == null) { info = new CmsEditorSessionInfo(editedResource.getStructureId()); info.setBackLink(m_paramBackLink); info.setElementLocale(CmsLocaleManager.getLocale(m_paramElementlanguage)); info.setDirectEdit(Boolean.parseBoolean(m_paramDirectedit)); session.setAttribute(info.getEditorSessionInfoKey(), info);
/** * Returns the back link when closing the editor.<p> * * @return the back link */ public String getParamBacklink() { if ((m_editorSessionInfo != null) && CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_editorSessionInfo.getBackLink())) { m_paramBackLink = m_editorSessionInfo.getBackLink(); } if (m_paramBackLink == null) { m_paramBackLink = ""; } return m_paramBackLink; }
/** * Clears the editor session info bean.<p> */ protected void clearEditorSessionInfo() { if (m_editorSessionInfo != null) { getSession().removeAttribute(m_editorSessionInfo.getEditorSessionInfoKey()); } m_editorSessionInfo = null; }