public class

GlobalUserPreferencesUtilImpl

extends Object
implements GlobalUserPreferencesUtil
java.lang.Object
   ↳ com.atlassian.jira.user.util.GlobalUserPreferencesUtilImpl

Class Overview

This class provides methods for counting both internal users and external users (if external user mgmt is enabled) It also provides methods for updating global preferences.

Summary

Public Constructors
GlobalUserPreferencesUtilImpl(OfBizDelegator ofBizDelegator, UserPreferencesManager userPreferencesManager)
Public Methods
long getTotalUpdateUserCountMailMimeType(String mimetype)
Returns a count of all user entries that will have their mail settings changed.
void updateUserMailMimetypePreference(String mimetype)
This is used to update all users mimetype mail preference.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.user.util.GlobalUserPreferencesUtil

Public Constructors

public GlobalUserPreferencesUtilImpl (OfBizDelegator ofBizDelegator, UserPreferencesManager userPreferencesManager)

Public Methods

public long getTotalUpdateUserCountMailMimeType (String mimetype)

Returns a count of all user entries that will have their mail settings changed. This respects external user managment (ie we'll do a lookup in the external entities table)

Parameters
mimetype either 'text' or 'html'
Returns
  • A count of the total number of users affected.

public void updateUserMailMimetypePreference (String mimetype)

This is used to update all users mimetype mail preference.

Parameters
mimetype The new mimetype to use
Throws
GenericEntityException