|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.bc.gov.webade.developer.util.PreferenceUtils
Helper class for dealing with WebADE Preferences.
| Constructor Summary | |
PreferenceUtils()
|
|
| Method Summary | |
static ca.bc.gov.webade.Preference |
findPreference(ca.bc.gov.webade.Application app,
java.lang.String subType,
java.lang.String setName,
java.lang.String name)
Extracts a preference from the preferences for a given Application starting with application preferences then checking global preferences. |
static ca.bc.gov.webade.Preference |
findPreference(ca.bc.gov.webade.Preferences globalPreferences,
ca.bc.gov.webade.Preferences applicationPreferences,
ca.bc.gov.webade.Preferences userPreferences,
java.lang.String subType,
java.lang.String setName,
java.lang.String name)
Helper method for extracting a preference from WebADE preferences starting with user preferences, then application preferences, then global preferences. |
static ca.bc.gov.webade.Preference |
findPreference(ca.bc.gov.webade.Preferences preferences,
java.lang.String subType,
java.lang.String setName,
java.lang.String name)
Helper method for extracting a preference from WebADE preferences. |
static java.lang.String |
getPreferenceValue(ca.bc.gov.webade.Preference preference)
Extracts the prefrence value form a preference assumed to hold only one value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PreferenceUtils()
| Method Detail |
public static ca.bc.gov.webade.Preference findPreference(ca.bc.gov.webade.Application app,
java.lang.String subType,
java.lang.String setName,
java.lang.String name)
throws ca.bc.gov.webade.WebADEException
app - The WebADE Application.subType - The preference subType.setName - The preference setName.name - The preference name.
ca.bc.gov.webade.WebADEException - Any exception coming out of the WebADE preference
calls.
public static ca.bc.gov.webade.Preference findPreference(ca.bc.gov.webade.Preferences globalPreferences,
ca.bc.gov.webade.Preferences applicationPreferences,
ca.bc.gov.webade.Preferences userPreferences,
java.lang.String subType,
java.lang.String setName,
java.lang.String name)
throws ca.bc.gov.webade.WebADEException
globalPreferences - Global Preferences.applicationPreferences - Application Preferences.userPreferences - User Preferences.subType - The preference subType.setName - The preference setName.name - The preference name.
ca.bc.gov.webade.WebADEException - Any exception coming out of the WebADE preference
calls.
public static ca.bc.gov.webade.Preference findPreference(ca.bc.gov.webade.Preferences preferences,
java.lang.String subType,
java.lang.String setName,
java.lang.String name)
throws ca.bc.gov.webade.WebADEException
preferences - Preferences from WebADEsubType - The preference subTypesetName - The preference setNamename - The preference name
ca.bc.gov.webade.WebADEException - Any exception coming out of the WebADE preference
calls.public static java.lang.String getPreferenceValue(ca.bc.gov.webade.Preference preference)
preference -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||