|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.util.SimpleDataRecord<UserPreferenceRecord>
org.starhope.appius.user.UserPreferenceRecord
public class UserPreferenceRecord
Provide storage for user preferences
Field Summary | |
---|---|
private int |
myUserID
WRITEME: Document this brpocock@star-hope.org |
private Map<String,String> |
prefs
WRITEME: Document this brpocock@star-hope.org |
private static long |
serialVersionUID
WRITEME: Document this brpocock@star-hope.org |
Fields inherited from class org.starhope.appius.util.SimpleDataRecord |
---|
myLoader, timeLastChanged, timeLastSaved |
Constructor Summary | |
---|---|
UserPreferenceRecord(AbstractUser u)
WRITEME: Document this constructor brpocock@star-hope.org |
Method Summary | |
---|---|
int |
getCacheableID()
Note that all records must have either a numeric ID ( DataRecord.getCacheableID() or a string identifier (
DataRecord.getCacheableIdent() or both. |
String |
getCacheableIdent()
Note that all records must have either a numeric ID ( DataRecord.getCacheableID() or a string identifier (
DataRecord.getCacheableIdent() or both. |
String |
getSubversionRevision()
Return the Subversion revision level of this class's source code file, as supplied via the special "$Rev: " sequence. |
private Map<String,String> |
jsonToMap(org.json.JSONObject jso,
String prefix)
WRITEME: Document this method brpocock@star-hope.org |
void |
save(org.json.JSONObject jso)
WRITEME: Document this method brpocock@star-hope.org |
void |
save(Map<String,String> keys)
WRITEME: Document this method brpocock@star-hope.org |
void |
save(String key,
String value)
WRITEME: Document this method brpocock@star-hope.org |
Methods inherited from class org.starhope.appius.util.SimpleDataRecord |
---|
changed, checkStale, compareTo, equals, finalize, getRecordLoader, getTimeLastChanged, getTimeLastSaved, hashCode, isBeingLoaded, markAsLoaded, markAsSaved, markForReload, onRemove, onRetrieve, onStore, save, setRecordLoader, toString |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private int myUserID
private final Map<String,String> prefs
Constructor Detail |
---|
public UserPreferenceRecord(AbstractUser u) throws AlreadyExistsException
u
- WRITEME
AlreadyExistsException
- if the user already has a
preferences fileMethod Detail |
---|
public int getCacheableID() throws NotFoundException
DataRecord
DataRecord.getCacheableID()
or a string identifier (
DataRecord.getCacheableIdent()
or both.
NotFoundException
- if the item doesn't have a distinct
numeric IDDataRecord.getCacheableID()
public String getCacheableIdent() throws NotFoundException
DataRecord
DataRecord.getCacheableID()
or a string identifier (
DataRecord.getCacheableIdent()
or both.
NotFoundException
- if the item doesn't have a distinct
string identifierDataRecord.getCacheableIdent()
public String getSubversionRevision()
HasSubversionRevision
Return the Subversion revision level of this class's source code file, as supplied via the special "$Rev: " sequence.
As an example,the Subversion revision string for this file is "$Rev: 1968 $"
@Override public String getSubversionRevision () { return "$Rev: "; }
HasSubversionRevision.getSubversionRevision()
private Map<String,String> jsonToMap(org.json.JSONObject jso, String prefix)
jso
- WRITEMEprefix
- WRITEME
public void save(org.json.JSONObject jso)
jso
- JSON values to be savedpublic void save(Map<String,String> keys)
keys
- WRITEMEpublic void save(String key, String value)
key
- WRITEMEvalue
- WRITEME
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |