public class ServerSidePreferences extends Preferences
Modifier and Type | Class and Description |
---|---|
private class |
ServerSidePreferences.Connection |
static class |
ServerSidePreferences.MissingPassword |
Preferences.AbstractSetting<T>, Preferences.ColorKey, Preferences.ListListSetting, Preferences.ListSetting, Preferences.MapListSetting, Preferences.pref, Preferences.PreferenceChangedListener, Preferences.PreferenceChangeEvent<T>, Preferences.Setting<T>, Preferences.SettingVisitor, Preferences.StringSetting, Preferences.writeExplicitly
Modifier and Type | Field and Description |
---|---|
private ServerSidePreferences.Connection |
connection |
arrayDefaults, arrayProperties, collectionDefaults, collectionProperties, colornames, defaults, listOfStructsDefaults, listOfStructsProperties, parser, properties
Constructor and Description |
---|
ServerSidePreferences(URL serverUrl) |
Modifier and Type | Method and Description |
---|---|
boolean |
download() |
void |
download(String userName,
String password) |
String |
getPreferencesDir()
Returns the location of the user defined preferences directory
|
void |
load()
Do nothing on load.
|
void |
save()
Do nothing on save.
|
void |
upload()
Use this instead of save() for the ServerSidePreferences, since uploads
are costly while save is called often.
|
addPreferenceChangeListener, deserializeStruct, equalArray, equalCollection, equalListOfStructs, firePreferenceChanged, fromXML, get, get, getAllColors, getAllDefaults, getAllPossiblePreferenceDirs, getAllPrefix, getAllPrefixCollectionKeys, getAllSettings, getArray, getArray, getBoolean, getBoolean, getBoolean, getCacheDirectory, getCollection, getCollection, getColor, getColor, getColor, getColorName, getDefaultColor, getDefaults, getDouble, getInteger, getInteger, getListOfStructs, getListOfStructs, getListOfStructs, getLong, getPluginsDirectory, getPluginSites, getPreferenceFile, getPreferencesDirFile, getUIColor, init, isEqual, parse, parseInnerList, parseMap, parseRoot, parseToplevelList, put, put, putArray, putCollection, putCollectionBounded, putColor, putDefault, putDouble, putInteger, putListOfStructs, putListOfStructs, putLong, putSetting, removeFromCollection, removeObsolete, removePreferenceChangeListener, resetToDefault, serializeStruct, setPluginSites, throwException, toXML, updateSystemProperties, validateXML
private final ServerSidePreferences.Connection connection
public ServerSidePreferences(URL serverUrl)
public String getPreferencesDir()
Preferences
getPreferencesDir
in class Preferences
public void load()
load
in class Preferences
public void save()
save
in class Preferences
public boolean download() throws ServerSidePreferences.MissingPassword
public void upload()