public abstract class AbstractPrefsManager
extends java.lang.Object
Constructor and Description |
---|
AbstractPrefsManager() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
getFilenameRoot() |
java.lang.String |
getPref(java.lang.String key,
UserAccount account)
Returns the pref value for the specified key, for a user account.
|
java.util.Map<java.lang.String,java.lang.String> |
getPrefs(UserAccount account)
Returns all the prefs for a user account.
|
protected abstract boolean |
isOrgLevel() |
void |
reset(UserAccount account)
Clears the stored prefs for the specified user.
|
boolean |
resetAll()
Clears the stored prefs for all users.
|
void |
setPrefs(JSONObject attribs,
UserAccount account)
Sets the prefs for the specified user account.
|
protected abstract java.lang.String getFilenameRoot()
protected abstract boolean isOrgLevel()
public void setPrefs(JSONObject attribs, UserAccount account)
attribs
- prefs.account
- UserAccount instance.public java.lang.String getPref(java.lang.String key, UserAccount account)
key
- Key.account
- UserAccount instance.public java.util.Map<java.lang.String,java.lang.String> getPrefs(UserAccount account)
account
- UserAccount instance.public void reset(UserAccount account)
account
- UserAccount instance.public boolean resetAll()