com.atlassian.jira.user.util
Interface GlobalUserPreferencesUtil

All Known Implementing Classes:
GlobalUserPreferencesUtilImpl

public interface GlobalUserPreferencesUtil

Util interface providing helper methods for updating global user preferences (such as e-mail Mimetype, etc)


Method Summary
 long getTotalUpdateUserCountMailMimeType(java.lang.String mimetype)
          Returns a count of all user entries that will have their mail settings changed.
 long getUserLocalePreferenceCount(java.lang.String localeCode)
           
 java.util.Collection getUserLocalePreferenceList(java.lang.String localeCode)
           
 void updateUserMailMimetypePreference(java.lang.String mimetype)
          This is used to update all users mimetype mail preference.
 

Method Detail

getTotalUpdateUserCountMailMimeType

long getTotalUpdateUserCountMailMimeType(java.lang.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.

updateUserMailMimetypePreference

void updateUserMailMimetypePreference(java.lang.String mimetype)
                                      throws org.ofbiz.core.entity.GenericEntityException
This is used to update all users mimetype mail preference.

Parameters:
mimetype - The new mimetype to use
Throws:
org.ofbiz.core.entity.GenericEntityException

getUserLocalePreferenceCount

long getUserLocalePreferenceCount(java.lang.String localeCode)

getUserLocalePreferenceList

java.util.Collection getUserLocalePreferenceList(java.lang.String localeCode)


Copyright © 2002-2010 Atlassian. All Rights Reserved.