public class MockUserPreferencesManager extends Object implements UserPreferencesManager
| Constructor and Description |
|---|
MockUserPreferencesManager() |
| 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 ExtendedPreferences getExtendedPreferences(ApplicationUser user)
UserPreferencesManageruser 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 UserPreferencesManagerpublic com.atlassian.core.user.preferences.Preferences getPreferences(ApplicationUser user)
UserPreferencesManageruser 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 UserPreferencesManagerpublic void clearCache()
clearCache in interface UserPreferencesManagerCopyright © 2002-2019 Atlassian. All Rights Reserved.