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
  • Constructor Details

  • 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 interface com.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 interface com.atlassian.sal.api.usersettings.UserSettingsService