Interface UserPreferencesManager
- All Known Implementing Classes:
DefaultUserPreferencesManager
,MockUserPreferencesManager
@PublicApi
public interface UserPreferencesManager
A simple manager for retrieving, caching and updating user preferences objects.
- Since:
- 3.10
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.These objects are flyweights so there is no longer any point in them being cached.Returns The user preferences for a user.com.atlassian.core.user.preferences.Preferences
Deprecated.UsegetExtendedPreferences(ApplicationUser)
instead.
-
Method Details
-
getExtendedPreferences
Returns The user preferences for a user. Ifuser
isnull
, then the preferences will be for an anonymous user and reflect only the system's default settings. The preferences for the anonymous user cannot be modified directly.- Returns:
- The user preferences for a user.
-
getPreferences
Deprecated.UsegetExtendedPreferences(ApplicationUser)
instead. Since v6.0.Returns The user preferences for a user. Ifuser
isnull
, then the preferences will be for an anonymous user and reflect only the system's default settings. The preferences for the anonymous user cannot be modified directly. Although not declared as such to avoid breaking API use of this method, the returned preferences object is guaranteed to implementExtendedPreferences
.- Returns:
- The user preferences for a user.
-
clearCache
void clearCache()Deprecated.These objects are flyweights so there is no longer any point in them being cached. This method no longer does anything. Since v6.2.
-