Package com.atlassian.confluence.user
Class ConfluenceUserPreferences
java.lang.Object
com.atlassian.confluence.user.ConfluenceUserPreferences
- All Implemented Interfaces:
UserPreferences
Provides strongly-typed accessors for Confluence user preferences.
Use the no-args constructor for sensible defaults for anonymous user preferences.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.since 8.8.ConfluenceUserPreferences(@Nullable com.opensymphony.module.propertyset.PropertySet properties) Deprecated.since 8.8. -
Method Summary
Modifier and TypeMethodDescriptiongetBoolean(String key) getDateFormatter(FormatSettingsManager formatSettingsManager, LocaleManager localeManager) Deprecated.Returns the user's preferred locale, or null if the site default locale should be used.Deprecated.since 8.8 No.booleanbooleanvoidvoidsetBoolean(String key, boolean value) voidvoidvoidvoidsetTimeZone(String timeZoneID)
-
Constructor Details
-
ConfluenceUserPreferences
Deprecated.No-args constructor is used for anonymous user preferences -
ConfluenceUserPreferences
@Deprecated public ConfluenceUserPreferences(@Nullable com.opensymphony.module.propertyset.PropertySet properties) Deprecated.- Parameters:
properties- the PropertySet containing a user's preferences
-
-
Method Details
-
getString
- Specified by:
getStringin interfaceUserPreferences- Since:
- 8.8
-
getBoolean
- Specified by:
getBooleanin interfaceUserPreferences- Since:
- 8.8
-
getLong
- Specified by:
getLongin interfaceUserPreferences- Since:
- 8.8
-
getInt
- Since:
- 9.3
-
setString
public void setString(String key, String value) throws ConfluenceUserPreferences.PreferenceException - Specified by:
setStringin interfaceUserPreferences- Throws:
ConfluenceUserPreferences.PreferenceException- Since:
- 8.8
-
setLong
- Specified by:
setLongin interfaceUserPreferences- Throws:
ConfluenceUserPreferences.PreferenceException- Since:
- 8.8
-
setInt
- Throws:
ConfluenceUserPreferences.PreferenceException- Since:
- 9.3
-
setBoolean
public void setBoolean(String key, boolean value) throws ConfluenceUserPreferences.PreferenceException - Specified by:
setBooleanin interfaceUserPreferences- Throws:
ConfluenceUserPreferences.PreferenceException- Since:
- 8.8
-
remove
- Specified by:
removein interfaceUserPreferences- Throws:
ConfluenceUserPreferences.PreferenceException- Since:
- 8.8
-
getTimeZone
- Specified by:
getTimeZonein interfaceUserPreferences
-
getDateFormatter
@Deprecated public DateFormatter getDateFormatter(FormatSettingsManager formatSettingsManager, LocaleManager localeManager) Deprecated. -
setTimeZone
- Throws:
com.atlassian.core.AtlassianCoreException
-
getLocale
Returns the user's preferred locale, or null if the site default locale should be used.- Specified by:
getLocalein interfaceUserPreferences
-
isShowDifferencesInNotificationEmails
public boolean isShowDifferencesInNotificationEmails()- Specified by:
isShowDifferencesInNotificationEmailsin interfaceUserPreferences
-
isWatchingOwnContent
public boolean isWatchingOwnContent()- Specified by:
isWatchingOwnContentin interfaceUserPreferences
-
getWrappedPreferences
Deprecated.since 8.8 No. Just, no.
-