Interface RestGlobalVariableService

All Known Implementing Classes:
RestGlobalVariableServiceImpl

public interface RestGlobalVariableService
REST service layer to handler global variable operations
Since:
5.9
  • Method Details

    • getGlobalVariables

      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.
      Parameters:
      uriInfo - Object that provides access to information of http request
      Returns:
      Collection of global variables
      See Also:
      • for how encryption is performed
    • getGlobalVariable

      RestGlobalVariable getGlobalVariable(javax.ws.rs.core.UriInfo uriInfo, long variableId)
      Retrieve a global variable definition
      Parameters:
      uriInfo - Object that provides access to information of http
      variableId - id fo the variable
      Returns:
      RestGlobalVariable object that contains name, value and link to the variable
    • createGlobalVariable

      RestGlobalVariable createGlobalVariable(javax.ws.rs.core.UriInfo uriInfo, RestGlobalVariable restGlobalVariable) throws WebValidationException
      Create a global variable
      Parameters:
      uriInfo - Object that provides access to information of http request
      restGlobalVariable - The global variable to be created
      Returns:
      The created global variable
      Throws:
      WebValidationException - If some parameter is illegal, e.g. empty variable name, illegal characters in variable name, etc.
    • deleteGlobalVariable

      void deleteGlobalVariable(javax.ws.rs.core.UriInfo uriInfo, long variableId)
      Delete a global variable
      Parameters:
      uriInfo - Object that provides access to information of http request
      variableId - Id of the variable to be removed
    • updateGlobalVariable

      RestGlobalVariable updateGlobalVariable(javax.ws.rs.core.UriInfo uriInfo, long variableId, RestGlobalVariable restGlobalVariable) throws WebValidationException
      Update a global variable
      Parameters:
      uriInfo - Object that provides access to information of http request
      variableId - Id of the variable to be updated
      restGlobalVariable - New name/value of the global variable
      Returns:
      The updated variable
      Throws:
      WebValidationException - If the name/value is invalid, e.g. exceeds max value length
    • verifyGlobalVariableValue

      javax.ws.rs.core.Response verifyGlobalVariableValue(RestVerificationRequest request)
      Server side verification that the encrypted value of a global variable has changed.
      Parameters:
      request - variable name and encrypted value to check
      Returns:
      response
      Throws:
      WebValidationException - if not authorized.