public class

ProjectRoleResource

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.v2.issue.project.ProjectRoleResource

Summary

Nested Classes
class ProjectRoleResource.ActorsMap  
Fields
public static Map<StringString> GET_ROLES_DOC_EXAMPLE
Public Constructors
ProjectRoleResource(ProjectRoleService projectRoleService, AvatarService avatarService, ProjectFinder projectFinder, JiraAuthenticationContext authContext, UriInfo uriInfo, UserManager userManager, ProjectRoleBeanFactory projectRoleBeanFactory)
Public Methods
Response addActorUsers(String projectIdOrKey, Long id, ProjectRoleResource.ActorsMap actors)
Add an actor to a project role.
Response deleteActor(String projectIdOrKey, Long id, String username, String groupname)
Remove actors from a project role.
Response getProjectRole(String projectIdOrKey, Long id)
Details on a given project role.
Response getProjectRoles(String projectIdOrKey)
Contains a list of roles in this project with links to full details.
Response setActors(String projectIdOrKey, Long id, ProjectRoleActorsUpdateBean actors)
Updates a project role to contain the sent actors.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static Map<StringString> GET_ROLES_DOC_EXAMPLE

Public Constructors

public ProjectRoleResource (ProjectRoleService projectRoleService, AvatarService avatarService, ProjectFinder projectFinder, JiraAuthenticationContext authContext, UriInfo uriInfo, UserManager userManager, ProjectRoleBeanFactory projectRoleBeanFactory)

Public Methods

public Response addActorUsers (String projectIdOrKey, Long id, ProjectRoleResource.ActorsMap actors)

Add an actor to a project role.

Parameters
projectIdOrKey the project id or project key
id the project role id
actors the actors to add to the role
Returns
  • full details on the role and its actors after modification

public Response deleteActor (String projectIdOrKey, Long id, String username, String groupname)

Remove actors from a project role.

Parameters
projectIdOrKey the project id or project key
id the project role id
username the username to remove from the project role
groupname the groupname to remove from the project role
Returns
  • no content on success

public Response getProjectRole (String projectIdOrKey, Long id)

Details on a given project role.

Parameters
projectIdOrKey the project id or project key
id the project role id
Returns
  • full details on the role and its actors. Actors are sorted by their display name.

public Response getProjectRoles (String projectIdOrKey)

Contains a list of roles in this project with links to full details.

Parameters
projectIdOrKey the project id or project key
Returns
  • list of roles and URIs to full details

public Response setActors (String projectIdOrKey, Long id, ProjectRoleActorsUpdateBean actors)

Updates a project role to contain the sent actors.

Parameters
projectIdOrKey the project id or project key
id the project role id
actors the actors to set for the role
Returns
  • full details on the role and its actors after modification