com.atlassian.jira.user.util
Class GlobalUserPreferencesUtilImpl

java.lang.Object
  extended by com.atlassian.jira.user.util.GlobalUserPreferencesUtilImpl
All Implemented Interfaces:
GlobalUserPreferencesUtil

public class GlobalUserPreferencesUtilImpl
extends Object
implements GlobalUserPreferencesUtil

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.


Constructor Summary
GlobalUserPreferencesUtilImpl(OfBizDelegator ofBizDelegator, UserPreferencesManager userPreferencesManager)
           
 
Method Summary
 long getTotalUpdateUserCountMailMimeType(String mimetype)
          Returns a count of all user entries that will have their mail settings changed.
 long getUserLocalePreferenceCount(String localeCode)
           
 void updateUserMailMimetypePreference(String mimetype)
          This is used to update all users mimetype mail preference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalUserPreferencesUtilImpl

public GlobalUserPreferencesUtilImpl(OfBizDelegator ofBizDelegator,
                                     UserPreferencesManager userPreferencesManager)
Method Detail

getTotalUpdateUserCountMailMimeType

public long getTotalUpdateUserCountMailMimeType(String mimetype)
Description copied from interface: GlobalUserPreferencesUtil
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)

Specified by:
getTotalUpdateUserCountMailMimeType in interface GlobalUserPreferencesUtil
Parameters:
mimetype - either 'text' or 'html'
Returns:
A count of the total number of users affected.

updateUserMailMimetypePreference

public void updateUserMailMimetypePreference(String mimetype)
                                      throws org.ofbiz.core.entity.GenericEntityException
Description copied from interface: GlobalUserPreferencesUtil
This is used to update all users mimetype mail preference.

Specified by:
updateUserMailMimetypePreference in interface GlobalUserPreferencesUtil
Parameters:
mimetype - The new mimetype to use
Throws:
org.ofbiz.core.entity.GenericEntityException

getUserLocalePreferenceCount

public long getUserLocalePreferenceCount(String localeCode)
Specified by:
getUserLocalePreferenceCount in interface GlobalUserPreferencesUtil


Copyright © 2002-2013 Atlassian. All Rights Reserved.