public class RolesResource extends Object
Constructor and Description |
---|
RolesResource(ProjectRoleService roleService,
ProjectService projectService,
JiraAuthenticationContext jiraAuthenticationContext,
AvatarService avatarService,
LoginService loginService,
DateTimeFormatter dateTimeFormatter,
EmailFormatter emailFormatter,
ApplicationRoleManager applicationRoleManager,
UserManager userManager,
FeatureManager featureManager) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addActorsToRole(String projectKey,
Long roleId,
Map<String,String[]> actors)
Adds actors (uses and/or group) to a project role.
|
javax.ws.rs.core.Response |
getRoles(String projectKey,
Long roleId,
String query,
int pageNumber,
int pageSize) |
public RolesResource(ProjectRoleService roleService, ProjectService projectService, JiraAuthenticationContext jiraAuthenticationContext, AvatarService avatarService, LoginService loginService, DateTimeFormatter dateTimeFormatter, EmailFormatter emailFormatter, ApplicationRoleManager applicationRoleManager, UserManager userManager, FeatureManager featureManager)
public javax.ws.rs.core.Response getRoles(String projectKey, Long roleId, String query, int pageNumber, int pageSize)
public javax.ws.rs.core.Response addActorsToRole(String projectKey, Long roleId, Map<String,String[]> actors)
For user actors, their user keys should be used.
projectKey
- the project keyroleId
- the project role idactors
- the actors to add to the roleCopyright © 2002-2021 Atlassian. All Rights Reserved.