ca.bc.gov.webade.config
Class PreferencesXMLFileLoader

java.lang.Object
  extended byca.bc.gov.webade.config.PreferencesXMLFileLoader

public class PreferencesXMLFileLoader
extends java.lang.Object

Author:
jross

Field Summary
static java.lang.String WEBADE_PREFERENCE_FILE_LOCATION
          System property name for property containing the path to the "webade-preference-file-location" containing the XML file that overrides preferences stored in the database for the specific installation.
 
Constructor Summary
PreferencesXMLFileLoader(java.io.File file)
           
PreferencesXMLFileLoader(java.lang.String fileLocation)
           
 
Method Summary
 Preferences getApplicationPreferences(java.lang.String applicationAcronym)
           
 Preferences getWebADEPreferences(java.lang.String applicationAcronym)
           
static java.lang.String getWebADEPreferencesFileLocation()
           
 void loadXml()
           
 void loadXml(java.io.File file)
           
 void loadXml(java.lang.String fileLocation)
           
static void setWebADEPreferencesFileLocation(java.lang.String webADEPreferencesFileLocation)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEBADE_PREFERENCE_FILE_LOCATION

public static final java.lang.String WEBADE_PREFERENCE_FILE_LOCATION
System property name for property containing the path to the "webade-preference-file-location" containing the XML file that overrides preferences stored in the database for the specific installation.

See Also:
Constant Field Values
Constructor Detail

PreferencesXMLFileLoader

public PreferencesXMLFileLoader(java.io.File file)
                         throws WebADEException
Parameters:
file -
Throws:
WebADEException

PreferencesXMLFileLoader

public PreferencesXMLFileLoader(java.lang.String fileLocation)
                         throws WebADEException
Parameters:
fileLocation -
Throws:
WebADEException
Method Detail

loadXml

public void loadXml()
             throws WebADEException
Throws:
WebADEException

loadXml

public void loadXml(java.lang.String fileLocation)
             throws WebADEException
Parameters:
fileLocation -
Throws:
WebADEException

loadXml

public void loadXml(java.io.File file)
             throws WebADEException
Parameters:
file -
Throws:
WebADEException

getApplicationPreferences

public Preferences getApplicationPreferences(java.lang.String applicationAcronym)
                                      throws WebADEException
Parameters:
applicationAcronym -
Returns:
The application's preferences from the config file.
Throws:
WebADEException

getWebADEPreferences

public Preferences getWebADEPreferences(java.lang.String applicationAcronym)
                                 throws WebADEException
Parameters:
applicationAcronym -
Returns:
The application's WebADE preferences from the config file.
Throws:
WebADEException

getWebADEPreferencesFileLocation

public static java.lang.String getWebADEPreferencesFileLocation()
Returns:
The path to the WebADE Preferences XML file.

setWebADEPreferencesFileLocation

public static void setWebADEPreferencesFileLocation(java.lang.String webADEPreferencesFileLocation)
Parameters:
webADEPreferencesFileLocation - The path to the WebADE Preferences XML file.