@Path(value="permissions") @Produces(value="application/json") @Consumes(value="application/json") public class GlobalPermissionResource extends Object
Modifier and Type | Field and Description |
---|---|
static RestGlobalPermission |
REST_USER_GROUP_PERMISSION |
static List<RestGlobalPermission> |
REST_USER_GROUP_PERMISSIONS |
Constructor and Description |
---|
GlobalPermissionResource(BambooPermissionManager bambooPermissionManager,
HibernateMutableAclService aclService,
GlobalPermissionConversionFunction function,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
BambooUserManager userManager) |
Modifier and Type | Method and Description |
---|---|
List<RestGlobalPermission> |
getGroupPermission(String groupName,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve a list of groups with their permissions.
|
List<RestGlobalPermission> |
getRolePermission(String roleName,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve a list of roles with their permissions.
|
RestGlobalPermission |
updateGroupPermission(RestGlobalPermission restGlobalPermission,
javax.ws.rs.core.UriInfo uriInfo)
Update global permissions of a group.
|
RestGlobalPermission |
updateRolePermission(RestGlobalPermission restGlobalPermission,
javax.ws.rs.core.UriInfo uriInfo)
Update global permissions of a role.
|
public static final RestGlobalPermission REST_USER_GROUP_PERMISSION
public static final List<RestGlobalPermission> REST_USER_GROUP_PERMISSIONS
public GlobalPermissionResource(BambooPermissionManager bambooPermissionManager, HibernateMutableAclService aclService, GlobalPermissionConversionFunction function, com.atlassian.sal.api.message.I18nResolver i18nResolver, BambooUserManager userManager)
@GET @Path(value="groups") @NotNull public List<RestGlobalPermission> getGroupPermission(@QueryParam(value="name") @Nullable String groupName, @NotNull @Context Expansion expansion, @NotNull @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
groupName
- Group nameWebValidationException
@GET @Path(value="roles") public List<RestGlobalPermission> getRolePermission(@QueryParam(value="name") @Nullable String roleName, @NotNull @Context Expansion expansion, @NotNull @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
roleName
- name of the roleexpansion
- uriInfo
- WebValidationException
@POST @Path(value="groups") @NotNull public RestGlobalPermission updateGroupPermission(@Nullable RestGlobalPermission restGlobalPermission, @NotNull @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
restGlobalPermission
- Permission model of the groupWebValidationException
@POST @Path(value="roles") public RestGlobalPermission updateRolePermission(@Nullable RestGlobalPermission restGlobalPermission, @NotNull @Context javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
restGlobalPermission
- uriInfo
- WebValidationException
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.