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
|
javax.ws.rs.core.Response |
verifyGlobalVariableValue(RestVerificationRequest request)
Verify if variable value was changed or not.
|
public static final RestGlobalVariable REST_GLOBAL_VARIABLE
public GlobalVariableResource(RestGlobalVariableService restGlobalVariableService)
public RestGlobalVariables getGlobalVariables(@Context javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- Provides access to request URI informationpublic RestGlobalVariable getGlobalVariable(@Context javax.ws.rs.core.UriInfo uriInfo, long variableId)
uriInfo
- Object that provides access to information of http request to the REST endpointvariableId
- Id of the variablepublic 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
public javax.ws.rs.core.Response deleteGlobalVariable(@Context javax.ws.rs.core.UriInfo uriInfo, long variableId) throws WebValidationException
uriInfo
- Object that provides access to information of http requestvariableId
- Id of the variable to be deletedWebValidationException
public RestGlobalVariable updateGlobalVariable(@Context javax.ws.rs.core.UriInfo uriInfo, 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
public javax.ws.rs.core.Response verifyGlobalVariableValue(RestVerificationRequest request)
request
- defines variable and and raw unencoded value to be checked against the server storage.Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.