info.magnolia.cms.core
Class SystemProperty
java.lang.Object
info.magnolia.cms.core.SystemProperty
public final class SystemProperty
- extends java.lang.Object
A global holder for system-wide configuration properties.
- Version:
- 2.0 $Id: SystemProperty.java 41137 2011-01-06 18:19:25Z gjoseph $
- Author:
- Sameer charles
- See Also:
PropertiesInitializer
Method Summary |
static boolean |
getBooleanProperty(java.lang.String name)
Returns a boolean property, returning false if the property is not set. |
static java.util.Properties |
getProperties()
|
static java.lang.String |
getProperty(java.lang.String name)
|
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
|
static java.util.Map |
getPropertyList()
Deprecated. since 3.0 - use getProperties() instead |
static boolean |
hasProperty(java.lang.String name)
|
static void |
setProperty(java.lang.String name,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAGNOLIA_REPOSITORIES_CONFIG
public static final java.lang.String MAGNOLIA_REPOSITORIES_CONFIG
- See Also:
- Constant Field Values
MAGNOLIA_EXCHANGE_HISTORY
public static final java.lang.String MAGNOLIA_EXCHANGE_HISTORY
- See Also:
- Constant Field Values
MAGNOLIA_UPLOAD_TMPDIR
public static final java.lang.String MAGNOLIA_UPLOAD_TMPDIR
- See Also:
- Constant Field Values
MAGNOLIA_CACHE_STARTDIR
public static final java.lang.String MAGNOLIA_CACHE_STARTDIR
- See Also:
- Constant Field Values
MAGNOLIA_APP_ROOTDIR
public static final java.lang.String MAGNOLIA_APP_ROOTDIR
- See Also:
- Constant Field Values
MAGNOLIA_BOOTSTRAP_ROOTDIR
public static final java.lang.String MAGNOLIA_BOOTSTRAP_ROOTDIR
- See Also:
- Constant Field Values
MAGNOLIA_BOOTSTRAP_SAMPLES
public static final java.lang.String MAGNOLIA_BOOTSTRAP_SAMPLES
- See Also:
- Constant Field Values
MAGNOLIA_UTF8_ENABLED
public static final java.lang.String MAGNOLIA_UTF8_ENABLED
- See Also:
- Constant Field Values
MAGNOLIA_WEBAPP
public static final java.lang.String MAGNOLIA_WEBAPP
- See Also:
- Constant Field Values
MAGNOLIA_SERVERNAME
public static final java.lang.String MAGNOLIA_SERVERNAME
- See Also:
- Constant Field Values
setProperty
public static void setProperty(java.lang.String name,
java.lang.String value)
- Parameters:
name
- value
-
getProperty
public static java.lang.String getProperty(java.lang.String name)
- Parameters:
name
-
getBooleanProperty
public static boolean getBooleanProperty(java.lang.String name)
- Returns a boolean property, returning
false
if the property is not set.
- Parameters:
name
- property name
- Returns:
- true only if the request property has a value of
true
getProperty
public static java.lang.String getProperty(java.lang.String name,
java.lang.String defaultValue)
- Parameters:
name
- defaultValue
-
hasProperty
public static boolean hasProperty(java.lang.String name)
getPropertyList
public static java.util.Map getPropertyList()
- Deprecated. since 3.0 - use getProperties() instead
getProperties
public static java.util.Properties getProperties()
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.