Class GlobalUserPreferencesUtilImpl

java.lang.Object
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 Details

  • Method Details

    • 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