public class

MockUserPreferencesManager

extends Object
implements UserPreferencesManager
java.lang.Object
   ↳ com.atlassian.jira.user.preferences.MockUserPreferencesManager

Summary

Public Constructors
MockUserPreferencesManager()
Public Methods
void clearCache()
ExtendedPreferences getExtendedPreferences(ApplicationUser user)
Returns The user preferences for a user.
Preferences getPreferences(User user)
Returns The user preferences for a user.
Preferences getPreferences(ApplicationUser user)
Returns The user preferences for a user.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.user.preferences.UserPreferencesManager

Public Constructors

public MockUserPreferencesManager ()

Public Methods

public void clearCache ()

public ExtendedPreferences getExtendedPreferences (ApplicationUser user)

Returns The user preferences for a user. If 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.

Returns
  • The user preferences for a user.

public Preferences getPreferences (User user)

Returns The user preferences for a user. If 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.

Returns
  • The user preferences for a user.

public Preferences getPreferences (ApplicationUser user)

Returns The user preferences for a user. If 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.

Returns
  • The user preferences for a user.