public class ProjectRoleResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProjectRoleResource.ActorsMap |
Modifier and Type | Field and Description |
---|---|
static Map<String,String> |
GET_ROLES_DOC_EXAMPLE |
Constructor and Description |
---|
ProjectRoleResource(ProjectRoleService projectRoleService,
AvatarService avatarService,
ProjectFinder projectFinder,
JiraAuthenticationContext authContext,
javax.ws.rs.core.UriInfo uriInfo,
UserManager userManager,
ProjectRoleBeanFactory projectRoleBeanFactory) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addActorUsers(String projectIdOrKey,
Long id,
ProjectRoleResource.ActorsMap actors)
Add an actor to a project role.
|
javax.ws.rs.core.Response |
deleteActor(String projectIdOrKey,
Long id,
String username,
String groupname)
Remove actors from a project role.
|
javax.ws.rs.core.Response |
getProjectRole(String projectIdOrKey,
Long id)
Details on a given project role.
|
javax.ws.rs.core.Response |
getProjectRoles(String projectIdOrKey)
Contains a list of roles in this project with links to full details.
|
javax.ws.rs.core.Response |
setActors(String projectIdOrKey,
Long id,
ProjectRoleActorsUpdateBean actors)
Updates a project role to contain the sent actors.
|
public ProjectRoleResource(ProjectRoleService projectRoleService, AvatarService avatarService, ProjectFinder projectFinder, JiraAuthenticationContext authContext, javax.ws.rs.core.UriInfo uriInfo, UserManager userManager, ProjectRoleBeanFactory projectRoleBeanFactory)
public javax.ws.rs.core.Response getProjectRoles(String projectIdOrKey)
projectIdOrKey
- the project id or project keypublic javax.ws.rs.core.Response getProjectRole(String projectIdOrKey, Long id)
projectIdOrKey
- the project id or project keyid
- the project role idpublic javax.ws.rs.core.Response setActors(String projectIdOrKey, Long id, ProjectRoleActorsUpdateBean actors)
projectIdOrKey
- the project id or project keyid
- the project role idactors
- the actors to set for the rolepublic javax.ws.rs.core.Response addActorUsers(String projectIdOrKey, Long id, ProjectRoleResource.ActorsMap actors)
projectIdOrKey
- the project id or project keyid
- the project role idactors
- the actors to add to the rolepublic javax.ws.rs.core.Response deleteActor(String projectIdOrKey, Long id, String username, String groupname)
projectIdOrKey
- the project id or project keyid
- the project role idusername
- the username to remove from the project rolegroupname
- the groupname to remove from the project roleCopyright © 2002-2015 Atlassian. All Rights Reserved.