|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.user.preferences.DefaultUserPreferencesManager
public class DefaultUserPreferencesManager
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 |
---|
public DefaultUserPreferencesManager(UserPropertyManager userPropertyManager)
Method Detail |
---|
public ExtendedPreferences getExtendedPreferences(ApplicationUser user)
UserPreferencesManager
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.
getExtendedPreferences
in interface UserPreferencesManager
public com.atlassian.core.user.preferences.Preferences getPreferences(ApplicationUser user)
UserPreferencesManager
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
.
getPreferences
in interface UserPreferencesManager
public com.atlassian.core.user.preferences.Preferences getPreferences(com.atlassian.crowd.embedded.api.User user)
UserPreferencesManager
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
.
getPreferences
in interface UserPreferencesManager
public void clearCache()
clearCache
in interface UserPreferencesManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |