public boolean isSecureSupported() { String portalUrl = ServerConfigurationService.getPortalUrl(); if ( portalUrl == null ) return false; if ( portalUrl.startsWith("https:") ) return true; return false; } }
/** * @inheritDoc */ protected String getTag(String title, boolean shouldUseHtml) { StringBuilder buf = new StringBuilder(); if (shouldUseHtml) { buf.append("<br/><hr/><br/>"); String portalUrl = "<a href=\"" + ServerConfigurationService.getPortalUrl() + "\" >" + ServerConfigurationService.getPortalUrl() + "<a/>"; buf.append( MessageFormat.format( rb.getString("automsg1"), new Object[]{ServerConfigurationService.getString("ui.service", "Sakai"), portalUrl, title} )); buf.append( "<br/>" + rb.getString("automsg2")+"<br/>" ); } else { buf.append("\n----------------------\n" ); buf.append( MessageFormat.format( rb.getString("automsg1"), new Object[]{ServerConfigurationService.getString("ui.service", "Sakai"), ServerConfigurationService.getPortalUrl(), title} )); buf.append( "\n" + rb.getString("automsg2") + "\n" ); } return buf.toString(); }
/** * @inheritDoc */ protected String getTag(String title, boolean shouldUseHtml) { if (shouldUseHtml) { return rb.getFormattedMessage("noti.tag.html", new Object[]{ServerConfigurationService.getString("ui.service", "Sakai"), ServerConfigurationService.getPortalUrl(), title}); } else { return rb.getFormattedMessage("noti.tag", new Object[]{ServerConfigurationService.getString("ui.service", "Sakai"), ServerConfigurationService.getPortalUrl(), title}); } }
.getPortalUrl() + "/error-reported"));
/** * Returns the global feed generator string. * * @param siteId * The site id to get the feed description from * * @return String * The global feed generator string. */ public String getPodfeedGenerator(String siteId) { // Generator consists of 3 parts, first 2 pulled from sakai.properties: // ui.service - institution name // version.service - version number for the instance // last part is url of this instance final String localSakaiName = ServerConfigurationService.getString("ui.service","Sakai"); //localsakainame final String versionNumber = ServerConfigurationService.getString("version.service", "?");//dev final String portalUrl = ServerConfigurationService.getPortalUrl(); //last part exactly http:// final String generatorString = localSakaiName + " " + versionNumber + " " + portalUrl.substring(0, portalUrl.lastIndexOf("/")+1); return generatorString; }
.append(ServerConfigurationService.getString("ui.service", "Sakai")) .append(" (<a href=\"") .append(ServerConfigurationService.getPortalUrl()) .append("\">") .append(ServerConfigurationService.getPortalUrl()) .append("</a>") .append(rl.getString("SiteEmailNotificationRWiki.3")) .append(ServerConfigurationService.getString("ui.service", "Sakai")) .append(" (") .append(ServerConfigurationService.getPortalUrl()) .append(rl.getString("SiteEmailNotificationRWiki.3")) .append(rl.getString("SiteEmailNotificationRWiki.35"))
.append(ServerConfigurationService.getString("ui.service", "Sakai")) .append(" (") .append(ServerConfigurationService.getPortalUrl()) .append(") \n\n") .append(rl.getString("SiteEmailNotificationRWiki.13"))
.append(ServerConfigurationService.getString("ui.service", "Sakai")) .append(" (") .append(ServerConfigurationService.getPortalUrl()) .append(") \n\n") .append(rl.getString("SiteEmailNotificationRWiki.13"))
/** * @inheritDoc */ protected String getTag(String title, boolean shouldUseHtml) { if (shouldUseHtml) { return ("<hr/><br/>" + rb.getString("this") + " " + ServerConfigurationService.getString("ui.service", "Sakai") + " (<a href=\"" + ServerConfigurationService.getPortalUrl() + "\">" + ServerConfigurationService.getPortalUrl() + "</a>) " + rb.getString("forthe") + " " + title + " " + rb.getString("site") + "<br/>" + rb.getString("youcan") + "<br/>"); } else { return (rb.getString("separator") + "\n" + rb.getString("this") + " " + ServerConfigurationService.getString("ui.service", "Sakai") + " (" + ServerConfigurationService.getPortalUrl() + ") " + rb.getString("forthe") + " " + title + " " + rb.getString("site") + "\n" + rb.getString("youcan") + "\n"); } }
String problem = throwableDisplay(t); String problemdigest = computeSha1(problem); String postAddr = ServerConfigurationService.getPortalUrl() + "/error-report"; String requestURI = req.getRequestURI();
String url = ServerConfigurationService.getPortalUrl()+ "/site/"+ siteId; try
String url = ServerConfigurationService.getPortalUrl()+ "/site/"+ siteId;
toolMap.put("toolInline", Boolean.valueOf(toolInline)); String directToolUrl = ServerConfigurationService.getPortalUrl() + "/" + DirectToolHandler.URL_FRAGMENT +"/" + Web.escapeUrl(placement.getId()) + "/"; toolMap.put("directToolUrl", directToolUrl);
toolMap.put("toolInline", Boolean.valueOf(toolInline)); String directToolUrl = ServerConfigurationService.getPortalUrl() + "/" + DirectToolHandler.URL_FRAGMENT +"/" + Web.escapeUrl(placement.getId()) + "/"; toolMap.put("directToolUrl", directToolUrl);
switchRoleUrl = ServerConfigurationService.getPortalUrl() + "/role-switch-out/" + siteId switchRoleUrl = ServerConfigurationService.getPortalUrl() + "/role-switch/" + siteId switchRoleUrl = ServerConfigurationService.getPortalUrl() + "/role-switch/" + siteId
switchRoleUrl = ServerConfigurationService.getPortalUrl() + "/role-switch-out/" + siteId switchRoleUrl = ServerConfigurationService.getPortalUrl() + "/role-switch/" + siteId switchRoleUrl = ServerConfigurationService.getPortalUrl() + "/role-switch/" + siteId
rcontext.put("portalPath",ServerConfigurationService.getPortalUrl()); rcontext.put("timeoutDialogEnabled",Boolean.valueOf(ServerConfigurationService.getBoolean("timeoutDialogEnabled", true))); rcontext.put("timeoutDialogWarningSeconds", Integer.valueOf(ServerConfigurationService.getInt("timeoutDialogWarningSeconds", 600)));
rcontext.put("portalPath",ServerConfigurationService.getPortalUrl()); rcontext.put("timeoutDialogEnabled",Boolean.valueOf(ServerConfigurationService.getBoolean("timeoutDialogEnabled", true))); rcontext.put("timeoutDialogWarningSeconds", Integer.valueOf(ServerConfigurationService.getInt("timeoutDialogWarningSeconds", 600)));