com.atlassian.jira.user.preferences
Interface UserPreferencesManager

All Known Implementing Classes:
DefaultUserPreferencesManager, MockUserPreferencesManager

@PublicApi
public interface UserPreferencesManager

A simple manager for retrieving, caching and updating user preferences objects


Method Summary
 void clearCache()
          Clear all cached preferences.
 void clearCache(ApplicationUser user)
          Clear any cached preferences for a given user.
 void clearCacheByKey(String userKey)
          Clear any cached preferences for a given user.
 ExtendedPreferences getExtendedPreferences(ApplicationUser user)
           
 com.atlassian.core.user.preferences.Preferences getPreferences(ApplicationUser user)
          Deprecated. Use getExtendedPreferences(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
 com.atlassian.core.user.preferences.Preferences getPreferences(com.atlassian.crowd.embedded.api.User user)
          Deprecated. Use getExtendedPreferences(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
 

Method Detail

getExtendedPreferences

ExtendedPreferences getExtendedPreferences(ApplicationUser user)
Returns:
The user preferences for a user, or null if the user is null

getPreferences

com.atlassian.core.user.preferences.Preferences getPreferences(ApplicationUser user)
Deprecated. Use getExtendedPreferences(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.

Returns:
The user preferences for a user, or null if the user is null

getPreferences

com.atlassian.core.user.preferences.Preferences getPreferences(com.atlassian.crowd.embedded.api.User user)
Deprecated. Use getExtendedPreferences(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.

Returns:
The user preferences for a user, or null if the user is null

clearCache

void clearCache()
Clear all cached preferences.


clearCache

@Internal
void clearCache(ApplicationUser user)
Clear any cached preferences for a given user.


clearCacheByKey

@Internal
void clearCacheByKey(String userKey)
Clear any cached preferences for a given user.



Copyright © 2002-2013 Atlassian. All Rights Reserved.