com.waveset.object
Class SystemConfiguration

java.lang.Object
  extended bycom.waveset.object.SystemConfiguration

public class SystemConfiguration
extends java.lang.Object

Set of utilities for accessing the System Configuration object. This isn't a PersistentObject, its a collection of static methods for dealing with Configuration:System Configuration.


Field Summary
static java.lang.String code_id
           
static java.lang.String REPOSITORY_ID
          Repository ID of the system configuration object, where various options are stored.
static java.lang.String REPOSITORY_NAME
          Repository ID of the system configuration object, where various options are stored.
 
Constructor Summary
SystemConfiguration()
           
 
Method Summary
static java.lang.String get(ObjectCache cache, java.lang.String name)
          Get a system configuration property value as a string.
static GenericObject getConfiguration(ObjectCache cache)
          Get the system configuration object.
static GenericObject getConfiguration(ObjectSource objSrc)
          Get the system configuration object.
static java.lang.Object getProperty(ObjectCache cache, java.lang.String name)
          Get a system configuration property value.
static java.lang.Object getProperty(ObjectSource objSrc, java.lang.String name)
          Get a system configuration property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

REPOSITORY_ID

public static final java.lang.String REPOSITORY_ID
Repository ID of the system configuration object, where various options are stored.

See Also:
Constant Field Values

REPOSITORY_NAME

public static final java.lang.String REPOSITORY_NAME
Repository ID of the system configuration object, where various options are stored.

See Also:
Constant Field Values
Constructor Detail

SystemConfiguration

public SystemConfiguration()
Method Detail

getConfiguration

public static GenericObject getConfiguration(ObjectCache cache)
                                      throws WavesetException
Get the system configuration object.

Throws:
WavesetException

getConfiguration

public static GenericObject getConfiguration(ObjectSource objSrc)
                                      throws WavesetException
Get the system configuration object.

Parameters:
objSrc - - an ObjectSource such as a LighthouseContext or a ViewMaster.
Throws:
WavesetException

getProperty

public static java.lang.Object getProperty(ObjectCache cache,
                                           java.lang.String name)
                                    throws WavesetException
Get a system configuration property value. Since these are almost always strings, let that be the default return type.

Throws:
WavesetException

getProperty

public static java.lang.Object getProperty(ObjectSource objSrc,
                                           java.lang.String name)
                                    throws WavesetException
Get a system configuration property value.

Parameters:
objSrc - - an ObjectSource such as a LighthouseContext or a ViewMaster.
Throws:
WavesetException

get

public static java.lang.String get(ObjectCache cache,
                                   java.lang.String name)
                            throws WavesetException
Get a system configuration property value as a string. Since these are almost always strings, let that be the default return type.

Throws:
WavesetException