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.boolean
boolean
void
void
setBoolean
(String key, boolean value) void
void
void
void
setTimeZone
(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:
getString
in interfaceUserPreferences
- Since:
- 8.8
-
getBoolean
- Specified by:
getBoolean
in interfaceUserPreferences
- Since:
- 8.8
-
getLong
- Specified by:
getLong
in interfaceUserPreferences
- Since:
- 8.8
-
getInt
- Since:
- 9.3
-
setString
public void setString(String key, String value) throws ConfluenceUserPreferences.PreferenceException - Specified by:
setString
in interfaceUserPreferences
- Throws:
ConfluenceUserPreferences.PreferenceException
- Since:
- 8.8
-
setLong
- Specified by:
setLong
in 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:
setBoolean
in interfaceUserPreferences
- Throws:
ConfluenceUserPreferences.PreferenceException
- Since:
- 8.8
-
remove
- Specified by:
remove
in interfaceUserPreferences
- Throws:
ConfluenceUserPreferences.PreferenceException
- Since:
- 8.8
-
getTimeZone
- Specified by:
getTimeZone
in 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:
getLocale
in interfaceUserPreferences
-
isShowDifferencesInNotificationEmails
public boolean isShowDifferencesInNotificationEmails()- Specified by:
isShowDifferencesInNotificationEmails
in interfaceUserPreferences
-
isWatchingOwnContent
public boolean isWatchingOwnContent()- Specified by:
isWatchingOwnContent
in interfaceUserPreferences
-
getWrappedPreferences
Deprecated.since 8.8 No. Just, no.
-