Package com.atlassian.bamboo.user
Class UserServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.user.UserServiceImpl
-
- All Implemented Interfaces:
UserService
public class UserServiceImpl extends Object implements UserService
- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description UserServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.atlassian.user.Group
createGroup(String name)
Create a group in bamboo.List<com.atlassian.user.Group>
getGroup(String name)
Return a list of groups in bamboo filtered by name.
-
-
-
Method Detail
-
getGroup
public List<com.atlassian.user.Group> getGroup(String name) throws WebValidationException
Description copied from interface:UserService
Return a list of groups in bamboo filtered by name. Currently only one group that matches the name will be included in the list. Only users with System Administration permission are allowed to call this method.- Specified by:
getGroup
in interfaceUserService
- Parameters:
name
- Name of group name- Returns:
- List of group with give name.
- Throws:
WebValidationException
-
createGroup
public com.atlassian.user.Group createGroup(String name) throws WebValidationException
Description copied from interface:UserService
Create a group in bamboo. Only users with System Administration permission are allowed to call this method.- Specified by:
createGroup
in interfaceUserService
- Parameters:
name
- name of the new group- Returns:
- The group that is created
- Throws:
WebValidationException
- If group name is invalid, group already exists or create group is not allowed
-
-