public class GroupAdminResource extends Object
Constructor and Description |
---|
GroupAdminResource(BambooPermissionManager bambooPermissionManager,
BambooUserManager userManager,
GravatarService gravatarService,
com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate,
com.atlassian.struts.TextProvider textProvider,
PaginationService paginationService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addUsersToGroup(String groupName,
List<String> usersToAdd)
Add multiple users to a group.
|
javax.ws.rs.core.Response |
createGroup(RestGroup group)
Create a new group.
|
javax.ws.rs.core.Response |
deleteGroup(String groupName)
Deletes the specified group, removing it from the system.
|
RestPageModel<RestUserDetails> |
findUsersInGroup(String groupName,
String filter,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieves a list of users that are members of a specified group.
|
RestPageModel<RestUserDetails> |
findUsersNotInGroup(String groupName,
String filter,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieves a list of users that are not members of a specified group.
|
RestPageModel<RestGroup> |
getGroups(String filter,
PageRequest pageRequest,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve a paginated list of groups.
|
javax.ws.rs.core.Response |
removeUsersFromGroup(String groupName,
List<String> usersToAdd)
Remove multiple users from a group.
|
@Inject public GroupAdminResource(BambooPermissionManager bambooPermissionManager, BambooUserManager userManager, GravatarService gravatarService, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, com.atlassian.struts.TextProvider textProvider, PaginationService paginationService)
public RestPageModel<RestGroup> getGroups(String filter, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo) throws com.atlassian.user.EntityException
filter
- if specified only group names containing the supplied string (case insensitive) will be returnedcom.atlassian.user.EntityException
public javax.ws.rs.core.Response createGroup(RestGroup group) throws WebValidationException
group
- Group to createWebValidationException
public javax.ws.rs.core.Response deleteGroup(String groupName) throws WebValidationException
groupName
- the name identifying the group to deleteWebValidationException
public javax.ws.rs.core.Response addUsersToGroup(String groupName, List<String> usersToAdd) throws WebValidationException
WebValidationException
public javax.ws.rs.core.Response removeUsersFromGroup(String groupName, List<String> usersToAdd) throws WebValidationException
WebValidationException
public RestPageModel<RestUserDetails> findUsersInGroup(String groupName, String filter, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo)
groupName
- the group which should be used to locate membersfilter
- if specified only users with usernames, display names or email addresses containing the
supplied string (case insensitive) will be returnedpublic RestPageModel<RestUserDetails> findUsersNotInGroup(String groupName, String filter, @Context PageRequest pageRequest, @Context Expansion expansion, @Context javax.ws.rs.core.UriInfo uriInfo) throws com.atlassian.user.EntityException
groupName
- the group which should be used to locate non-membersfilter
- if specified only users with usernames, display names or email addresses containing the
supplied string will be returnedcom.atlassian.user.EntityException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.