com.atlassian.jira.user.preferences
Class DefaultUserPreferencesManager

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

public class DefaultUserPreferencesManager
extends Object
implements UserPreferencesManager

A simple implementation to cache user preferences objects.


Constructor Summary
DefaultUserPreferencesManager(UserPropertyManager userPropertyManager)
           
 
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

DefaultUserPreferencesManager

public DefaultUserPreferencesManager(UserPropertyManager userPropertyManager)
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.