/** * Returns the reset password link.<p> * * @return the reset password link */ public String getResetPasswordLink() { return OpenCms.getLinkManager().substituteLinkForUnknownTarget( CmsLoginUI.m_adminCms, CmsWorkplaceLoginHandler.LOGIN_HANDLER, false) + "?" + CmsLoginHelper.PARAM_RESET_PASSWORD; }
/** * Returns the given link resolved according to the OpenCms context and export rules.<p> * * @param target the link target to resolve * * @return the given link resolved according to the OpenCms context and export rules */ protected String getLink(String target) { return OpenCms.getLinkManager().substituteLink(m_cms, target); }
/** * Returns the given link resolved according to the OpenCms context and export rules.<p> * * @param target the link target to resolve * * @return the given link resolved according to the OpenCms context and export rules */ protected String getLink(String target) { return OpenCms.getLinkManager().substituteLink(m_cms, target); }
/** * Returns the link to the login form.<p> * * @param cms the current cms context * * @return the login form link */ public static String getFormLink(CmsObject cms) { return OpenCms.getLinkManager().substituteLinkForUnknownTarget( cms, CmsWorkplaceLoginHandler.LOGIN_HANDLER, false); }
/** * @see org.opencms.ugc.shared.rpc.I_CmsUgcEditService#getLink(java.lang.String) */ public String getLink(String path) { return OpenCms.getLinkManager().substituteLink(getCmsObject(), path); }
/** * Returns the uri (including context path) to the explorer file list.<p> * * @return the uri (including context path) to the explorer file list */ public String getExplorerFileListFullUri() { if (m_file_explorer_filelist != null) { return m_file_explorer_filelist; } synchronized (this) { m_file_explorer_filelist = OpenCms.getLinkManager().substituteLink(getCms(), FILE_EXPLORER_FILELIST); } return m_file_explorer_filelist; }
/** * Redirects the response to the target link.<p> * * Use this method instead of {@link javax.servlet.http.HttpServletResponse#sendRedirect(java.lang.String)} * to avoid relative links with secure sites (and issues with apache).<p> * * @param jsp the OpenCms JSP context * @param target the target link * * @throws IOException if something goes wrong during redirection */ public static void redirectRequestSecure(CmsJspActionElement jsp, String target) throws IOException { jsp.getResponse().sendRedirect(OpenCms.getLinkManager().substituteLink(jsp.getCmsObject(), target, null, true)); }
/** * Redirects the response to the target link.<p> * * Use this method instead of {@link javax.servlet.http.HttpServletResponse#sendRedirect(java.lang.String)} * to avoid relative links with secure sites (and issues with apache).<p> * * @param jsp the OpenCms JSP context * @param target the target link * * @throws IOException if something goes wrong during redirection */ public static void redirectRequestSecure(CmsJspActionElement jsp, String target) throws IOException { jsp.getResponse().sendRedirect(OpenCms.getLinkManager().substituteLink(jsp.getCmsObject(), target, null, true)); }
/** * Gets a link to the resource.<p> * * @return the link */ public String getLink() { return OpenCms.getLinkManager().substituteLinkForUnknownTarget( m_cms, m_cms.getRequestContext().getSitePath(this)); }
/** * Returns the path under which the resource is accessible.<p> * * @return the path under which the resource is accessible */ public String getResourceUrl() { return OpenCms.getLinkManager().getOnlineLink(getCms(), getParamResource()); }
/** * Returns the path under which the resource is accessible.<p> * * @return the path under which the resource is accessible */ public String getResourceUrl() { return OpenCms.getLinkManager().getOnlineLink(getCms(), getParamResource()); }
/** * @see org.opencms.search.solr.I_CmsSolrPostSearchProcessor#process(org.opencms.file.CmsObject, org.opencms.file.CmsResource, org.apache.solr.common.SolrInputDocument) */ public SolrDocument process(CmsObject cms, CmsResource resource, SolrInputDocument document) { document.addField("link", OpenCms.getLinkManager().substituteLink(cms, resource)); return ClientUtils.toSolrDocument(document); }
public void run() { A_CmsUI.get().getPage().setLocation( OpenCms.getLinkManager().substituteLinkForUnknownTarget( CmsLoginUI.m_adminCms, CmsWorkplaceLoginHandler.LOGIN_HANDLER, false)); }
public void run() { A_CmsUI.get().getPage().setLocation( OpenCms.getLinkManager().substituteLinkForUnknownTarget( CmsLoginUI.m_adminCms, CmsWorkplaceLoginHandler.LOGIN_HANDLER, false)); } });
@Override protected String resolveOnClic(Locale locale) { String link = OpenCms.getLinkManager().substituteLink( getCms(), "/system/workplace/commons/publish.jsp?publishProjectId=" + getItem().getId()); return "window.location='" + link + "' + '&closelink='+encodeURI(window.location.href);"; } };
/** * @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())); } }
/** * Cancels the dialog.<p> */ public void cancel() { CmsObject cms = A_CmsUI.getCmsObject(); String link = OpenCms.getLinkManager().substituteLinkForUnknownTarget( cms, CmsWorkplaceLoginHandler.LOGIN_HANDLER, false); A_CmsUI.get().getPage().setLocation(link); }
/** * @see org.opencms.gwt.shared.rpc.I_CmsVfsService#substituteLinkForRootPath(java.lang.String, java.lang.String) */ public String substituteLinkForRootPath(String currentSiteRoot, String rootPath) throws CmsRpcException { String result = null; try { CmsObject cms = OpenCms.initCmsObject(getCmsObject()); cms.getRequestContext().setSiteRoot(currentSiteRoot); result = OpenCms.getLinkManager().substituteLinkForRootPath(cms, rootPath); } catch (CmsException e) { error(e); } return result; }
public void buttonClick(ClickEvent event) { String v1Param = version.getVersion().getVersionNumber() != null ? "" + version.getVersion().getVersionNumber() : "" + CmsHistoryResourceHandler.PROJECT_OFFLINE_VERSION; String link = CmsHistoryListUtil.getHistoryLink(cms, version.getStructureId(), v1Param); link = OpenCms.getLinkManager().substituteLinkForUnknownTarget(cms, link); A_CmsUI.get().openPageOrWarn(link, "_blank"); }