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()
           
 
Method Summary
 void clearCache()
          Clear all cached preferences.
 void clearCache(String username)
          Clear any cached preferences for a given username.
 com.atlassian.core.user.preferences.Preferences getPreferences(User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserPreferencesManager

public DefaultUserPreferencesManager()
Method Detail

getPreferences

public com.atlassian.core.user.preferences.Preferences getPreferences(User user)
Specified by:
getPreferences in interface UserPreferencesManager
Returns:
The user preferences for a user, or null if the user is null

clearCache

public void clearCache(String username)
Description copied from interface: UserPreferencesManager
Clear any cached preferences for a given username.

Specified by:
clearCache in interface UserPreferencesManager

clearCache

public void clearCache()
Description copied from interface: UserPreferencesManager
Clear all cached preferences.

Specified by:
clearCache in interface UserPreferencesManager


Copyright © 2002-2008 Atlassian. All Rights Reserved.