| org.tigris.scarab.om.BaseGlobalParameterManager org.tigris.scarab.om.GlobalParameterManager
GlobalParameterManager | public class GlobalParameterManager extends BaseGlobalParameterManager (Code) | | This class manages GlobalParameter objects. Global is used a bit
loosely here. Parameters can be module scoped as well. for example,
the email parameters have a global set which is the default, if the
module does not provide alternatives.
author: John McNally version: $Id: GlobalParameterManager.java 9977 2005-12-09 00:40:59Z hair $ |
Method Summary | |
public static boolean | getBoolean(String name) | public static boolean | getBoolean(String name, Module module) | public static boolean | getBooleanFromHierarchy(String key, Module module, boolean def) Recursively look up for the existence of the key. | public static String | getString(String key) | public static String | getString(String name, Module module) | public static String | getStringFromHierarchy(String key, Module module, String def) Recursively look up for the existence of the key in the
module hierarchy. | protected Persistent | putInstanceImpl(Persistent om) | public static void | setBoolean(String name, boolean value) | public static void | setBoolean(String name, Module module, boolean value) | public static void | setString(String name, String value) | public static void | setString(String name, Module module, String value) |
GlobalParameterManager | public GlobalParameterManager() throws TorqueException(Code) | | Creates a new GlobalParameterManager instance.
exception: TorqueException - if an error occurs |
getBoolean | public static boolean getBoolean(String name) throws TorqueException(Code) | | |
getBoolean | public static boolean getBoolean(String name, Module module) throws TorqueException(Code) | | |
getBooleanFromHierarchy | public static boolean getBooleanFromHierarchy(String key, Module module, boolean def)(Code) | | Recursively look up for the existence of the key.
Further details, @see #getBooleanFromHierarchy(String key, Module module, boolean def)
If no value was not found, return "def" instead.
Parameters: key - Parameters: module - Parameters: def - |
getStringFromHierarchy | public static String getStringFromHierarchy(String key, Module module, String def)(Code) | | Recursively look up for the existence of the key in the
module hierarchy. Backtrack towards the module root.
If no value was found, check for the existence of a
module-independent global parameter.
If still no value found, check for the Turbine
configuration property with the same key.
If still no definition found, return the parameter
"def" instead.
Parameters: key - Parameters: module - Parameters: def - |
putInstanceImpl | protected Persistent putInstanceImpl(Persistent om) throws TorqueException(Code) | | |
setBoolean | public static void setBoolean(String name, boolean value) throws TorqueException(Code) | | |
setBoolean | public static void setBoolean(String name, Module module, boolean value) throws TorqueException(Code) | | |
setString | public static void setString(String name, String value) throws TorqueException(Code) | | |
|
|