/** * {@inheritDoc} */ @Override public String getOfficialImageAttribute() { return this.serverConfigurationService.getString("profile2.official.image.attribute", ProfileConstants.USER_PROPERTY_JPEG_PHOTO); }
/** * {@inheritDoc} */ @Override public String getOfficialImagesFileSystemPattern() { return this.serverConfigurationService.getString("profile2.official.image.directory.pattern", "TWO_DEEP"); }
/** * {@inheritDoc} */ @Override public String getServiceName() { return this.serverConfigurationService.getString("ui.service", ProfileConstants.SAKAI_PROP_SERVICE_NAME); }
public void init() { log.info("init()"); receiverAddress = serverConfigurationService.getString("urkund.address"); username = serverConfigurationService.getString("urkund.username"); password = serverConfigurationService.getString("urkund.password"); apiURL = serverConfigurationService.getString("urkund.apiURL", DEFAULT_API_URL); // Timeout period in ms for network connections (default 180s). Set to 0 to disable timeout. connTimeout = serverConfigurationService.getInt("urkund.networkTimeout", DEFAULT_TIMEOUT); }
public void init() { log.info("init()"); secretKey = serverConfigurationService.getString("compilatio.secretKey"); apiURL = serverConfigurationService.getString("compilatio.apiURL", DEFAULT_API_URL); // Timeout period in ms for network connections (default 180s). Set to 0 to disable timeout. compilatioConnTimeout = serverConfigurationService.getInt("compilatio.networkTimeout", DEFAULT_TIMEOUT); }
public static java.lang.String getString(java.lang.String param0) { org.sakaiproject.component.api.ServerConfigurationService service = getInstance(); if (service == null) return null; return service.getString(param0); }
public void init() { fromAddress = "\"" + serverConfigurationService.getString("ui.institution", "Sakai") + " <no-reply@" + serverConfigurationService.getServerName() + ">\""; }
public static java.lang.String getString(java.lang.String param0, java.lang.String param1) { org.sakaiproject.component.api.ServerConfigurationService service = getInstance(); if (service == null) return null; return service.getString(param0, param1); }
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"); }
/** * Initialization */ public void init() { portalUseSectionTitle = scs.getBoolean( SAK_PROP_PORTAL_USE_SECTION_TITLE, false ); portalUseSecTitlePreferredCategory = scs.getString( SAK_PROP_PORTAL_USE_SEC_TITLE_PREFERRED_CAT, DEFAULT_PREFERRED_CAT ); }
public void init() { fromAddress = "\"" + serverConfigurationService.getString("ui.institution", "Sakai") + " <no-reply@" + serverConfigurationService.getServerName() + ">\""; }
/** * {@inheritDoc} */ public String getCalendarFilePath() { String path = serverConfigurationService.getString("calendar.ics.generation.path", System.getProperty("java.io.tmpdir")); //ensure trailing slash if(!StringUtils.endsWith(path, File.separator)) { path = path + File.separator; } return path; }
public void init() { maxRetry = Long.valueOf(serverConfigurationService.getInt("urkund.maxRetry", 20)); spoofEmailContext = serverConfigurationService.getString("urkund.spoofemailcontext", null); }
private void loadResources(ServerConfigurationService serverConfigurationService) { resourceClass = serverConfigurationService.getString(RESOURCECLASS, DEFAULT_RESOURCECLASS); resourceBundle = serverConfigurationService.getString(RESOURCEBUNDLE, DEFAULT_RESOURCEBUNDLE); rb = new Resource().getLoader(resourceClass, resourceBundle); }
private static boolean findTrustedConsumer(String oauth_consumer_key, String trustedConsumerProp) { boolean isTrusted = false; ServerConfigurationService cnf = (ServerConfigurationService) ComponentManager .get(ServerConfigurationService.class); final String trustedConsumersConfig = cnf.getString(trustedConsumerProp, null); if (BasicLTIUtil.isNotBlank(trustedConsumersConfig)) { List<String> consumersList = Arrays.asList(trustedConsumersConfig.split(":")); if (consumersList.contains(oauth_consumer_key)) { isTrusted = true; } } return isTrusted; }
/** * {@inheritDoc} * This particular implementation ignores the location parameter and just goes off of * configured defaults or overriding properties (found in sakai.properties) */ public ResourceLoader getResourceLoader(String location) { //return new ResourceLoader(location); String resourceClass = getServerConfigurationService().getString(RESOURCECLASS, DEFAULT_RESOURCECLASS); String resourceBundle = getServerConfigurationService().getString(RESOURCEBUNDLE, DEFAULT_RESOURCEBUNDLE); ResourceLoader loader = new Resource().getLoader(resourceClass, resourceBundle); return loader; }
public void init(){ serviceUrl = serverConfigurationService.getString("vericite.serviceUrl", ""); consumer = serverConfigurationService.getString("vericite.consumer", ""); consumerSecret = serverConfigurationService.getString("vericite.consumerSecret", ""); userUrlCache = memoryService.createCache("com.vericite.ContentReviewServiceVeriCite.userUrlCache", new SimpleConfiguration<>(10000, CACHE_EXPIRE_URLS_MINS * 60, -1)); contentScoreCache = memoryService.createCache("com.vericite.ContentReviewServiceVeriCite.contentScoreCache", new SimpleConfiguration<>(10000, CONTENT_SCORE_CACHE_MINS * 60, -1)); assignmentLastCheckedCache = memoryService.createCache("com.vericite.ContentReviewServiceVeriCite.assignmentLastCheckedCache", new SimpleConfiguration<>(10000, CONTENT_SCORE_CACHE_MINS * 60, -1)); assignmentTitleCache = memoryService.getCache("com.vericite.ContentReviewServiceVeriCite.assignmentTitleCache"); showPreliminary = serverConfigurationService.getBoolean("contentreview.config.show_preliminary_score", true); }
/** * {@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; }