/** * Returns the uri.<p> * * @return the uri */ public String getUri() { return m_context.addSiteRoot(m_context.getUri()); }
/** * Initializes this bean.<p> * * @param cms the current cms context * @param locale the locale for which properties should be read */ public void init(CmsObject cms, Locale locale) { m_cms = cms; m_locale = locale; m_requestUri = m_cms.getRequestContext().getUri(); m_requestUriFolder = CmsResource.getFolderPath(m_requestUri); }
/** * Returns the uri.<p> * * @return the uri */ public String getUri() { String uri = m_context.addSiteRoot(m_context.getUri()); if (m_detailViewId != null) { uri += m_detailViewId.toString() + "/"; } return uri; }
/** * Returns the link to the form that contains the login element.<p> * * @return the link to the form that contains the login element */ public String getFormLink() { return link(getRequestContext().getUri()); }
/** * Returns the current folder set as URI in the request context.<p> * * @return the current folder * @throws Exception if something goes wrong * @see org.opencms.file.CmsRequestContext#getUri() * @see CmsResource#getFolderPath(String) */ public String pwd() throws Exception { return CmsResource.getFolderPath(m_cms.getRequestContext().getUri()); }
/** * Returns the current uri for the navigation.<p> * * @return the current uri for the navigation */ public String getNavigationUri() { return getCmsObject().getRequestContext().getUri(); }
/** * Returns the link to the form that contains the login element.<p> * * @return the link to the form that contains the login element */ public String getFormLink() { return link(getRequestContext().getUri()); }
/** * Creates a <code>CmsNaviationListView</code> which uses the given * <code>CmsJspActionElement</code> for accessing the underlying * navigation API. <p> * * @param jsp the <code>CmsJspActionElement</code> to use */ public CmsHelpNavigationListView(CmsJspActionElement jsp) { m_jsp = jsp; m_navRootPath = m_jsp.getCmsObject().getRequestContext().getUri(); }
/** * Initiliazes this bean.<p> * * @param cms context provider for the current request */ public void init(CmsObject cms) { m_cms = cms; m_requestUri = m_cms.getRequestContext().getUri(); m_requestUriFolder = CmsResource.getFolderPath(m_requestUri); } }
/** * Returns the current folder set as URI in the request context.<p> * * @return the current folder * @throws Exception if something goes wrong * @see org.opencms.file.CmsRequestContext#getUri() * @see CmsResource#getFolderPath(String) */ public String pwd() throws Exception { return CmsResource.getFolderPath(m_cms.getRequestContext().getUri()); }
/** * Creates a <code>CmsNaviationListView</code> which uses the given * <code>CmsJspActionElement</code> for accessing the underlying * navigation API. <p> * * @param jsp the <code>CmsJspActionElement</code> to use */ public CmsHelpNavigationListView(CmsJspActionElement jsp) { m_jsp = jsp; m_navRootPath = m_jsp.getCmsObject().getRequestContext().getUri(); }
/** * Returns the locales available for the currently requested URI. * * @return the locales available for the currently requested URI. */ public List<Locale> getAvailableLocales() { return OpenCms.getLocaleManager().getAvailableLocales(m_cms, getRequestContext().getUri()); }
/** * Returns true if the currently processed element is an included sub element.<p> * * @return true if the currently processed element is an included sub element */ public boolean isSubElement() { return !getJsp().getRequestContext().getUri().equals(getJsp().info("opencms.request.element.uri")); }
public Object transform(Object categoryPath) { try { return CmsCategoryService.getInstance().readCategory( m_cms, (String)categoryPath, getRequestContext().getUri()); } catch (CmsException e) { LOG.warn(e.getLocalizedMessage(), e); return null; } }
/** * Returns true if the currently processed element is an included sub element.<p> * * @return true if the currently processed element is an included sub element */ public boolean isSubElement() { return !getJsp().getRequestContext().getUri().equals(getJsp().info("opencms.request.element.uri")); }
/** * Returns the perma link for the current page based on the URI and detail content id stored in the CmsObject passed as a parameter.<p< * * @param cms the CMS context to use to generate the permalink * * @return the permalink */ public String getPermalinkForCurrentPage(CmsObject cms) { return getPermalink(cms, cms.getRequestContext().getUri(), cms.getRequestContext().getDetailContentId()); }
/** * Returns the http URI of the current dialog, to be used * as value for the "action" attribute of a html form.<p> * * This URI is the real one.<p> * * @return the http URI of the current dialog */ public String getDialogRealUri() { return getJsp().link(getJsp().getRequestContext().getUri()); }
/** * Returns the http URI of the current dialog, to be used * as value for the "action" attribute of a html form.<p> * * This URI is the real one.<p> * * @return the http URI of the current dialog */ public String getDialogRealUri() { return getJsp().link(getJsp().getRequestContext().getUri()); }
/** * @see org.apache.commons.collections.Transformer#transform(java.lang.Object) */ public Object transform(Object input) { return OpenCms.getLinkManager().substituteLink( getCmsObject(), CmsLinkManager.getAbsoluteUri(String.valueOf(input), getCmsObject().getRequestContext().getUri())); } }
/** * @see org.apache.commons.collections.Transformer#transform(java.lang.Object) */ public Object transform(Object input) { return OpenCms.getLinkManager().substituteLink( getCmsObject(), CmsLinkManager.getAbsoluteUri(String.valueOf(input), getCmsObject().getRequestContext().getUri())); } }