public class RestGlobalPermissionServiceImpl extends Object implements RestGlobalPermissionService
Constructor and Description |
---|
RestGlobalPermissionServiceImpl(BambooAclUpdateHelper bambooAclUpdateHelper,
RestPermissionCheck restPermissionCheck,
HibernateMutableAclService aclService,
BambooPermissionManager bambooPermissionManager,
BambooUserManager userManager,
BambooAuthenticationContext authenticationContext,
com.atlassian.struts.TextProvider textProvider) |
Modifier and Type | Method and Description |
---|---|
List<RestGlobalPermission> |
getGroupPermissions(String groupName)
Retrieve a list of groups with their permissions filtered by group name.
|
RestGlobalPermission |
updateGroupPermission(RestGlobalPermission restGlobalPermission)
Update permission of a group in bamboo.
|
protected ErrorCollection |
validateUpdateRequest(RestGlobalPermission restGlobalPermission) |
public RestGlobalPermissionServiceImpl(BambooAclUpdateHelper bambooAclUpdateHelper, RestPermissionCheck restPermissionCheck, HibernateMutableAclService aclService, BambooPermissionManager bambooPermissionManager, BambooUserManager userManager, BambooAuthenticationContext authenticationContext, com.atlassian.struts.TextProvider textProvider)
@NotNull public List<RestGlobalPermission> getGroupPermissions(@NotNull String groupName) throws WebValidationException
RestGlobalPermissionService
getGroupPermissions
in interface RestGlobalPermissionService
groupName
- Group nameWebValidationException
- If groupName is empty@NotNull public RestGlobalPermission updateGroupPermission(@Nullable RestGlobalPermission restGlobalPermission) throws WebValidationException
RestGlobalPermissionService
updateGroupPermission
in interface RestGlobalPermissionService
restGlobalPermission
- Permissions of the groupWebValidationException
- If parameter is invalid, e.g. name is empty, revoking SysAdmin permission from the last SysAdmin group.@NotNull protected ErrorCollection validateUpdateRequest(@Nullable RestGlobalPermission restGlobalPermission)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.