info.magnolia.cms.core
Class SystemProperty

java.lang.Object
  extended by info.magnolia.cms.core.SystemProperty

public final class SystemProperty
extends 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

Field Summary
static String MAGNOLIA_APP_ROOTDIR
           
static String MAGNOLIA_BOOTSTRAP_ROOTDIR
           
static String MAGNOLIA_BOOTSTRAP_SAMPLES
           
static String MAGNOLIA_CACHE_STARTDIR
           
static String MAGNOLIA_EXCHANGE_HISTORY
           
static String MAGNOLIA_REPOSITORIES_CONFIG
           
static String MAGNOLIA_SERVERNAME
           
static String MAGNOLIA_UPLOAD_TMPDIR
           
static String MAGNOLIA_UTF8_ENABLED
           
static String MAGNOLIA_WEBAPP
           
 
Method Summary
static boolean getBooleanProperty(String name)
          Returns a boolean property, returning false if the property is not set.
static Properties getProperties()
           
static String getProperty(String name)
           
static String getProperty(String name, String defaultValue)
           
static Map getPropertyList()
          Deprecated. since 3.0 - use getProperties() instead
static boolean hasProperty(String name)
           
static void setProperty(String name, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAGNOLIA_REPOSITORIES_CONFIG

public static final String MAGNOLIA_REPOSITORIES_CONFIG
See Also:
Constant Field Values

MAGNOLIA_EXCHANGE_HISTORY

public static final String MAGNOLIA_EXCHANGE_HISTORY
See Also:
Constant Field Values

MAGNOLIA_UPLOAD_TMPDIR

public static final String MAGNOLIA_UPLOAD_TMPDIR
See Also:
Constant Field Values

MAGNOLIA_CACHE_STARTDIR

public static final String MAGNOLIA_CACHE_STARTDIR
See Also:
Constant Field Values

MAGNOLIA_APP_ROOTDIR

public static final String MAGNOLIA_APP_ROOTDIR
See Also:
Constant Field Values

MAGNOLIA_BOOTSTRAP_ROOTDIR

public static final String MAGNOLIA_BOOTSTRAP_ROOTDIR
See Also:
Constant Field Values

MAGNOLIA_BOOTSTRAP_SAMPLES

public static final String MAGNOLIA_BOOTSTRAP_SAMPLES
See Also:
Constant Field Values

MAGNOLIA_UTF8_ENABLED

public static final String MAGNOLIA_UTF8_ENABLED
See Also:
Constant Field Values

MAGNOLIA_WEBAPP

public static final String MAGNOLIA_WEBAPP
See Also:
Constant Field Values

MAGNOLIA_SERVERNAME

public static final String MAGNOLIA_SERVERNAME
See Also:
Constant Field Values
Method Detail

setProperty

public static void setProperty(String name,
                               String value)
Parameters:
name -
value -

getProperty

public static String getProperty(String name)
Parameters:
name -

getBooleanProperty

public static boolean getBooleanProperty(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 String getProperty(String name,
                                 String defaultValue)
Parameters:
name -
defaultValue -

hasProperty

public static boolean hasProperty(String name)

getPropertyList

public static Map getPropertyList()
Deprecated. since 3.0 - use getProperties() instead


getProperties

public static Properties getProperties()


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.