public final class

ProjectPermissionSchemeResource

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.v2.permission.ProjectPermissionSchemeResource

Class Overview

Resource for associating permission schemes and projects.

Summary

Public Constructors
ProjectPermissionSchemeResource(PermissionSchemeService permissionSchemeService, ProjectFinder projectFinder, ResponseFactory responseFactory, JiraAuthenticationContext jiraAuthenticationContext, PermissionSchemeBeansFactory beansFactory, PermissionGrantBeanExpander expander)
Public Methods
Response assignPermissionScheme(String projectKeyOrId, IdBean permissionSchemeId, String expand)
Assigns a permission scheme with a project.
Response getAssignedPermissionScheme(String projectKeyOrId, String expand)
Gets a permission scheme assigned with a project.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProjectPermissionSchemeResource (PermissionSchemeService permissionSchemeService, ProjectFinder projectFinder, ResponseFactory responseFactory, JiraAuthenticationContext jiraAuthenticationContext, PermissionSchemeBeansFactory beansFactory, PermissionGrantBeanExpander expander)

Public Methods

public Response assignPermissionScheme (String projectKeyOrId, IdBean permissionSchemeId, String expand)

Assigns a permission scheme with a project.

Parameters
projectKeyOrId key or id of the project
permissionSchemeId object that contains an id of the scheme
Returns
  • The newly associated permission scheme if successful, appropriate error otherwise.

public Response getAssignedPermissionScheme (String projectKeyOrId, String expand)

Gets a permission scheme assigned with a project.

Parameters
projectKeyOrId key or id of the project
Returns
  • The associated permission scheme if successful, appropriate error otherwise.