com.atlassian.jira.user.util
Class UserUtilImpl

java.lang.Object
  extended bycom.atlassian.jira.user.util.UserUtilImpl
All Implemented Interfaces:
UserUtil

public class UserUtilImpl
extends Object
implements UserUtil

This is the default implementation of the UserUtil interface.


Constructor Summary
UserUtilImpl(IssueSecurityLevelManager issueSecurityLevelManager, UserManager userManager)
           
 
Method Summary
 void addUserToGroup(Group group, User userToAdd)
          This is used to add a specified user to a specified group.
 void addUserToGroups(List groups, User userToAdd)
          This is used to add a user to many groups at once.
 long getUpdateUserMailMimetypePreferenceCount(String mimetype)
           
 long getUserLocalePreferenceCount(String localeCode)
           
 Collection getUserLocalePreferenceList(String localeCode)
           
 void removeUserFromGroup(Group group, User userToRemove)
          This is used to remove a specified user from a specified group.
 void removeUserFromGroups(List groups, User userToRemove)
          This is used to remove a user from many groups at once.
 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

UserUtilImpl

public UserUtilImpl(IssueSecurityLevelManager issueSecurityLevelManager,
                    UserManager userManager)
Method Detail

addUserToGroup

public void addUserToGroup(Group group,
                           User userToAdd)
                    throws org.ofbiz.core.entity.GenericEntityException,
                           IndexException
Description copied from interface: UserUtil
This is used to add a specified user to a specified group. The user will be added to the group if the user is not already a member of the group.

Specified by:
addUserToGroup in interface UserUtil
Parameters:
group - the group to add the user to.
userToAdd - the user to add to the group.
Throws:
org.ofbiz.core.entity.GenericEntityException
IndexException

addUserToGroups

public void addUserToGroups(List groups,
                            User userToAdd)
                     throws org.ofbiz.core.entity.GenericEntityException,
                            IndexException
Description copied from interface: UserUtil
This is used to add a user to many groups at once.

Specified by:
addUserToGroups in interface UserUtil
Parameters:
groups - a list containing the groups to add the user to.
userToAdd - the user to add to the group.
Throws:
org.ofbiz.core.entity.GenericEntityException
IndexException

removeUserFromGroup

public void removeUserFromGroup(Group group,
                                User userToRemove)
                         throws org.ofbiz.core.entity.GenericEntityException,
                                IndexException
Description copied from interface: UserUtil
This is used to remove a specified user from a specified group. The user will be removed from the group only if the user is already a member of the group.

Specified by:
removeUserFromGroup in interface UserUtil
Parameters:
group - the group to add the user to.
userToRemove - the user to add to the group.
Throws:
org.ofbiz.core.entity.GenericEntityException
IndexException

removeUserFromGroups

public void removeUserFromGroups(List groups,
                                 User userToRemove)
                          throws org.ofbiz.core.entity.GenericEntityException,
                                 IndexException
Description copied from interface: UserUtil
This is used to remove a user from many groups at once.

Specified by:
removeUserFromGroups in interface UserUtil
Parameters:
groups - a list containing the groups to add the user to.
userToRemove - the user to add to the group.
Throws:
org.ofbiz.core.entity.GenericEntityException
IndexException

getUpdateUserMailMimetypePreferenceCount

public long getUpdateUserMailMimetypePreferenceCount(String mimetype)
                                              throws org.ofbiz.core.entity.GenericEntityException
Specified by:
getUpdateUserMailMimetypePreferenceCount in interface UserUtil
Throws:
org.ofbiz.core.entity.GenericEntityException

updateUserMailMimetypePreference

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

Specified by:
updateUserMailMimetypePreference in interface UserUtil
Parameters:
mimetype -
Throws:
org.ofbiz.core.entity.GenericEntityException

getUserLocalePreferenceCount

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

getUserLocalePreferenceList

public Collection getUserLocalePreferenceList(String localeCode)
Specified by:
getUserLocalePreferenceList in interface UserUtil


Copyright © 2002-2006 Atlassian. All Rights Reserved.