public class

LicenseRoleResource

extends Object
java.lang.Object
   ↳ com.atlassian.jira.rest.v2.admin.licenserole.LicenseRoleResource

Class Overview

Provides REST access to JIRA's License Roles.

Summary

Public Constructors
LicenseRoleResource(LicenseRoleService service, I18nHelper helper)
Public Methods
Response get(String roleId)
Returns the passed license role if it exists.
Response getAll()
Returns all license roles in the system.
Response put(String roleId, LicenseRoleBean bean)
Updates the license role with the passed data.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LicenseRoleResource (LicenseRoleService service, I18nHelper helper)

Public Methods

public Response get (String roleId)

Returns the passed license role if it exists.

Parameters
roleId the id of the role to use.
Returns
  • the passed license role if it exists.

public Response getAll ()

Returns all license roles in the system.

Returns
  • all license roles in the system.

public Response put (String roleId, LicenseRoleBean bean)

Updates the license role with the passed data. Only the groups of the role may be updated. Requests to change the id or the name of the role will be silently ignored.

Parameters
roleId the id of the role to use.
bean the data to update the role with.
Returns
  • the updated license role if the update was successful.