/** * {@inheritDoc} */ @Override public String getServerName() { return this.serverConfigurationService.getServerName(); }
/** * {@inheritDoc} */ public String getServerName() { return serverConfigurationService.getServerName(); }
public void init() { fromAddress = "\"" + serverConfigurationService.getString("ui.institution", "Sakai") + " <no-reply@" + serverConfigurationService.getServerName() + ">\""; }
public static java.lang.String getServerName() { org.sakaiproject.component.api.ServerConfigurationService service = getInstance(); if (service == null) return null; return service.getServerName(); }
public void init() { fromAddress = "\"" + serverConfigurationService.getString("ui.institution", "Sakai") + " <no-reply@" + serverConfigurationService.getServerName() + ">\""; }
/** * Invoke prior to testing any connections. Caches a host * name to include in search terms. */ public void init() { if (hostName.equals(DEFAULT_HOST_NAME)) { hostName = null; // defaults again at bottom if (hostName == null) { try { hostName = getLocalhostName(); } catch (UnknownHostException e) { if (log.isDebugEnabled()) { log.debug("Unable to get local host name", e); } } } if (hostName == null && serverConfigService != null) { hostName = serverConfigService.getServerName(); } if (hostName == null) { hostName = DEFAULT_HOST_NAME; } } if ( log.isDebugEnabled() ) { log.debug("init(): cached hostName [" + hostName + "]"); } }
protected String getFrom() { return "From: " + "\"" + m_serverConfigurationService.getString("ui.service", "Sakai") + "\" <"+ m_serverConfigurationService.getString("setup.request","no-reply@"+ m_serverConfigurationService.getServerName()) + ">"; }
private void sentNotification(BackfillItemHashResult itemBackfillResult, BackfillItemHashResult publishedItemBackfillResult, RuntimeException error) { final String to = getNotificationEmailAddress(); if ( to == null ) { return; } final String from = "<"+ serverConfigurationService.getString("setup.request","no-reply@" + serverConfigurationService.getServerName()) + ">"; final StringBuilder body = new StringBuilder(); if ( error != null ) { body.append("Job failed with following error message. See logs for full details.").append("\n\n") .append(error.getMessage()) .append("\n\n"); } body.append(jobResultMessage(itemBackfillResult, publishedItemBackfillResult, "\n\n")); emailService.send(from, to, "Backfill Item Hash Job: " + (error == null ? "Success" : "Failure"), body.toString(), to, null, null); }
private void sentNotification(BackfillItemHashResult itemBackfillResult, BackfillItemHashResult publishedItemBackfillResult, RuntimeException error) { final String to = getNotificationEmailAddress(); if ( to == null ) { return; } final String from = "<"+ serverConfigurationService.getString("setup.request","no-reply@" + serverConfigurationService.getServerName()) + ">"; final StringBuilder body = new StringBuilder(); if ( error != null ) { body.append("Job failed with following error message. See logs for full details.").append("\n\n") .append(error.getMessage()) .append("\n\n"); } body.append(jobResultMessage(itemBackfillResult, publishedItemBackfillResult, "\n\n")); emailService.send(from, to, "Backfill Item Hash Job: " + (error == null ? "Success" : "Failure"), body.toString(), to, null, null); }
/** * {@inheritDoc} */ public List<String> getHeader() { List<String> rv = new ArrayList<String>(); rv.add("Content-Type: text/html; charset=UTF-8"); rv.add("Subject: " + getSubject()); rv.add("From: " + getFromAddress()); rv.add("To: " + getSakaiFacade().getServerConfigurationService().getString("setup.request","no-reply@" + getSakaiFacade().getServerConfigurationService().getServerName())); return rv; }
/** * {@inheritDoc} */ public List<String> getHeader() { List<String> rv = new ArrayList<String>(); // Set the content type of the message body to HTML rv.add("Content-Type: text/html; charset=UTF-8"); rv.add("Subject: " + getSubject()); rv.add("From: " + getFromAddress()); rv.add("To: " + getSakaiFacade().getServerConfigurationService().getString("setup.request","no-reply@" + getSakaiFacade().getServerConfigurationService().getServerName())); return rv; }
/** * {@inheritDoc} */ public List<String> getHeader() { List<String> rv = new ArrayList<String>(); // Set the content type of the message body to HTML rv.add("Content-Type: text/html; charset=UTF-8"); rv.add("Subject: " + getSubject()); rv.add("From: " + getFromAddress()); rv.add("To: " + getSakaiFacade().getServerConfigurationService().getString("setup.request","no-reply@" + getSakaiFacade().getServerConfigurationService().getServerName())); return rv; }
/** * {@inheritDoc} */ public List<String> getHeader() { List<String> rv = new ArrayList<String>(); // Set the content type of the message body to HTML rv.add("Content-Type: text/html; charset=UTF-8"); rv.add("Subject: " + getSubject()); rv.add("From: " + getFromAddress()); rv.add("To: " + getSakaiFacade().getServerConfigurationService().getString("setup.request","no-reply@" + getSakaiFacade().getServerConfigurationService().getServerName())); return rv; }
/** * {@inheritDoc} */ public List<String> getHeader() { List<String> rv = new ArrayList<String>(); // Set the content type of the message body to HTML rv.add("Content-Type: text/html; charset=UTF-8"); rv.add("Subject: " + getSubject()); rv.add("From: " + getFromAddress()); rv.add("To: " + getSakaiFacade().getServerConfigurationService().getString("setup.request","no-reply@" + getSakaiFacade().getServerConfigurationService().getServerName())); return rv; }
T returnValue = defaultValue; if (SETTING_SERVER_NAME.equals(settingName)) { returnValue = (T) serverConfigurationService.getServerName(); } else if (SETTING_SERVER_URL.equals(settingName)) { returnValue = (T) serverConfigurationService.getServerUrl();
T returnValue = defaultValue; if (SETTING_SERVER_NAME.equals(settingName)) { returnValue = (T) serverConfigurationService.getServerName(); } else if (SETTING_SERVER_URL.equals(settingName)) { returnValue = (T) serverConfigurationService.getServerUrl();
serverConfigurationService.getString("ui.institution", "Sakai") + " <no-reply@" + serverConfigurationService.getServerName() + ">\"";
serverConfigurationService.getString("ui.institution", "Sakai") + " <no-reply@" + serverConfigurationService.getServerName() + ">\"";
protected String getServerFromAddress() { return getServiceName() +" <" + getSakaiFacade().getServerConfigurationService().getString("setup.request", "no-reply@" + getSakaiFacade().getServerConfigurationService().getServerName())+ ">"; }
} else { String server = serverConfigurationService.getServerName(); if ("localhost".equals(server)) { server = "tincanapi.dev.sakaiproject.org";