|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PreferenceDataHandler
This is an interface used by the PreferenceManager for retrieving and storing data into the data-store, which could be an XML file, a properties file or a database. The actual datastore used and format of data depends on the implementation of this interface.
The lowest unit of transfer between the PreferenceManager and a data-store is a Preference.
PreferenceManager
,
Preference
Method Summary | |
---|---|
java.util.Collection |
getAllPreferences()
Returns all the preferences from the store. |
Preference |
getPreference(java.lang.String preferenceId)
Loads a particular Preference using the Preference Id passed. |
java.util.Collection |
getPreferenceNameList()
Returns a list of names of all Preferences currently for the instance of Insight from the store. |
void |
savePreferences(java.util.List preferences)
Saves the passed preferences to the store. |
Method Detail |
---|
java.util.Collection getPreferenceNameList()
java.util.Collection getAllPreferences()
Preference getPreference(java.lang.String preferenceId)
preferenceId
- The id of the Preference to be loaded
void savePreferences(java.util.List preferences) throws PreferenceHandlerStoreException
preferences
- The Preferences to store.
PreferenceHandlerStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |