public interface RestGlobalVariableService
Modifier and Type | Method and Description |
---|---|
RestGlobalVariable |
createGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
RestGlobalVariable restGlobalVariable)
Create a global variable
|
void |
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)
Retrieve all global variables and values on bamboo server
Password variables will be encrypted using salted hash.
|
RestGlobalVariable |
updateGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
long variableId,
RestGlobalVariable restGlobalVariable)
Update a global variable
|
javax.ws.rs.core.Response |
verifyGlobalVariableValue(RestVerificationRequest request)
Server side verification that the encrypted value of a global variable has changed.
|
RestGlobalVariables getGlobalVariables(javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- Object that provides access to information of http requestfor how encryption is performed
RestGlobalVariable getGlobalVariable(javax.ws.rs.core.UriInfo uriInfo, long variableId)
uriInfo
- Object that provides access to information of httpvariableId
- id fo the variableRestGlobalVariable createGlobalVariable(javax.ws.rs.core.UriInfo uriInfo, RestGlobalVariable restGlobalVariable) throws WebValidationException
uriInfo
- Object that provides access to information of http requestrestGlobalVariable
- The global variable to be createdWebValidationException
- If some parameter is illegal, e.g. empty variable name, illegal characters in variable name, etc.void deleteGlobalVariable(javax.ws.rs.core.UriInfo uriInfo, long variableId)
uriInfo
- Object that provides access to information of http requestvariableId
- Id of the variable to be removedRestGlobalVariable updateGlobalVariable(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 variable to be updatedrestGlobalVariable
- New name/value of the global variableWebValidationException
- If the name/value is invalid, e.g. exceeds max value lengthjavax.ws.rs.core.Response verifyGlobalVariableValue(RestVerificationRequest request)
request
- variable name and encrypted value to checkWebValidationException
- if not authorized.Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.