protected List<String> getTemplatePathExclusions() { List<String> templatePathExclusions = systemConfig.getStringList("transformerDefaults", "jsonVelocity", "templatesPathExclusions"); if (templatePathExclusions == null) { templatePathExclusions = new ArrayList<String>(); } return templatePathExclusions; }
List<String> transformerList = config.getStringList("transformer", thisType); if (transformerList != null) {
globalConfig = new JsonSimpleConfig(); File sysFile = JsonSimpleConfig.getSystemFile(); List<String> subscribers = config.getStringList("config", "subscribers"); if (subscribers != null && !subscribers.isEmpty()) {
/** * Set default configuration * * @param config JSON configuration * @throws IOException if fails to initialise */ private void setConfig(JsonSimpleConfig config) throws IOException { log.debug("Loading the LDAP plugin"); user_object = new LDAPUser(); String url = config.getString(null, "authentication", "ldap", "baseURL"); String baseDN = config.getString(null, "authentication", "ldap", "baseDN"); String idAttribute = config.getString(null, "authentication", "ldap", "idAttribute"); String secPrinc = config.getString(null, "authentication", "ldap", "ldapSecurityPrincipal"); String secCreds = config.getString(null, "authentication", "ldap", "ldapSecurityCredentials"); userAttributes = config.getStringList("authentication", "ldap", "userAttributes"); displayNameAttributes = config.getStringList("authentication", "ldap", "displayNameAttributes"); displayNameDelimiter = config.getString(" ", "authentication", "ldap", "displayNameDelimiter"); useSystemCredForAttributes = config.getBoolean(new Boolean(false), "authentication", "ldap", "useSystemCredForAttributes"); //Need to get these values from somewhere, ie the config file passed in ldapAuth = new LdapAuthenticationHandler(url, baseDN, secPrinc, secCreds, "objectClass", idAttribute); userCache = new HashMap<String, LDAPUser>(); log.debug("Finished loading the LDAP plugin"); }
indexer.search(request, result); JsonSimpleConfig js = new JsonSimpleConfig(result.toString()); for (String oid : js.getStringList("response", "docs", "id")) { DigitalObject object = null; try {
List<String> path = itemConfig.getStringList("sourcePath"); if (path == null) {
"subscriber", "vital", "failure", "emailQueue"); if (emailQueue != null) { emailAddresses = config.getStringList( "subscriber", "vital", "failure", "emailAddress"); if (emailQueue != null) {
Strings.CONFIG_FAILURE, "emailQueue"); if (emailQueue != null) { emailAddresses = config.getStringList( Strings.CONFIG_FAILURE, "emailAddress"); if (emailAddresses != null && !emailAddresses.isEmpty()) {