public class GlobalPermissionResource extends Object
Constructor and Description |
---|
GlobalPermissionResource(BambooPermissionManager bambooPermissionManager,
HibernateMutableAclService aclService,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
BambooUserManager userManager,
AdministrationConfigurationAccessor administrationConfigurationAccessor,
AdministrationConfigurationPersister administrationConfigurationPersister,
GlobalPermissionsService globalPermissionsService) |
Modifier and Type | Method and Description |
---|---|
@NotNull List<RestGlobalPermission> |
getGroupPermission(@Nullable String groupName,
@NotNull Expansion expansion,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Retrieve a list of groups with their permissions.
|
@NotNull List<RestGlobalPermission> |
getRolePermission(@Nullable String roleName,
@NotNull Expansion expansion,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Retrieve a list of roles with their permissions.
|
@NotNull List<RestGlobalPermission> |
getUserPermission(@Nullable String userName,
@NotNull Expansion expansion,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Retrieve a list of users with their permissions.
|
@NotNull RestGlobalPermission |
updateGroupPermission(@Nullable RestGlobalPermission restGlobalPermission,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Update global permissions of a group.
|
RestGlobalPermission |
updateRolePermission(@Nullable RestGlobalPermission restGlobalPermission,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Update global permissions of a role.
|
@NotNull RestGlobalPermission |
updateUserPermission(@Nullable RestGlobalPermission restGlobalPermission,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Update global permissions of a user.
|
public GlobalPermissionResource(BambooPermissionManager bambooPermissionManager, HibernateMutableAclService aclService, com.atlassian.sal.api.message.I18nResolver i18nResolver, BambooUserManager userManager, AdministrationConfigurationAccessor administrationConfigurationAccessor, AdministrationConfigurationPersister administrationConfigurationPersister, GlobalPermissionsService globalPermissionsService)
@NotNull public @NotNull List<RestGlobalPermission> getUserPermission(@Nullable @Nullable String userName, @NotNull @Context @NotNull Expansion expansion, @NotNull @Context @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
userName
- user nameWebValidationException
@NotNull public @NotNull List<RestGlobalPermission> getGroupPermission(@Nullable @Nullable String groupName, @NotNull @Context @NotNull Expansion expansion, @NotNull @Context @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
groupName
- Group nameWebValidationException
@NotNull public @NotNull List<RestGlobalPermission> getRolePermission(@Nullable @Nullable String roleName, @NotNull @Context @NotNull Expansion expansion, @NotNull @Context @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
roleName
- name of the roleWebValidationException
@NotNull public @NotNull RestGlobalPermission updateUserPermission(@Nullable @Nullable RestGlobalPermission restGlobalPermission, @NotNull @Context @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
restGlobalPermission
- Permission model of the userWebValidationException
@NotNull public @NotNull RestGlobalPermission updateGroupPermission(@Nullable @Nullable RestGlobalPermission restGlobalPermission, @NotNull @Context @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
restGlobalPermission
- Permission model of the groupWebValidationException
public RestGlobalPermission updateRolePermission(@Nullable @Nullable RestGlobalPermission restGlobalPermission, @NotNull @Context @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
restGlobalPermission
- uriInfo
- WebValidationException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.