com.atlassian.jira.user.preferences
Class MockUserPreferencesManager

java.lang.Object
  extended by com.atlassian.jira.user.preferences.MockUserPreferencesManager
All Implemented Interfaces:
UserPreferencesManager

public class MockUserPreferencesManager
extends Object
implements UserPreferencesManager

Since:
v6.0

Constructor Summary
MockUserPreferencesManager()
           
 
Method Summary
 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.
 com.atlassian.core.user.preferences.Preferences getPreferences(com.atlassian.crowd.embedded.api.User user)
          Returns The user preferences for a user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockUserPreferencesManager

public MockUserPreferencesManager()
Method Detail

getExtendedPreferences

public ExtendedPreferences getExtendedPreferences(ApplicationUser user)
Description copied from interface: UserPreferencesManager
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.

Specified by:
getExtendedPreferences in interface UserPreferencesManager
Returns:
The user preferences for a user.

getPreferences

public com.atlassian.core.user.preferences.Preferences getPreferences(ApplicationUser user)
Description copied from interface: UserPreferencesManager
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.

Specified by:
getPreferences in interface UserPreferencesManager
Returns:
The user preferences for a user.

getPreferences

public com.atlassian.core.user.preferences.Preferences getPreferences(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserPreferencesManager
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.

Specified by:
getPreferences in interface UserPreferencesManager
Returns:
The user preferences for a user.

clearCache

public void clearCache()
Specified by:
clearCache in interface UserPreferencesManager


Copyright © 2002-2014 Atlassian. All Rights Reserved.