public interface UserConfigurationService
| Modifier and Type | Method and Description |
|---|---|
String |
getUserConfiguration(UserAccount user,
String key)
Get the configuration for the given user and key.
|
String |
getUserConfiguration(UserAccount user,
String key,
String defaultValue)
Get the configuration for the given user and key.
|
List<Object> |
getUserListConfiguration(UserAccount user,
String key)
Return the list configuration value of the given key for the given user.
|
List<Object> |
getUserListConfiguration(UserAccount user,
String key,
List<Object> defaultValue)
Return the list configuration value of the given key for the given user.
|
boolean |
isUserConfigurationSet(UserAccount user,
String key)
Check whether the given configuration is set for the given user.
|
void |
removeUserConfiguration(UserAccount user,
String key)
Remove the user configuration identified by "key" from the database.
|
void |
setUserConfiguration(UserAccount user,
String key,
String value)
Set the configuration "key" to the string value "value".
|
void |
setUserListConfiguration(UserAccount user,
String key,
List<String> values)
Set the configuration "key" to the string value "value".
|
boolean isUserConfigurationSet(UserAccount user, String key)
user - key - String getUserConfiguration(UserAccount user, String key)
user - the user for whom to get the configurationkey - unique configuration key for lookupString getUserConfiguration(UserAccount user, String key, String defaultValue)
user - the user for whom to get the configurationkey - unique configuration key for lookupdefaultValue - default value if configuration not foundvoid setUserConfiguration(UserAccount user, String key, String value)
key - value - void setUserListConfiguration(UserAccount user, String key, List<String> values)
key - values - List<Object> getUserListConfiguration(UserAccount user, String key)
user - List<Object> getUserListConfiguration(UserAccount user, String key, List<Object> defaultValue)
user - void removeUserConfiguration(UserAccount user, String key)
key - Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.