/** * {@inheritDoc} */ @Override public String getServerUrl() { return this.serverConfigurationService.getServerUrl(); }
public String getServerUrl() { return serverConfigurationService.getServerUrl(); }
public String getServerURL() { return serverConfigurationService.getServerUrl(); }
public String getExternalSearchWindowName(String resourceId) { String serverUrl = serverConfigurationService.getServerUrl() + Entity.SEPARATOR + SERVLET_NAME + Entity.SEPARATOR + resourceId; try { String encodedUrl = URLEncoder.encode(serverUrl, "UTF-8"); return WINDOW_PREFIX + encodedUrl; } catch (UnsupportedEncodingException e) { throw new RuntimeException("Does anywhere not have UTF-8?", e); } } /**
public String getPortalUrl() { // don't use serverConfigurationService.getPortalUrl() as it can return // 'sakai-entitybroker-direct' instead of 'portal' String serverUrl = serverConfigurationService.getServerUrl(); return serverUrl + serverConfigurationService.getString("portalPath"); }
public static java.lang.String getServerUrl() { org.sakaiproject.component.api.ServerConfigurationService service = getInstance(); if (service == null) return null; return service.getServerUrl(); }
public String getSaveUrl() { String url = m_serverConfigurationService.getServerUrl() + "/savecite/" + this.getId() + "/"; return url; }
public String getWebhookUrl(Optional<String> customParam) { StringBuilder sb = new StringBuilder(); sb.append(serverConfigurationService.getServerUrl()); if(!StringUtils.endsWith(sb.toString(), "/")) { sb.append("/"); } return String.format(WEBHOOK_URL_TEMPLATE, sb.toString(), getProviderId()) + (customParam.isPresent() ? "&custom=" + customParam.get() : ""); } }
public String getResourceImage(String ref){ return M_scs.getServerUrl() + "/library/" + getResourceImageLibraryRelativePath(ref); }
/** * Supply the url for the savecite servlet to add a citation to a particular citation list. * @param resourceId The identifier for the citation list. */ public String getSaveciteUrl(String resourceId, String saveciteClientId) { StringBuilder buf = new StringBuilder(); String serverUrl = serverConfigurationService.getServerUrl(); buf.append(serverUrl); buf.append(Entity.SEPARATOR); buf.append(SERVLET_NAME); buf.append(Entity.SEPARATOR); buf.append(resourceId); buf.append('?'); buf.append(SAKAI_SESSION); buf.append("=nada&client="); buf.append(saveciteClientId); //buf.append("&"); return buf.toString(); }
/** * */ public String getGoogleScholarUrl(String resourceId) { String serverUrl = serverConfigurationService.getServerUrl(); //SessionManager sessionManager = (SessionManager) ComponentManager.get("org.sakaiproject.tool.api.SessionManager"); //String sessionId = sessionManager.getCurrentSession().getId(); try { return ( m_configService.getSiteConfigGoogleBaseUrl() + "?sciui=2&as_sdt=0,15&" + "linkurl_base=" + java.net.URLEncoder.encode( serverUrl + Entity.SEPARATOR + SERVLET_NAME + Entity.SEPARATOR + resourceId + "?" + SAKAI_SESSION + "=nada&", "UTF-8" ) + "&linkurl_id=" + java.net.URLEncoder.encode( m_configService.getSiteConfigSakaiServerKey(), "UTF-8" ) ); } catch( Exception e ) { m_log.warn( "getGoogleScholarUrl encoding failed", e ); return null; } }
returnValue = (T) serverConfigurationService.getServerName(); } else if (SETTING_SERVER_URL.equals(settingName)) { returnValue = (T) serverConfigurationService.getServerUrl(); } else if (SETTING_PORTAL_URL.equals(settingName)) { returnValue = (T) serverConfigurationService.getPortalUrl();
returnValue = (T) serverConfigurationService.getServerName(); } else if (SETTING_SERVER_URL.equals(settingName)) { returnValue = (T) serverConfigurationService.getServerUrl(); } else if (SETTING_PORTAL_URL.equals(settingName)) { returnValue = (T) serverConfigurationService.getPortalUrl();
StringBuilder siteUrl = new StringBuilder( m_serverConfigurationService.getServerUrl() ); siteUrl.append( m_serverConfigurationService.getString("portalPath") ); siteUrl.append( site.getReference() );
+ serverConfigurationService.getServerUrl() + ")" + "\n" + rb.getString("youcan") + "\n");
portalUrl = serverConfigurationService.getServerUrl() + "/portal";
String serverUrl = serverConfigurationService.getServerUrl(); String url = serverUrl + "/accountvalidator/faces/" + page + "?tokenId=" + account.getValidationToken();
absoluteUrl = ((WebLink)thing).getUrl(); } else { absoluteUrl = serverConfigurationService.getServerUrl() + "/access/content" + contentHostingService.getSiteCollection(siteId) + ((WebLink)thing).getUrl();
absoluteUrl = ((WebLink)thing).getUrl(); } else { absoluteUrl = serverConfigurationService.getServerUrl() + "/access/content" + contentHostingService.getSiteCollection(siteId) + ((WebLink)thing).getUrl();
actor.setAccount(user.getEid(), serverConfigurationService.getServerUrl());