Class RolesResource
java.lang.Object
com.atlassian.jira.projectconfig.rest.project.RolesResource
@Path("roles/{projectKey}")
@Consumes("application/json")
@Produces("application/json")
public class RolesResource
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionRolesResource(ProjectRoleService roleService, ProjectService projectService, JiraAuthenticationContext jiraAuthenticationContext, AvatarService avatarService, LoginService loginService, DateTimeFormatter dateTimeFormatter, EmailFormatter emailFormatter, ApplicationRoleManager applicationRoleManager, UserManager userManager) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseAdds actors (uses and/or group) to a project role.jakarta.ws.rs.core.Response
-
Constructor Details
-
RolesResource
@Inject public RolesResource(ProjectRoleService roleService, ProjectService projectService, JiraAuthenticationContext jiraAuthenticationContext, AvatarService avatarService, LoginService loginService, DateTimeFormatter dateTimeFormatter, EmailFormatter emailFormatter, ApplicationRoleManager applicationRoleManager, UserManager userManager)
-
-
Method Details
-
getRoles
-
addActorsToRole
@POST @Path("{roleId}") public jakarta.ws.rs.core.Response addActorsToRole(@PathParam("projectKey") String projectKey, @PathParam("roleId") Long roleId, Map<String, String[]> actors) Adds actors (uses and/or group) to a project role.For user actors, their user keys should be used.
- Parameters:
projectKey- the project keyroleId- the project role idactors- the actors to add to the role- Returns:
- number of users and groups added to a project role
-