public class PrioritySchemeResource extends Object
Constructor and Description |
---|
PrioritySchemeResource(PrioritySchemeService prioritySchemeService,
JiraAuthenticationContext authContext,
ResponseFactory responseFactory,
PrioritySchemeBeansFactory prioritySchemeBeansFactory) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createPriorityScheme(javax.ws.rs.core.UriInfo uriInfo,
PrioritySchemeUpdateBean data)
Creates new priority scheme.
|
javax.ws.rs.core.Response |
deletePriorityScheme(Long schemeId)
Deletes a priority scheme.
|
javax.ws.rs.core.Response |
getPriorityScheme(javax.ws.rs.core.UriInfo uriInfo,
Long schemeId)
Gets a full representation of a priority scheme in JSON format.
|
javax.ws.rs.core.Response |
getPrioritySchemes(javax.ws.rs.core.UriInfo uriInfo,
Long startAt,
Integer maxResults)
Returns all priority schemes.
|
javax.ws.rs.core.Response |
updatePriorityScheme(javax.ws.rs.core.UriInfo uriInfo,
Long schemeId,
PrioritySchemeUpdateBean data)
Updates a priority scheme.
|
public PrioritySchemeResource(PrioritySchemeService prioritySchemeService, JiraAuthenticationContext authContext, ResponseFactory responseFactory, PrioritySchemeBeansFactory prioritySchemeBeansFactory)
@ExperimentalApi public javax.ws.rs.core.Response createPriorityScheme(@Context javax.ws.rs.core.UriInfo uriInfo, PrioritySchemeUpdateBean data)
uriInfo
- a UriInfodata
- data of priority scheme to createPrioritySchemeBean
@ExperimentalApi public javax.ws.rs.core.Response deletePriorityScheme(Long schemeId)
schemeId
- Id of priority scheme to delete@ExperimentalApi public javax.ws.rs.core.Response updatePriorityScheme(@Context javax.ws.rs.core.UriInfo uriInfo, Long schemeId, PrioritySchemeUpdateBean data)
expand=projectKeys
.uriInfo
- a UriInfoschemeId
- id of the priority scheme to updatedata
- new scheme dataPrioritySchemeBean
@ExperimentalApi public javax.ws.rs.core.Response getPriorityScheme(@Context javax.ws.rs.core.UriInfo uriInfo, Long schemeId)
expand=projectKeys
.uriInfo
- a UriInfoschemeId
- id of priority scheme to get@ExperimentalApi public javax.ws.rs.core.Response getPrioritySchemes(@Context javax.ws.rs.core.UriInfo uriInfo, Long startAt, Integer maxResults)
expand=schemes.projectKeys
.uriInfo
- a UriInfostartAt
- the page offset, if not specified then defaults to 0maxResults
- how many results on the page should be included. Defaults to 100, maximum is 1000.Copyright © 2002-2022 Atlassian. All Rights Reserved.