/** * Tests whether or not the system-config has been properly configured. * * @return <code>true</code> if configured, <code>false</code> if still * using defaults */ public boolean isConfigured() { return getBoolean(false, "configured"); }
autoCommit = globalConfig.getBoolean(true, "indexer", "solr", "autocommit");
harvestRemap = systemConfig.getBoolean(false, "restoreTool", "harvestRemap", "enabled"); oldHarvestFiles = systemConfig.getBoolean(false, "restoreTool", "harvestRemap", "allowOlder"); failOnMissing = systemConfig.getBoolean(true, "restoreTool", "harvestRemap", "failOnMissing"); harvestUpdates = new HashMap<String, String>();
anotarAutoCommit = config.getBoolean(true, "indexer", "anotar", "autocommit"); propertiesId = config.getString(DEFAULT_METADATA_PAYLOAD, useCache = config.getBoolean(true, "indexer", "useCache");
globalConfig = new JsonSimpleConfig(); boolean enabled = globalConfig.getBoolean(true, "messaging", "statistics", "enabled"); if (!enabled) {
boolean deleted = config.getBoolean(false, "deleted"); if (deleted) { log.info("Removing object {}...", oid);
if (autoCommit || config.getBoolean(false, "commit")) { indexer.commit();
} else { doIndex = message.getBoolean(true, "transformer", "indexOnHarvest");
globalConfig = new JsonSimpleConfig(); debug = config.getBoolean(false, "config", "debug"); smtpSsl = config.getBoolean(false, "config", "smtp", "ssl"); smtpTls = config.getBoolean(false, "config", "smtp", "tls"); smtpUsername = config.getString(null, "config", "smtp", "username"); smtpPassword = config.getString(null, "config", "smtp", "password");
File uploadedFile = new File(oid); Boolean deleted = config.getBoolean(false, "deleted"); try { HarvestClient harvestClient = new HarvestClient(configFile,
/** * 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"); }
useIncrement = config.getBoolean(false, "transformerDefaults", "local", "useIncrements"); if (useIncrement) {
boolean isEmbedded = globalConfig.getBoolean(false, "indexer", core, "embedded"); try {
manualConfirmation = config.getBoolean(false, "curation", "curationRequiresConfirmation"); nlaIntegrationEnabled = config.getBoolean(false, "curation", "nlaIntegration", "enabled"); nlaIdProperty = config.getString(NLA_ID_PROPERTY_DEFAULT, "curation", "nlaIntegration", "pidProperty"); useNlaIdForRelationships = config.getBoolean(true, "curation", "nlaIntegration", "useNlaIdForRelationships"); JsonObject nlaIncludeTestNode = config.getObject(
/** * Constructor * * @throws StorageException * if any errors occur */ private static void init() throws StorageException { // Don't instantiate twice if (blobStore != null) { return; } // Grab all our information from config provider = systemConfig.getString("swift", "storage", "blobstore", "provider"); credential = systemConfig.getString("", "storage", "blobstore", "password"); identity = systemConfig.getString("", "storage", "blobstore", "identity"); containerName = systemConfig.getString(DEFAULT_CONTAINER_NAME, "storage", "blobstore", "containerName"); location = systemConfig.getString(null, "storage", "blobstore", "location"); fileSystemLocation = systemConfig.getString(null, "storage", "blobstore", "fileSystemLocation"); gridFsConnectionString = systemConfig.getString(null, "storage", "blobstore", "gridFsConnectionString"); supportsUserMetadataSetting = systemConfig.getBoolean(null, "storage", "blobstore", "supportsUserMetadata"); blobStoreConnect(); }
useSetInStorage = getJsonConfig().getBoolean(false, "harvester", "oai-pmh", "useSetInStorage");
manualConfirmation = systemConfig.getBoolean(false, "curation", "curationRequiresConfirmation");