Package com.atlassian.confluence.user
Class ConfluenceUserPreferences
java.lang.Object
com.atlassian.confluence.user.ConfluenceUserPreferences
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(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) voidvoidvoidsetTimeZone(String timeZoneID)
-
Constructor Details
-
ConfluenceUserPreferences
Deprecated.No-args constructor is used for anonymous user preferences -
ConfluenceUserPreferences
@Deprecated public ConfluenceUserPreferences(com.opensymphony.module.propertyset.PropertySet properties) Deprecated.- Parameters:
properties- the PropertySet containing a user's preferences
-
-
Method Details
-
getString
- Since:
- 8.8
-
getBoolean
- Since:
- 8.8
-
getLong
- Since:
- 8.8
-
setString
public void setString(String key, String value) throws ConfluenceUserPreferences.PreferenceException - Throws:
ConfluenceUserPreferences.PreferenceException- Since:
- 8.8
-
setLong
- Throws:
ConfluenceUserPreferences.PreferenceException- Since:
- 8.8
-
setBoolean
public void setBoolean(String key, boolean value) throws ConfluenceUserPreferences.PreferenceException - Throws:
ConfluenceUserPreferences.PreferenceException- Since:
- 8.8
-
remove
- Throws:
ConfluenceUserPreferences.PreferenceException- Since:
- 8.8
-
getTimeZone
-
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. -
isShowDifferencesInNotificationEmails
public boolean isShowDifferencesInNotificationEmails() -
isWatchingOwnContent
public boolean isWatchingOwnContent() -
getWrappedPreferences
Deprecated.since 8.8 No. Just, no.
-