Package com.atlassian.jira.user.util
Class GlobalUserPreferencesUtilImpl
java.lang.Object
com.atlassian.jira.user.util.GlobalUserPreferencesUtilImpl
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionGlobalUserPreferencesUtilImpl(OfBizDelegator ofBizDelegator, UserPreferencesManager userPreferencesManager) -
Method Summary
Modifier and TypeMethodDescriptionlonggetTotalUpdateUserCountMailMimeType(String mimetype) Returns a count of all user entries that will have their mail settings changed.voidupdateUserMailMimetypePreference(String mimetype) This is used to update all users mimetype mail preference.
-
Constructor Details
-
GlobalUserPreferencesUtilImpl
public GlobalUserPreferencesUtilImpl(OfBizDelegator ofBizDelegator, UserPreferencesManager userPreferencesManager)
-
-
Method Details
-
getTotalUpdateUserCountMailMimeType
Description copied from interface:GlobalUserPreferencesUtilReturns 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:
getTotalUpdateUserCountMailMimeTypein interfaceGlobalUserPreferencesUtil- 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:GlobalUserPreferencesUtilThis is used to update all users mimetype mail preference.- Specified by:
updateUserMailMimetypePreferencein interfaceGlobalUserPreferencesUtil- Parameters:
mimetype- The new mimetype to use- Throws:
org.ofbiz.core.entity.GenericEntityException
-