public interface IPreferencesDAO
Modifier and Type | Method and Description |
---|---|
boolean |
existsKey(String strUserId,
String strKey)
Cheks if a preference key exists
|
boolean |
existsValueForKey(String strKey,
String strValue)
Checks if a value is already used for a preference given key
|
List<String> |
getUserId(String strKey,
String strValue)
Get the list of user id associated with the given key and value
|
List<String> |
keys(String strUserId)
Get all preference keys for a given user
|
String |
load(String strUserId,
String strKey,
String strDefault)
Get a preference for a given user
|
void |
remove(String strUserId)
Clear all preferences for a given user
|
void |
removeKey(String strUserId,
String strKey)
Clear all preferences for a given user
|
void |
removeKeyPrefix(String strUserId,
String strKeyPrefix)
Clear all preferences for a given user
|
void |
store(String strUserId,
String strKey,
String strValue)
Store a preference for a given user
|
String load(String strUserId, String strKey, String strDefault)
strUserId
- The user's IDstrKey
- The preference's keystrDefault
- The default valueList<String> getUserId(String strKey, String strValue)
strKey
- The preference's keystrValue
- The preference's valuevoid store(String strUserId, String strKey, String strValue)
strUserId
- The user's IDstrKey
- The preference's keystrValue
- The valueList<String> keys(String strUserId)
strUserId
- The user's IDvoid remove(String strUserId)
strUserId
- The user's IDvoid removeKey(String strUserId, String strKey)
strUserId
- The user's IDstrKey
- The preference's keyvoid removeKeyPrefix(String strUserId, String strKeyPrefix)
strUserId
- The user's IDstrKeyPrefix
- The key prefixboolean existsKey(String strUserId, String strKey)
strUserId
- The User IDstrKey
- The Pref keyCopyright © 2020 City of Paris. All rights reserved.