public class RoleResource extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RoleResource.ActorInputBean |
Constructor and Description |
---|
RoleResource(ProjectRoleService projectRoleService,
ProjectRoleBeanFactory projectRoleBeanFactory,
ResponseFactory responses,
I18nHelper i18n,
JiraAuthenticationContext authContext,
GlobalPermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addProjectRoleActorsToRole(long roleId,
RoleResource.ActorInputBean actorsInput)
Adds default actors to the given role.
|
javax.ws.rs.core.Response |
createProjectRole(CreateUpdateRoleRequestBean inputBean)
Creates a new ProjectRole to be available in JIRA.
|
javax.ws.rs.core.Response |
deleteProjectRole(long roleId,
Long roleIdToSwap)
Deletes a role.
|
javax.ws.rs.core.Response |
deleteProjectRoleActorsFromRole(long roleId,
String user,
String group)
Removes default actor from the given role.
|
javax.ws.rs.core.Response |
fullyUpdateProjectRole(long roleId,
CreateUpdateRoleRequestBean updateProjectRoleBean)
Fully updates a roles.
|
javax.ws.rs.core.Response |
getProjectRoleActorsForRole(long roleId)
Gets default actors for the given role.
|
javax.ws.rs.core.Response |
getProjectRoles()
Get all the ProjectRoles available in JIRA.
|
javax.ws.rs.core.Response |
getProjectRolesById(long roleId)
Get a specific ProjectRole available in JIRA.
|
javax.ws.rs.core.Response |
partialUpdateProjectRole(long roleId,
CreateUpdateRoleRequestBean updateProjectRoleBean)
Partially updates a roles name or description.
|
public RoleResource(ProjectRoleService projectRoleService, ProjectRoleBeanFactory projectRoleBeanFactory, ResponseFactory responses, I18nHelper i18n, JiraAuthenticationContext authContext, GlobalPermissionManager permissionManager)
public javax.ws.rs.core.Response getProjectRoles()
public javax.ws.rs.core.Response getProjectRolesById(long roleId)
public javax.ws.rs.core.Response createProjectRole(CreateUpdateRoleRequestBean inputBean)
public javax.ws.rs.core.Response partialUpdateProjectRole(long roleId, CreateUpdateRoleRequestBean updateProjectRoleBean)
public javax.ws.rs.core.Response fullyUpdateProjectRole(long roleId, CreateUpdateRoleRequestBean updateProjectRoleBean)
public javax.ws.rs.core.Response deleteProjectRole(long roleId, Long roleIdToSwap)
roleIdToSwap
- if given, removes a role even if it is used in scheme by replacing the role with the given onepublic javax.ws.rs.core.Response getProjectRoleActorsForRole(long roleId)
public javax.ws.rs.core.Response addProjectRoleActorsToRole(long roleId, RoleResource.ActorInputBean actorsInput)
public javax.ws.rs.core.Response deleteProjectRoleActorsFromRole(long roleId, String user, String group)
roleId
- the role id to remove the actors fromuser
- if given, removes an actor from given rolegroup
- if given, removes an actor from given roleCopyright © 2002-2015 Atlassian. All Rights Reserved.