public interface UiPreferencesService
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.node.ObjectNode |
getPreference(java.lang.String username,
java.lang.String key)
Returns the named preference for the specified user.
|
java.util.Map<java.lang.String,com.fasterxml.jackson.databind.node.ObjectNode> |
getPreferences(java.lang.String userName)
Returns an immutable copy of the preferences for the specified user.
|
java.util.Set<java.lang.String> |
getUserNames()
Returns the list of user names that have user preferences available.
|
void |
setPreference(java.lang.String username,
java.lang.String key,
com.fasterxml.jackson.databind.node.ObjectNode value)
Sets the named preference for the specified user.
|
java.util.Set<java.lang.String> getUserNames()
java.util.Map<java.lang.String,com.fasterxml.jackson.databind.node.ObjectNode> getPreferences(java.lang.String userName)
userName
- user namecom.fasterxml.jackson.databind.node.ObjectNode getPreference(java.lang.String username, java.lang.String key)
username
- user namekey
- preference keyvoid setPreference(java.lang.String username, java.lang.String key, com.fasterxml.jackson.databind.node.ObjectNode value)
username
- user namekey
- preference keyvalue
- preference value