Package com.atlassian.bamboo.user
Class UserServiceImpl
java.lang.Object
com.atlassian.bamboo.user.UserServiceImpl
- All Implemented Interfaces:
UserService
- Since:
- 5.10
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.user.Group
createGroup
(String name) Create a group in bamboo.List<com.atlassian.user.Group>
Return a list of groups in bamboo filtered by name.
-
Constructor Details
-
UserServiceImpl
public UserServiceImpl()
-
-
Method Details
-
getGroup
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
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
-