public interface IUserPreferencesService
| Modifier and Type | Method and Description |
|---|---|
void |
clear(String strUserId)
Clear all preferences for a given user
|
void |
clearKey(String strUserId,
String strKey)
Clear a preference for a given user
|
void |
clearKeyPrefix(String strUserId,
String strPrefix)
Clear all preferences with a given prefix for a given user
|
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
|
String |
get(String strUserId,
String strKey,
String strDefault)
Get a preference for a given user
|
boolean |
getBoolean(String strUserId,
String strKey,
boolean bDefault)
Get a boolean preference for a given user
|
int |
getInt(String strUserId,
String strKey,
int nDefault)
Get an integer preference for a given user
|
List<String> |
getUsers(String strKey,
String strValue)
Get the list of users associated with a key and a value
|
List<String> |
keys(String strUserId)
Get all preference keys for a given user
|
void |
put(String strUserId,
String strKey,
String strValue)
Put a preference for a given user
|
void |
putBoolean(String strUserId,
String strKey,
boolean bValue)
Put a boolean preference for a given user
|
void |
putInt(String strUserId,
String strKey,
int nValue)
Put an integer preference for a given user
|
String get(String strUserId, String strKey, String strDefault)
strUserId - The user's IDstrKey - The preference's keystrDefault - The default valueint getInt(String strUserId, String strKey, int nDefault)
strUserId - The user's IDstrKey - The preference's keynDefault - The default valueboolean getBoolean(String strUserId, String strKey, boolean bDefault)
strUserId - The user's IDstrKey - The preference's keybDefault - The default valueList<String> getUsers(String strKey, String strValue)
strKey - The preference's keystrValue - The preference's valuevoid put(String strUserId, String strKey, String strValue)
strUserId - The user's IDstrKey - The preference's keystrValue - The valuevoid putInt(String strUserId, String strKey, int nValue)
strUserId - The user's IDstrKey - The preference's keynValue - The valuevoid putBoolean(String strUserId, String strKey, boolean bValue)
strUserId - The user's IDstrKey - The preference's keybValue - The valueList<String> keys(String strUserId)
strUserId - The user's IDvoid clear(String strUserId)
strUserId - The user's IDvoid clearKey(String strUserId, String strKey)
strUserId - The user's IDstrKey - The preference's keyvoid clearKeyPrefix(String strUserId, String strPrefix)
strUserId - The user's IDstrPrefix - The keys prefixboolean existsKey(String strUserId, String strKey)
strUserId - The User IDstrKey - The Pref keyCopyright © 2020 City of Paris. All rights reserved.