com.atlassian.jira.rest.v2.admin.licenserole
Class LicenseRoleResource

java.lang.Object
  extended by com.atlassian.jira.rest.v2.admin.licenserole.LicenseRoleResource

public class LicenseRoleResource
extends Object

Provides REST access to JIRA's License Roles.

Since:
v6.3

Constructor Summary
LicenseRoleResource(LicenseRoleService service, I18nHelper helper)
           
 
Method Summary
 javax.ws.rs.core.Response get(String roleId)
          Returns the passed license role if it exists.
 javax.ws.rs.core.Response getAll()
          Returns all license roles in the system.
 javax.ws.rs.core.Response put(String roleId, LicenseRoleBean bean)
          Updates the license role with the passed data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseRoleResource

public LicenseRoleResource(LicenseRoleService service,
                           I18nHelper helper)
Method Detail

getAll

public javax.ws.rs.core.Response getAll()
Returns all license roles in the system.

Returns:
all license roles in the system.

get

public javax.ws.rs.core.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.

put

public javax.ws.rs.core.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.


Copyright © 2002-2014 Atlassian. All Rights Reserved.