ca.bc.gov.webade.config
Class PreferencesXMLFileLoader
java.lang.Object
ca.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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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.