Class ConfluenceUserSettingsService
java.lang.Object
com.atlassian.confluence.api.impl.sal.user.ConfluenceUserSettingsService
- All Implemented Interfaces:
com.atlassian.sal.api.usersettings.UserSettingsService
@Transactional
public class ConfluenceUserSettingsService
extends Object
implements com.atlassian.sal.api.usersettings.UserSettingsService
Confluence implementation of the SAL
UserSettingsService
.
Note that for historical reasons, this class uses the BucketPropertySetItem
Hibernate entity type, to allow
it to read/write data previously written by the legacy implementation of UserSettingsService
which used
the PropertySet
abstraction.
- Since:
- 9.3
-
Field Summary
Fields inherited from interface com.atlassian.sal.api.usersettings.UserSettingsService
MAX_KEY_LENGTH, MAX_STRING_VALUE_LENGTH, USER_SETTINGS_PREFIX
-
Constructor Summary
ConstructorsConstructorDescriptionConfluenceUserSettingsService
(UserPreferencesDao userPreferencesDao, ConfluenceUserResolver userResolver) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.sal.api.usersettings.UserSettings
getUserSettings
(com.atlassian.sal.api.user.UserKey userKey) void
updateUserSettings
(com.atlassian.sal.api.user.UserKey userKey, Function<com.atlassian.sal.api.usersettings.UserSettingsBuilder, com.atlassian.sal.api.usersettings.UserSettings> updateFunction)
-
Constructor Details
-
ConfluenceUserSettingsService
public ConfluenceUserSettingsService(UserPreferencesDao userPreferencesDao, ConfluenceUserResolver userResolver)
-
-
Method Details
-
getUserSettings
@Transactional(readOnly=true) public com.atlassian.sal.api.usersettings.UserSettings getUserSettings(com.atlassian.sal.api.user.UserKey userKey) - Specified by:
getUserSettings
in interfacecom.atlassian.sal.api.usersettings.UserSettingsService
-
updateUserSettings
public void updateUserSettings(com.atlassian.sal.api.user.UserKey userKey, Function<com.atlassian.sal.api.usersettings.UserSettingsBuilder, com.atlassian.sal.api.usersettings.UserSettings> updateFunction) - Specified by:
updateUserSettings
in interfacecom.atlassian.sal.api.usersettings.UserSettingsService
-