info.magnolia.cms.core
Class SystemProperty

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

Deprecated. since 4.5, use MagnoliaConfigurationProperties

public final class SystemProperty
extends Object

A global holder for system-wide configuration properties.

See Also:
PropertiesInitializer

Field Summary
static String MAGNOLIA_APP_ROOTDIR
          Deprecated.  
static String MAGNOLIA_BOOTSTRAP_ROOTDIR
          Deprecated.  
static String MAGNOLIA_BOOTSTRAP_SAMPLES
          Deprecated.  
static String MAGNOLIA_CACHE_STARTDIR
          Deprecated.  
static String MAGNOLIA_CONTEXTPATH
          Deprecated.  
static String MAGNOLIA_EXCHANGE_HISTORY
          Deprecated.  
static String MAGNOLIA_REPOSITORIES_CONFIG
          Deprecated.  
static String MAGNOLIA_REPOSITORIES_HOME
          Deprecated.  
static String MAGNOLIA_SERVERNAME
          Deprecated.  
static String MAGNOLIA_UPLOAD_TMPDIR
          Deprecated.  
static String MAGNOLIA_UTF8_ENABLED
          Deprecated.  
static String MAGNOLIA_WEBAPP
          Deprecated.  
 
Method Summary
static void clear()
          Deprecated.  
static boolean getBooleanProperty(String name)
          Deprecated. since 4.5, use MagnoliaConfigurationProperties
static Properties getProperties()
          Deprecated. since 4.5 - while this still "works" and returns an aggregate of the local properties and those provided by MagnoliaConfigurationProperties, writing to this Property object will not be reflected anywhere.
static String getProperty(String name)
          Deprecated. since 4.5, use MagnoliaConfigurationProperties
static String getProperty(String name, String defaultValue)
          Deprecated. since 4.5, use MagnoliaConfigurationProperties
static boolean hasProperty(String name)
          Deprecated. since 4.5, use MagnoliaConfigurationProperties
static void setMagnoliaConfigurationProperties(MagnoliaConfigurationProperties magnoliaConfigurationProperties)
          Deprecated. since 4.5 - this is only here to allow tests to work until their tested classes are all converted.
static void setProperty(String name, String value)
          Deprecated. since 4.5, use MagnoliaConfigurationProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAGNOLIA_REPOSITORIES_HOME

public static final String MAGNOLIA_REPOSITORIES_HOME
Deprecated. 
See Also:
Constant Field Values

MAGNOLIA_REPOSITORIES_CONFIG

public static final String MAGNOLIA_REPOSITORIES_CONFIG
Deprecated. 
See Also:
Constant Field Values

MAGNOLIA_EXCHANGE_HISTORY

public static final String MAGNOLIA_EXCHANGE_HISTORY
Deprecated. 
See Also:
Constant Field Values

MAGNOLIA_UPLOAD_TMPDIR

public static final String MAGNOLIA_UPLOAD_TMPDIR
Deprecated. 
See Also:
Constant Field Values

MAGNOLIA_CACHE_STARTDIR

public static final String MAGNOLIA_CACHE_STARTDIR
Deprecated. 
See Also:
Constant Field Values

MAGNOLIA_APP_ROOTDIR

public static final String MAGNOLIA_APP_ROOTDIR
Deprecated. 
See Also:
Constant Field Values

MAGNOLIA_BOOTSTRAP_ROOTDIR

public static final String MAGNOLIA_BOOTSTRAP_ROOTDIR
Deprecated. 
See Also:
Constant Field Values

MAGNOLIA_BOOTSTRAP_SAMPLES

public static final String MAGNOLIA_BOOTSTRAP_SAMPLES
Deprecated. 
See Also:
Constant Field Values

MAGNOLIA_UTF8_ENABLED

public static final String MAGNOLIA_UTF8_ENABLED
Deprecated. 
See Also:
Constant Field Values

MAGNOLIA_WEBAPP

public static final String MAGNOLIA_WEBAPP
Deprecated. 
See Also:
Constant Field Values

MAGNOLIA_SERVERNAME

public static final String MAGNOLIA_SERVERNAME
Deprecated. 
See Also:
Constant Field Values

MAGNOLIA_CONTEXTPATH

public static final String MAGNOLIA_CONTEXTPATH
Deprecated. 
See Also:
Constant Field Values
Method Detail

setProperty

public static void setProperty(String name,
                               String value)
Deprecated. since 4.5, use MagnoliaConfigurationProperties


getProperty

public static String getProperty(String name)
Deprecated. since 4.5, use MagnoliaConfigurationProperties


getBooleanProperty

public static boolean getBooleanProperty(String name)
Deprecated. since 4.5, use MagnoliaConfigurationProperties

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)
Deprecated. since 4.5, use MagnoliaConfigurationProperties


hasProperty

public static boolean hasProperty(String name)
Deprecated. since 4.5, use MagnoliaConfigurationProperties


getProperties

public static Properties getProperties()
Deprecated. since 4.5 - while this still "works" and returns an aggregate of the local properties and those provided by MagnoliaConfigurationProperties, writing to this Property object will not be reflected anywhere.


setMagnoliaConfigurationProperties

public static void setMagnoliaConfigurationProperties(MagnoliaConfigurationProperties magnoliaConfigurationProperties)
Deprecated. since 4.5 - this is only here to allow tests to work until their tested classes are all converted.


clear

public static void clear()
Deprecated. 
Since:
4.5 needed to clear up the hacks above, in tests.


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