public class DefaultUserPreferencesManager extends Object implements UserPreferencesManager
Constructor and Description |
---|
DefaultUserPreferencesManager(UserPropertyManager userPropertyManager) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
ExtendedPreferences |
getExtendedPreferences(ApplicationUser user)
Returns The user preferences for a user.
|
com.atlassian.core.user.preferences.Preferences |
getPreferences(ApplicationUser user)
Returns The user preferences for a user.
|
public DefaultUserPreferencesManager(UserPropertyManager userPropertyManager)
public ExtendedPreferences getExtendedPreferences(ApplicationUser user)
UserPreferencesManager
user
is null
, 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.getExtendedPreferences
in interface UserPreferencesManager
public com.atlassian.core.user.preferences.Preferences getPreferences(ApplicationUser user)
UserPreferencesManager
user
is null
, 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 implement ExtendedPreferences
.getPreferences
in interface UserPreferencesManager
public void clearCache()
clearCache
in interface UserPreferencesManager
Copyright © 2002-2019 Atlassian. All Rights Reserved.