Package com.atlassian.confluence.user
Class ConfluenceUserPreferences
- java.lang.Object
-
- com.atlassian.confluence.user.ConfluenceUserPreferences
-
public class ConfluenceUserPreferences extends Object
Provides strongly-typed accessors for Confluence user preferences. Use the no-args constructor for sensible defaults for anonymous user preferences.
-
-
Constructor Summary
Constructors Constructor Description ConfluenceUserPreferences()
No-args constructor is used for anonymous user preferencesConfluenceUserPreferences(com.opensymphony.module.propertyset.PropertySet properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateFormatter
getDateFormatter(FormatSettingsManager formatSettingsManager, LocaleManager localeManager)
Locale
getLocale()
Returns the user's preferred locale, or null if the site default locale should be used.TimeZone
getTimeZone()
com.atlassian.core.user.preferences.UserPreferences
getWrappedPreferences()
boolean
isShowDifferencesInNotificationEmails()
boolean
isWatchingOwnContent()
void
setTimeZone(String timeZoneID)
-
-
-
Constructor Detail
-
ConfluenceUserPreferences
public ConfluenceUserPreferences()
No-args constructor is used for anonymous user preferences
-
ConfluenceUserPreferences
public ConfluenceUserPreferences(com.opensymphony.module.propertyset.PropertySet properties)
- Parameters:
properties
- the PropertySet containing a user's preferences
-
-
Method Detail
-
getTimeZone
public TimeZone getTimeZone()
-
getDateFormatter
public DateFormatter getDateFormatter(FormatSettingsManager formatSettingsManager, LocaleManager localeManager)
-
setTimeZone
public void setTimeZone(String timeZoneID) throws com.atlassian.core.AtlassianCoreException
- Throws:
com.atlassian.core.AtlassianCoreException
-
getLocale
public Locale 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
public com.atlassian.core.user.preferences.UserPreferences getWrappedPreferences()
-
-