com.atlassian.jira.user.util
Class UserUtilImpl

java.lang.Object
  extended by com.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)
           
 
Method Summary
 void addUserToGroup(Group group, User userToAdd)
          This is used to add a specified user to a specified group.
 void addUserToGroups(Collection groups, User userToAdd)
          This is used to add a user to many groups at once.
 void removeUserFromGroup(Group group, User userToRemove)
          This is used to remove a specified user from a specified group.
 void removeUserFromGroups(Collection groups, User userToRemove)
          This is used to remove a user from many groups at once.
 
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)
Method Detail

addUserToGroup

public void addUserToGroup(Group group,
                           User userToAdd)
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.

addUserToGroups

public void addUserToGroups(Collection groups,
                            User userToAdd)
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.

removeUserFromGroup

public void removeUserFromGroup(Group group,
                                User userToRemove)
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.

removeUserFromGroups

public void removeUserFromGroups(Collection groups,
                                 User userToRemove)
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.


Copyright © 2002-2007 Atlassian. All Rights Reserved.