public void init() { fromAddress = "\"" + serverConfigurationService.getString("ui.institution", "Sakai") + " <no-reply@" + serverConfigurationService.getServerName() + ">\""; }
@Override public boolean allowAllContent() { // Turntin reports errors when content is submitted that it can't check originality against. So we will block unsupported content. return serverConfigurationService.getBoolean(PROP_ACCEPT_ALL_FILES, false); }
public String[] getAcceptableFileExtensions() { String[] extensions = serverConfigurationService.getStrings(PROP_ACCEPTABLE_FILE_EXTENSIONS); if (extensions != null && extensions.length > 0) { return extensions; } return DEFAULT_ACCEPTABLE_FILE_EXTENSIONS; }
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 ); }
T returnValue = defaultValue; if (SETTING_SERVER_NAME.equals(settingName)) { 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(); } else if (SETTING_SERVER_ID.equals(settingName)) { returnValue = (T) serverConfigurationService.getServerIdInstance(); } else { if (defaultValue == null) { returnValue = (T) serverConfigurationService.getString(settingName); if ("".equals(returnValue)) { returnValue = null; } } else { if (defaultValue instanceof Number) { int num = ((Number) defaultValue).intValue(); int value = serverConfigurationService.getInt(settingName, num); returnValue = (T) Integer.valueOf(value); } else if (defaultValue instanceof Boolean) { boolean bool = ((Boolean) defaultValue).booleanValue(); boolean value = serverConfigurationService.getBoolean(settingName, bool); returnValue = (T) Boolean.valueOf(value); } else if (defaultValue instanceof String) { returnValue = (T) serverConfigurationService.getString(settingName, (String) defaultValue);
public void init(){ log.info("init()"); port = serverConfigurationService.getInt("virusScan.port", 3310); host = serverConfigurationService.getString("virusScan.host", "localhost"); enabled = serverConfigurationService.getBoolean("virusScan.enabled", false); }
/** * {@inheritDoc} */ @Override public String getOfficialImagesFileSystemPattern() { return this.serverConfigurationService.getString("profile2.official.image.directory.pattern", "TWO_DEEP"); }
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); }
serverConfigurationService.getString("ui.institution", "Sakai") + " <no-reply@" + serverConfigurationService.getServerName() + ">\""; String productionSiteName = serverConfigurationService.getString("ui.service", "Sakai"); replacementValues.put("userName", user.getDisplayName()); replacementValues.put("userEid", user.getEid()); replacementValues.put("localSakaiName", serverConfigurationService.getString("ui.service", "Sakai")); replacementValues.put("currentUserName", userDirectoryService.getCurrentUser().getDisplayName()); replacementValues.put("localSakaiUrl", serverConfigurationService.getPortalUrl()); replacementValues.put("newPassword", newUserPassword); replacementValues.put("productionSiteName", productionSiteName);
/** * {@inheritDoc} */ @Override public String getServerUrl() { return this.serverConfigurationService.getServerUrl(); }
/** * {@inheritDoc} */ @Override public String getPortalUrl() { return this.serverConfigurationService.getPortalUrl(); }
} else { String server = serverConfigurationService.getServerName(); if ("localhost".equals(server)) { server = "tincanapi.dev.sakaiproject.org"; } else { server = serverConfigurationService.getServerId()+"."+server; actor.setAccount(user.getEid(), serverConfigurationService.getServerUrl());
/** * {@inheritDoc} */ @Override public int getMaxSearchResults() { return this.serverConfigurationService.getInt( "profile2.search.maxSearchResults", ProfileConstants.DEFAULT_MAX_SEARCH_RESULTS); }
/** * {@inheritDoc} */ @Override public String getServerName() { return this.serverConfigurationService.getServerName(); }
T returnValue = defaultValue; if (SETTING_SERVER_NAME.equals(settingName)) { 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(); } else if (SETTING_SERVER_ID.equals(settingName)) { returnValue = (T) serverConfigurationService.getServerIdInstance(); } else { if (defaultValue == null) { returnValue = (T) serverConfigurationService.getString(settingName); if ("".equals(returnValue)) { returnValue = null; if (defaultValue instanceof Number) { int num = ((Number) defaultValue).intValue(); int value = serverConfigurationService.getInt(settingName, num); returnValue = (T) Integer.valueOf(value); } else if (defaultValue instanceof Boolean) { boolean bool = ((Boolean) defaultValue).booleanValue(); boolean value = serverConfigurationService.getBoolean(settingName, bool); returnValue = (T) Boolean.valueOf(value); } else if (defaultValue instanceof String) { returnValue = (T) serverConfigurationService.getString(settingName, (String) defaultValue);
/** * Final initialization, once all dependencies are set. */ public void init() { m_relativeAccessPoint = REFERENCE_ROOT; // construct storage and read m_storage = newStorage(); m_storage.open(); // setup the queue m_digestQueue.clear(); // Resource Bundle String resourceClass = serverConfigurationService.getString(RESOURCECLASS, DEFAULT_RESOURCECLASS); String resourceBundle = serverConfigurationService.getString(RESOURCEBUNDLE, DEFAULT_RESOURCEBUNDLE); rb = new Resource().getLoader(resourceClass, resourceBundle); // USE A TIMER INSTEAD OF CREATING A NEW THREAD -AZ // start(); int digestPeriod = serverConfigurationService.getInt(EMAIL_DIGEST_CHECK_PERIOD_PROPERTY, DIGEST_PERIOD); int digestDelay = serverConfigurationService.getInt(EMAIL_DIGEST_START_DELAY_PROPERTY, DIGEST_DELAY); m_debugBypass = serverConfigurationService.getBoolean(BY_PASS_FOR_DEBUG, false); digestDelay += new Random().nextInt(60); // add some random delay to get the servers out of sync digestTimer.schedule(new DigestTimerTask(), (digestDelay * 1000), (digestPeriod * 1000) ); log.info("init(): email digests will be checked in " + digestDelay + " seconds and then every " + digestPeriod + " seconds while the server is running" ); }
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); }
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() { 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); }