public class

UpdateUserPreferences

extends JiraWebActionSupport
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.user.UpdateUserPreferences

Summary

Constants
int MAX_ISSUES_PER_PAGE_SETTING
[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
UpdateUserPreferences(UserPreferencesManager userPreferencesManager, LocaleManager localeManager, SessionSearchObjectManagerFactory sessionSearchObjectManagerFactory, TimeZoneService timeZoneManager, EventPublisher eventPublisher)
Public Methods
String doDefault()
String getAutoWatchPreference()
Collection<TextOption> getAutowatchList()
String getConfiguredTimeZoneId()
String getConfiguredTimeZoneRegion()
Map<StringString> getInstalledLocales()
Collection<TextOption> getKeyboardShortcutList()
Gets the available list of options for the Keyboard shortcut preference
String getKeyboardShortcutValue()
The current value of the keyboard shortcut default
Map<StringString> getMimeTypes()
boolean getNotifyOwnChanges()
Collection<TextOption> getOwnChangesList()
Gets the available list of options for the Sharing Default preference
Collection<TextOption> getShareList()
Gets the available list of options for the Sharing Default preference
String getShareValue()
The current value of the Sharing default
boolean getShowAutowatch()
boolean getShowPluginHints()
String getTacUrl()
List<TimeZoneInfo> getTimeZoneInfos()
List<RegionInfo> getTimeZoneRegions()
long getUserIssuesPerPage()
String getUserLocale()
String getUserNotificationsMimeType()
String getUsername()
boolean isKeyboardShortcutsEnabled()
boolean isShareDefault()
void setAutoWatchPreference(String autoWatchPreference)
void setDefaultUserTimeZone(String timeZoneId)
void setKeyboardShortcutsEnabled(boolean keyboardShortcutsEnabled)
void setNotifyOwnChanges(boolean notifyOwnChanges)
void setShareDefault(boolean isPublic)
void setUserIssuesPerPage(long aLong)
void setUserLocale(String userLocale)
void setUserNotificationsMimeType(String userNotificationsMimeType)
void setUsername(String username)
Protected Methods
String doExecute()
void doValidation()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Constants

public static final int MAX_ISSUES_PER_PAGE_SETTING

Constant Value: 1000 (0x000003e8)

Public Constructors

public UpdateUserPreferences (UserPreferencesManager userPreferencesManager, LocaleManager localeManager, SessionSearchObjectManagerFactory sessionSearchObjectManagerFactory, TimeZoneService timeZoneManager, EventPublisher eventPublisher)

Public Methods

public String doDefault ()

public String getAutoWatchPreference ()

public Collection<TextOption> getAutowatchList ()

public String getConfiguredTimeZoneId ()

public String getConfiguredTimeZoneRegion ()

public Map<StringString> getInstalledLocales ()

Returns
  • the installed locales with the default option at the top

public Collection<TextOption> getKeyboardShortcutList ()

Gets the available list of options for the Keyboard shortcut preference

Returns
  • the available list of options for the keyboard shortcut Default preference

public String getKeyboardShortcutValue ()

The current value of the keyboard shortcut default

Returns
  • The current value of the keyboard shortcut default, true (enabled) or false (disabled)

public Map<StringString> getMimeTypes ()

public boolean getNotifyOwnChanges ()

public Collection<TextOption> getOwnChangesList ()

Gets the available list of options for the Sharing Default preference

Returns
  • the available list of options for the Sharing Default preference

public Collection<TextOption> getShareList ()

Gets the available list of options for the Sharing Default preference

Returns
  • the available list of options for the Sharing Default preference

public String getShareValue ()

The current value of the Sharing default

Returns
  • The current value of the Sharing default, false (public) or true (private)

public boolean getShowAutowatch ()

public boolean getShowPluginHints ()

public String getTacUrl ()

public List<TimeZoneInfo> getTimeZoneInfos ()

public List<RegionInfo> getTimeZoneRegions ()

public long getUserIssuesPerPage ()

public String getUserLocale ()

public String getUserNotificationsMimeType ()

public String getUsername ()

public boolean isKeyboardShortcutsEnabled ()

public boolean isShareDefault ()

public void setAutoWatchPreference (String autoWatchPreference)

public void setDefaultUserTimeZone (String timeZoneId)

public void setKeyboardShortcutsEnabled (boolean keyboardShortcutsEnabled)

public void setNotifyOwnChanges (boolean notifyOwnChanges)

public void setShareDefault (boolean isPublic)

public void setUserIssuesPerPage (long aLong)

public void setUserLocale (String userLocale)

public void setUserNotificationsMimeType (String userNotificationsMimeType)

public void setUsername (String username)

Protected Methods

protected String doExecute ()

Throws
Exception

protected void doValidation ()