com.atlassian.sal.confluence.usersettings
Class ConfluenceUserSettingsService
java.lang.Object
com.atlassian.sal.confluence.usersettings.ConfluenceUserSettingsService
- All Implemented Interfaces:
- com.atlassian.sal.api.usersettings.UserSettingsService
public class ConfluenceUserSettingsService
- extends java.lang.Object
- implements com.atlassian.sal.api.usersettings.UserSettingsService
Confluence implementation of the SAL UserSettingsService
.
- Since:
- 5.0
Fields inherited from interface com.atlassian.sal.api.usersettings.UserSettingsService |
MAX_KEY_LENGTH, MAX_STRING_VALUE_LENGTH, USER_SETTINGS_PREFIX |
Method Summary |
static void |
checkArgumentKey(java.lang.String key)
|
static void |
checkArgumentValue(java.lang.String value)
|
com.atlassian.sal.api.usersettings.UserSettings |
getUserSettings(java.lang.String userName)
|
com.atlassian.sal.api.usersettings.UserSettings |
getUserSettings(com.atlassian.sal.api.user.UserKey userKey)
|
void |
updateUserSettings(java.lang.String userName,
com.google.common.base.Function<com.atlassian.sal.api.usersettings.UserSettingsBuilder,com.atlassian.sal.api.usersettings.UserSettings> updateFunction)
|
void |
updateUserSettings(com.atlassian.sal.api.user.UserKey userKey,
com.google.common.base.Function<com.atlassian.sal.api.usersettings.UserSettingsBuilder,com.atlassian.sal.api.usersettings.UserSettings> userSettingsBuilderUserSettingsFunction)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceUserSettingsService
public ConfluenceUserSettingsService(UserAccessor userAccessor)
getUserSettings
public com.atlassian.sal.api.usersettings.UserSettings getUserSettings(java.lang.String userName)
- Specified by:
getUserSettings
in interface com.atlassian.sal.api.usersettings.UserSettingsService
getUserSettings
@Nullable
public com.atlassian.sal.api.usersettings.UserSettings getUserSettings(com.atlassian.sal.api.user.UserKey userKey)
-
- Specified by:
getUserSettings
in interface com.atlassian.sal.api.usersettings.UserSettingsService
- Since:
- 5.2
updateUserSettings
public void updateUserSettings(java.lang.String userName,
com.google.common.base.Function<com.atlassian.sal.api.usersettings.UserSettingsBuilder,com.atlassian.sal.api.usersettings.UserSettings> updateFunction)
- Specified by:
updateUserSettings
in interface com.atlassian.sal.api.usersettings.UserSettingsService
updateUserSettings
public void updateUserSettings(com.atlassian.sal.api.user.UserKey userKey,
com.google.common.base.Function<com.atlassian.sal.api.usersettings.UserSettingsBuilder,com.atlassian.sal.api.usersettings.UserSettings> userSettingsBuilderUserSettingsFunction)
-
- Specified by:
updateUserSettings
in interface com.atlassian.sal.api.usersettings.UserSettingsService
- Since:
- 5.2
checkArgumentKey
public static void checkArgumentKey(java.lang.String key)
checkArgumentValue
public static void checkArgumentValue(java.lang.String value)
Copyright © 2003-2014 Atlassian. All Rights Reserved.