public class ConfigurationManager extends Object
To specify a different configuration, the system property
dspace.dir should be set to the DSpace installation directory.
Other configuration files are read from the config directory
of the DSpace installation directory.
| Modifier | Constructor and Description |
|---|---|
protected |
ConfigurationManager()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBooleanProperty(String property)
Deprecated.
Get a configuration property as a boolean.
|
static boolean |
getBooleanProperty(String property,
boolean defaultValue)
Deprecated.
Get a configuration property as a boolean, with default.
|
static boolean |
getBooleanProperty(String module,
String property)
Deprecated.
Get a module configuration property as a boolean.
|
static boolean |
getBooleanProperty(String module,
String property,
boolean defaultValue)
Deprecated.
Get a module configuration property as a boolean, with default.
|
static int |
getIntProperty(String property)
Deprecated.
Get a configuration property as an integer
|
static int |
getIntProperty(String property,
int defaultValue)
Deprecated.
Get a configuration property as an integer, with default
|
static int |
getIntProperty(String module,
String property)
Deprecated.
Get a module configuration property as an integer
|
static int |
getIntProperty(String module,
String property,
int defaultValue)
Deprecated.
Get a module configuration property as an integer, with default
|
static long |
getLongProperty(String property)
Deprecated.
Get a configuration property as a long
|
static long |
getLongProperty(String property,
int defaultValue)
Deprecated.
Get a configuration property as an long, with default
|
static long |
getLongProperty(String module,
String property)
Deprecated.
Get a module configuration property as a long
|
static long |
getLongProperty(String module,
String property,
int defaultValue)
Deprecated.
Get a configuration property as an long, with default
|
static Properties |
getProperties()
Deprecated.
Returns all properties in main configuration
|
static Properties |
getProperties(String module)
Deprecated.
Returns all properties for a given module
|
static String |
getProperty(String property)
Deprecated.
Get a configuration property
|
static String |
getProperty(String module,
String property)
Deprecated.
Get a module configuration property value.
|
static boolean |
isConfigured()
Deprecated.
Identify if DSpace is properly configured
|
static Enumeration<?> |
propertyNames()
Deprecated.
Returns an enumeration of all the keys in the DSpace configuration
|
static Enumeration<?> |
propertyNames(String module)
Deprecated.
Returns an enumeration of all the keys in a module configuration
|
public static boolean isConfigured()
public static Properties getProperties()
public static Properties getProperties(String module)
module - the name of the modulepublic static String getProperty(String property)
property - the name of the propertynull if the property
does not exist.public static String getProperty(String module, String property)
module - the name of the module, or null for regular configuration
propertyproperty - the name (key) of the propertynull if the
property does not existpublic static int getIntProperty(String property)
property - the name of the property0 is returned if the
property does not exist. To differentiate between this case and
when the property actually is zero, use getProperty.public static int getIntProperty(String module, String property)
module - the name of the moduleproperty - the name of the property0 is returned if the
property does not exist. To differentiate between this case and
when the property actually is zero, use getProperty.public static int getIntProperty(String property, int defaultValue)
property - the name of the propertydefaultValue - value to return if property is not found or is not an Integer.default is returned if
the property does not exist or is not an Integer. To differentiate between this case
and when the property actually is false, use
getProperty.public static int getIntProperty(String module, String property, int defaultValue)
module - the name of the moduleproperty - the name of the propertydefaultValue - value to return if property is not found or is not an Integer.default is returned if
the property does not exist or is not an Integer. To differentiate between this case
and when the property actually is false, use
getProperty.public static long getLongProperty(String property)
property - the name of the property0 is returned if the
property does not exist. To differentiate between this case and
when the property actually is zero, use getProperty.public static long getLongProperty(String module, String property)
module - the name of the moduleproperty - the name of the property0 is returned if the
property does not exist. To differentiate between this case and
when the property actually is zero, use getProperty.public static long getLongProperty(String property, int defaultValue)
property - the name of the propertydefaultValue - value to return if property is not found or is not a Long.default is returned if
the property does not exist or is not an Integer. To differentiate between this case
and when the property actually is false, use
getProperty.public static long getLongProperty(String module, String property, int defaultValue)
module - the module, or null for regular propertyproperty - the name of the propertydefaultValue - value to return if property is not found or is not a Long.default is returned if
the property does not exist or is not an Integer. To differentiate between this case
and when the property actually is false, use
getProperty.public static boolean getBooleanProperty(String property)
TRUE or YES (case
insensitive.)property - the name of the propertyfalse is returned if
the property does not exist. To differentiate between this case
and when the property actually is false, use
getProperty.public static boolean getBooleanProperty(String module, String property)
TRUE or YES (case
insensitive.)module - the module, or null for regular propertyproperty - the name of the propertyfalse is returned if
the property does not exist. To differentiate between this case
and when the property actually is false, use
getProperty.public static boolean getBooleanProperty(String property, boolean defaultValue)
TRUE or YES (case
insensitive.)property - the name of the propertydefaultValue - value to return if property is not found.default is returned if
the property does not exist. To differentiate between this case
and when the property actually is false, use
getProperty.public static boolean getBooleanProperty(String module, String property, boolean defaultValue)
TRUE or YES (case
insensitive.)module - module, or null for regular propertyproperty - the name of the propertydefaultValue - value to return if property is not found.default is returned if
the property does not exist. To differentiate between this case
and when the property actually is false, use
getProperty.public static Enumeration<?> propertyNames()
As ConfigurationManager is now deprecated, older code using this method should consider using ConfigurationService.getPropertyKeys() directly.
public static Enumeration<?> propertyNames(String module)
As ConfigurationManager is now deprecated, older code using this method should consider using ConfigurationService.getPropertyKeys(String prefix) directly.
module - module, or null for regular propertynull if the module does not exist.Copyright © 2016 DuraSpace. All rights reserved.