@Path(value="globalVariables") @Produces(value="application/json") @Consumes(value="application/json") public class GlobalVariableResource extends Object
Modifier and Type | Field and Description |
---|---|
static RestGlobalVariable |
REST_GLOBAL_VARIABLE |
Constructor and Description |
---|
GlobalVariableResource(RestGlobalVariableService restGlobalVariableService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
RestGlobalVariable restGlobalVariable)
Create a single global variable.
|
javax.ws.rs.core.Response |
deleteGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
long variableId)
Delete a global variable
|
RestGlobalVariable |
getGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
long variableId)
Retrieve a global variable definition.
|
RestGlobalVariables |
getGlobalVariables(javax.ws.rs.core.UriInfo uriInfo)
Return collection of all global variables.
|
RestGlobalVariable |
updateGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
long variableId,
RestGlobalVariable restGlobalVariable)
Update value of a global variable
|
public static final RestGlobalVariable REST_GLOBAL_VARIABLE
public GlobalVariableResource(RestGlobalVariableService restGlobalVariableService)
@GET public RestGlobalVariables getGlobalVariables(@Context javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- Provides access to request URI information@GET @Path(value="{variableId}") public RestGlobalVariable getGlobalVariable(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="variableId") long variableId)
uriInfo
- Object that provides access to information of http request to the REST endpointvariableId
- Id of the variable@POST public javax.ws.rs.core.Response createGlobalVariable(@Context javax.ws.rs.core.UriInfo uriInfo, RestGlobalVariable restGlobalVariable) throws WebValidationException
uriInfo
- Object that provides access to information of http request to the REST endpointrestGlobalVariable
- The variable to be createdWebValidationException
@Path(value="{variableId}") @DELETE public javax.ws.rs.core.Response deleteGlobalVariable(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="variableId") long variableId) throws WebValidationException
uriInfo
- Object that provides access to information of http requestvariableId
- Id of the variable to be deletedWebValidationException
@Path(value="{variableId}") @PUT public RestGlobalVariable updateGlobalVariable(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam(value="variableId") long variableId, RestGlobalVariable restGlobalVariable) throws WebValidationException
uriInfo
- Object that provides access to information of http requestvariableId
- Id of the variablerestGlobalVariable
- RestGlobalVariable that contains new valueWebValidationException
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.